Multi-Agent Routing
OpenClaw (formerly Moltbot) supports multiple agents with intelligent routing. Run different workspaces for different purposes with complete isolation.
Multiple Workspaces
Run separate AI workspaces with different configurations.
Agent Routing
Route different channels to different agents.
Isolated Sessions
Keep conversations and context separate between agents.
Shared Resources
Optionally share tools and data between agents.
Each incoming message is routed to the appropriate agent based on the source channel. Agents operate independently with their own configuration, skills, and session state.
Routing flow:
Define multiple agents and routing rules in your config:
{
"agents": {
"personal-assistant": {
"model": "claude-3-5-sonnet",
"system_prompt": "You are a personal assistant...",
"skills": ["calendar", "notes", "reminders"],
"memory": {
"path": "~/.openclaw/agents/personal/memory"
}
},
"work-assistant": {
"model": "gpt-4o",
"system_prompt": "You are a professional work assistant...",
"skills": ["jira", "github", "slack-tools"],
"memory": {
"path": "~/.openclaw/agents/work/memory"
}
},
"dev-assistant": {
"model": "claude-3-5-sonnet",
"system_prompt": "You are a coding expert...",
"skills": ["code-review", "git", "debugging"],
"memory": {
"path": "~/.openclaw/agents/dev/memory"
}
}
},
"routing": {
"default": "personal-assistant",
"rules": [
{
"channel": "slack:*",
"agent": "work-assistant"
},
{
"channel": "discord:dev-server",
"agent": "dev-assistant"
},
{
"channel": "telegram:personal",
"agent": "personal-assistant"
}
]
}
}Routing rules determine which agent handles each channel:
telegram:personal→personal-assistantslack:work-team→work-assistantdiscord:dev-server→dev-assistantwhatsapp:client-a→client-a-agent*— Wildcard matching (e.g., slack:* matches all Slack channels)default— Fallback agent when no rule matches- Rules are evaluated in order; first match wins
Each agent maintains its own session state and memory. Conversations on one agent don't affect others.
- ✓Separate memory — Each agent has its own conversation history
- ✓Independent skills — Load different skills per agent
- ✓Different models — Use different AI models per agent
- ✓Separate credentials — Each agent can have its own API keys
Use Cases
Personal vs Work
Separate agents for personal life and work tasks with different access levels.
Multi-Team Support
Different teams get different agents with specialized skills and knowledge.
Multi-Language
Route to agents configured for different languages.
Development Testing
Test new agent configurations without affecting production.
Client Separation
Keep client data and conversations completely isolated.
Specialized Experts
Route to specialized agents based on topic or channel.
Full Documentation
Read the complete multi-agent configuration guide.
Set Up Multiple Agents
Install OpenClaw and configure multi-agent routing for your use case.