Repository navigation
Multi-agent OpenClaw Gateway setup — agents not authenticating correctly #1576
Unanswered
clarencemcgordon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone
Can someone help me understand and fix the issue here?
Multi-agent OpenClaw Gateway setup — agents not authenticating correctly
Setup
Paperclip running on a Mac Mini (authenticated mode via Tailscale Serve). OpenClaw gateway on the same machine with multiple agents (CEO + Engineer + 2 others). All agents use the
openclaw_gatewayadapter connecting to the local gateway.Problem
When Paperclip triggers heartbeats for non-CEO agents, the agents either identify as the wrong agent or wake up and immediately return
HEARTBEAT_OK/NO_REPLYwithout doing any work — even when they have tasks assigned.Root causes identified so far
Shared API key: All agents load the CEO agent's
paperclip-claimed-api-key.jsonfrom a single shared workspace path instead of each agent reading its own key from its own workspace. So when the Engineer calls/api/agents/me, Paperclip returns the CEO's identity.Placeholder payload template: The
openclaw_gatewayadapter config for each agent still has"agentId": "remote-agent-123"in the payload template JSON instead of the actual OpenClaw agent ID. So the gateway doesn't know which agent to route the heartbeat to.Placeholder API URL: Some agents have
https://paperclip.exampleas their Paperclip API URL override instead of the actual local URL.Question
What's the correct way to configure multiple OpenClaw agents in Paperclip so each one authenticates with its own API key and routes to the correct OpenClaw agent ID? Is there documentation or a working example for multi-agent
openclaw_gatewaysetups? The adapter docs page doesn't have a dedicated section for this adapter.All reactions