I am trying to configure OpenClaw with multiple Discord bots, and I want each bot to route inbound messages to a different agent and workspace.
My setup is roughly:
one OpenClaw instance
multiple Discord bot tokens configured
multiple agents configured, for example:
main
coder
researcher
I already configured explicit workspaces per agent, for example:
mainβ/Users/openclaw/.openclaw/workspacecoderβ/Users/openclaw/.openclaw/workspace/coderresearcherβ/Users/openclaw/.openclaw/workspace/researcher
That part works.
The missing piece is inbound routing. What I want is effectively:
- Discord bot
nodoβ agentcoder - Discord bot
yunnieβ agentmain
But right now, inbound Discord messages for the nodo bot are still landing in sessions like:
agent:main:discord:channel:...
So even though coder has its own workspace, the bot is still entering through main.
I inspected the local config/runtime and I can see support for multiple Discord bot entries, but I cannot find a documented way to bind each bot to a specific inbound agent.
So my questions are:
- Does OpenClaw currently support inbound routing from Discord bot/token -> agent in a single instance?
- If yes, what is the exact config shape?
- If not, what is the recommended architecture?
- one instance per bot
- route by channel
- or some other supported pattern
I am specifically asking about inbound routing for multiple Discord bots, not outbound reply routing.
If there is an example config for this, that would be perfect.