u/NeuralAgentX4

Hi everyone,

I'm running into an issue with OpenClaw where it's unable to connect to other agents or spawn sub-agents. Every time I try, I get the following error:

agentId is not allowed for sessions_spawn (allowed: main)

What I'm trying to do:

Spawn a sub-agent / connect to another agent from within OpenClaw.

What happens:

The operation fails immediately with the error above, which suggests that only the main agent ID is allowed when using sessions_spawn.

What I've tried:

- Checking the documentation but couldn't find a clear explanation for this restriction

- Trying different agent configurations

Questions:

  1. Is this a known limitation of OpenClaw?

  2. Is there a workaround to allow sub-agent spawning?

  3. Does this require a specific configuration or permission to unlock multi-agent support?

Any help would be greatly appreciated! Thanks in advance

reddit.com
u/NeuralAgentX4 — 8 days ago