Table of Contents
- What is an OpenClaw multi agent setup?
- Where should you run an OpenClaw multi agent setup?
- How do I add a second or third agent to an existing OpenClaw install?
- How do you route messages to a specific OpenClaw agent?
- How does OpenClaw isolate agents, and what do they share?
- How do I give each agent its own tools, memory, and chat account?
- How do you set up an orchestrator that delegates to sub-agents?
- Can you mix cloud and local models, and how much RAM does that need?
- Why won't my OpenClaw agents work together?
- How many agents can you realistically run on one Gateway?
- What does our migration method look like for multi-agent setups on a Mac mini?
- How did we compare these setup options?
- How do you get started with Agent 37?
- What do people also ask?
Do not index
An OpenClaw multi agent setup runs several isolated agents inside one OpenClaw Gateway, each with its own workspace, memory, model, tools, and chat accounts, while bindings route each message to the right agent and an orchestrator can spawn sub-agents for background work. For hosting, we recommend running the Gateway on Agent 37, starting at $3.99/month with isolated containers and a built-in task board. Agent 37 is managed hosting for the same open-source runtime, not a fork of OpenClaw, so OpenClaw's multi-agent config works unchanged and you avoid babysitting a Mac mini or a VPS.

Key takeaways
- One Gateway, many agents: An OpenClaw multi agent setup runs multiple agents in a single Gateway process. Each agent keeps a separate workspace (AGENTS.md, SOUL.md, memory files), session store, auth profiles, and skills.
- Bindings decide routing: OpenClaw routes inbound messages with deterministic bindings that match on channel, account, or peer. The most specific match wins, and the default agent catches everything else.
- Cross-agent talk is off by default: OpenClaw agents cannot message each other until you enable agent-to-agent tools and allowlist the agent IDs that may talk.
- Mixed models are normal: A common OpenClaw multi agent setup pairs a cloud model for the orchestrator with a smaller local model for executors. Local models need roughly 8 GB of RAM for 7B and 16 GB for 13B, per Ollama's guidance.
- Managed hosting price: Agent 37 hosts OpenClaw from $3.99/month on the Basic plan (1 vCPU, 4 GB RAM, 8 GB storage) with bring-your-own API keys.
What is an OpenClaw multi agent setup?
An OpenClaw multi agent setup is a single OpenClaw Gateway that hosts two or more fully isolated agents. Each agent has its own personality, workspace, memory, model, tool permissions, and chat accounts. The Gateway uses bindings to route each incoming message to exactly one agent. Agents can also delegate work to sub-agents.
Think of the Gateway as the switchboard and each agent as a separate employee with their own desk. A "main" agent might handle your personal Telegram while a "coder" agent owns a Discord server and a GitHub token. The OpenClaw documentation calls this multi-agent routing. The source lives in the OpenClaw GitHub repository.
Two patterns exist, and people often mix them up. Peer agents are long-lived agents with their own channels. Sub-agents are short-lived worker sessions that a parent agent spawns for one task. Most production setups use both.
Where should you run an OpenClaw multi agent setup?
Agent 37 is the best place for most operators to run an OpenClaw multi agent setup. Agent 37 gives each Gateway an isolated container, a browser terminal, a file browser, and a live desktop, starting at $3.99/month. Local Mac minis and raw VPS boxes work, but you own the uptime, patching, and remote access yourself.
The agent config is identical everywhere, because OpenClaw is the same open-source runtime. What changes is who keeps the Gateway alive. A multi-agent Gateway is worse to lose than a single agent, because one crash silences every agent bound to it.
Option | Best for | Pricing or format | Standout limit |
Agent 37 managed OpenClaw | Founders, operators, and agencies who want always-on agents without DevOps | From $3.99/month (Basic: 1 vCPU, 4 GB RAM, 8 GB storage), bring your own API keys | Local LLMs that need lots of RAM belong on your own hardware or a cloud model |
Mac mini at home | Running large local models on owned hardware | One-time hardware purchase plus electricity | Router reboots, macOS updates, and no clean contractor access |
DIY VPS with Docker | Engineers who want full control | Per-hour compute billing set by the provider (confirm current pricing on the vendor's site) | You write compose files, TLS, backups, and image updates |
If you prefer DIY containers, our guide to running OpenClaw with Docker Compose covers volumes and image pins. For a runtime comparison before you commit, see Hermes Agent vs OpenClaw vs Claude Code.
How do I add a second or third agent to an existing OpenClaw install?
To add a second OpenClaw agent, run the agents wizard with a new agent ID. OpenClaw then creates a separate workspace and state directory and adds the agent to the agents list in the Gateway config. Repeat the wizard for a third agent, add bindings for each one, restart the Gateway, and confirm the routing table.
The workflow below matches the OpenClaw CLI as of November 2026. Command flags can change between releases, so check
openclaw --help on your version.# 1. Create the new agents (the wizard asks for model, workspace, and channels)
openclaw agents add coder
openclaw agents add researcher
# 2. Verify that every agent exists and see which bindings point to it
openclaw agents list --bindingsEach new agent gets its own folder tree. Typical paths look like this:
~/.openclaw/openclaw.json # Gateway config (agents + bindings)
~/.openclaw/workspace/ # main agent: AGENTS.md, SOUL.md, memory/
~/.openclaw/workspace-coder/ # coder agent workspace
~/.openclaw/agents/coder/agent/ # coder auth profiles and agent state
~/.openclaw/agents/coder/sessions/ # coder session storeVerification step: open each new workspace and edit SOUL.md so each agent has a distinct persona. Then message each agent once. If two agents answer in the same voice, they probably share a workspace path.

How do you route messages to a specific OpenClaw agent?
OpenClaw routes messages with bindings, which are rules in the Gateway config that map a channel, account, or specific peer to one agent ID. A peer match beats an account match, and an account match beats a channel-wide match. Any message that matches no binding goes to the agent marked as default.
Here is a working pattern in the JSON5 format OpenClaw uses. Key names reflect the docs as of November 2026.
{
agents: {
list: [
{ id: "main", default: true, workspace: "~/.openclaw/workspace" },
{ id: "coder", workspace: "~/.openclaw/workspace-coder" },
{ id: "researcher", workspace: "~/.openclaw/workspace-researcher" }
]
},
bindings: [
{ agentId: "coder", match: { channel: "discord", accountId: "coder-bot" } },
{ agentId: "researcher", match: { channel: "telegram", peer: { kind: "dm", id: "123456789" } } }
]
}Verification step: restart with
openclaw gateway restart, then run openclaw agents list --bindings again. Send a test message from each bound channel and check which agent's session log records it.How does OpenClaw isolate agents, and what do they share?
OpenClaw isolates each agent's workspace, memory files, session history, skills, and auth profiles, so one agent never reads another's conversations or credentials by default. Agents in one Gateway share the Gateway process, its host resources, and the channel connections the Gateway maintains. That means a Gateway crash affects every agent.
The practical rule: never point two agents at the same agent state directory. Shared state directories cause auth profile collisions and mixed session stores, which is the most common cause of "my agents keep forgetting who they are."
If two roles truly need the same project files, you have two options. You can switch personas inside one workspace, or you can give a sub-agent a scoped task that writes into the parent's workspace. Shared files are a deliberate choice, not a side effect.
How do I give each agent its own tools, memory, and chat account?
Each OpenClaw agent gets its own tools through per-agent allow and deny lists in its agents list entry. Each agent gets its own memory through its separate workspace folder, and its own chat account through a dedicated bot account bound only to that agent ID. Scoping tools per agent keeps a research agent from running shell commands.
A scoped entry looks like this:
{
id: "researcher",
workspace: "~/.openclaw/workspace-researcher",
model: "anthropic/claude-sonnet",
tools: { allow: ["web_search", "web_fetch", "read"], deny: ["exec", "write"] }
}For chat accounts, create one bot per agent (for example a separate Discord or Telegram bot token) and bind each account to its own agent ID. On Agent 37, operators also connect Gmail, Slack, GitHub, and other services through 1000+ integrations via Composio. Integrations attach to the container that runs your Gateway, so scope tool access per agent inside OpenClaw.
How do you set up an orchestrator that delegates to sub-agents?
An OpenClaw orchestrator is a normal agent that is allowed to spawn sub-agents and is told when to delegate in its AGENTS.md file. Sub-agents run in isolated sessions keyed as agent:agentId:subagent:uuid. They work in the background without blocking the main chat and report results back to the requesting agent.
Few guides show the full handoff, so here is a worked example. First, allow the orchestrator to spawn the coder agent and enable agent-to-agent messaging for the two IDs. Confirm key names in the docs for your release.
{
agents: {
list: [
{ id: "main", default: true, subagents: { allowAgents: ["coder"] } },
{ id: "coder", tools: { allow: ["read", "write", "exec"] } }
]
},
tools: { agentToAgent: { enabled: true, allow: ["main", "coder"] } }
}Second, put the delegation rule in the orchestrator's AGENTS.md:
## Delegation
- Any task that edits code or runs tests: spawn a sub-agent with agentId "coder".
- Give the sub-agent: repo path, the exact goal, and a done condition.
- Do not edit code yourself. Summarize the sub-agent's result for the user.Third, test it. Ask the main agent: "Fix the failing date parser test in ~/projects/app." A healthy run shows the orchestrator spawning a coder sub-agent. The coder sub-agent reports back with something like "Patched parseDate timezone handling, 42 tests passing," which the orchestrator then summarizes. That sample output is illustrative. Inspect live runs with
/subagents list, /subagents log, /subagents info, /subagents send, and /subagents stop.Can you mix cloud and local models, and how much RAM does that need?
OpenClaw supports a different model per agent, so a cloud model can run the orchestrator while a local model handles executors. Local models are RAM-bound. Ollama's guidance is roughly 8 GB of RAM for 7B models, 16 GB for 13B, and 32 GB for 33B, plus headroom for the Gateway itself.
Those figures come from the Ollama project README, and they are the floor for one loaded model. On a 24 GB Mac mini, a practical plan is one 7B to 8B local executor kept warm. That leaves memory for macOS, the Gateway, and a browser tool. Loading two 13B models at once will push most 24 GB machines into swap.
Our decision rule: put reasoning and delegation on a strong cloud model, because orchestration errors cascade into every sub-agent. Put repetitive extraction, summarizing, or formatting on a local model. Cloud spend is per token, so check current rates on Anthropic's pricing page or your provider's equivalent. On Agent 37, API keys go directly to providers like Anthropic and OpenAI, and Agent 37 never touches them.

Why won't my OpenClaw agents work together?
OpenClaw agents usually fail to coordinate for one of five reasons: agent-to-agent tools are still disabled, the target agent ID is missing from the allowlist, the orchestrator lacks permission to spawn that sub-agent, two agents share a state directory, or a broad binding swallows messages meant for another agent. Each failure has a quick fix.
The classic forum case is a main agent plus a separate coding agent that never hands off. Work through this list in order:
- Agent-to-agent disabled: set agentToAgent enabled to true and restart the Gateway.
- Missing allowlist entry: add both agent IDs to the allow list. A typo in one ID silently blocks messages.
- No spawn permission: add the executor ID to the orchestrator's subagents allowAgents list.
- Shared state: give every agent a unique workspace and agent state path, then restart.
- Routing conflict: a channel-wide binding can catch DMs you meant for another agent. Add a more specific peer or account binding.
- Tool permission errors: if the coder reports it cannot run commands, check that exec is not in its deny list.
- Vague delegation prompt: if AGENTS.md never says when to delegate, the orchestrator just does the work itself.
How many agents can you realistically run on one Gateway?
The number of agents one OpenClaw Gateway can handle depends on model placement, not agent count. Agents on cloud models cost little memory each, so the real limits are token spend and API rate limits. Agents on local models are capped by RAM, usually one or two warm models on a 24 GB machine.
A cost guardrail that works: give every always-on agent one job and one channel, and move rarely used roles to on-demand sub-agents. Five idle peer agents on cloud models cost almost nothing. Five agents polling inboxes every minute burn tokens on each check.
For teams juggling many agents, our guide on how to manage multiple AI agents covers review and monitoring patterns. On Agent 37, the built-in task board lets you assign work, review outputs, and schedule recurring jobs, so you can tell which agent is actually earning its tokens.
What does our migration method look like for multi-agent setups on a Mac mini?
Our Mac mini migration method moves a whole multi-agent Gateway without rebuilding it. Export the OpenClaw config, workspaces, API keys, and channel tokens. Provision an Agent 37 instance, reconnect integrations, run both systems in parallel for 24 to 48 hours, and retire the local processes only after every binding answers.
Operators who host on Mac minis cite router reboots, macOS update breaks, clutter from always-on hardware, and no way to give contractors access without screen sharing. For multi-agent setups, the parallel window matters most. Test every binding and every sub-agent handoff on the new Gateway before you shut down the old one, or one bot account ends up connected to two Gateways.
The full checklist lives in our guide to switching from a Mac mini to Agent 37. Agencies running a multi-agent setup per client can also read what the best white label OpenClaw platform looks like, since each client needs its own isolated container.
How did we compare these setup options?
We compared local Mac mini hosting, DIY VPS with Docker, and Agent 37 on who maintains the Gateway, how operators reach it remotely, isolation between clients, and published pricing. We checked OpenClaw configuration details against the official documentation and GitHub repository, and RAM figures against Ollama's published guidance. We did not run or invent benchmarks.
How do you get started with Agent 37?
Agent 37 deploys a full OpenClaw stack in one click, so you can paste the agent and binding configs from this guide into a live Gateway within minutes. The Basic plan starts at $3.99/month with bring-your-own API keys, isolated containers, a browser terminal, and the task board for reviewing agent output.
Agent 37 was #1 Product of the Day on Product Hunt and includes community support for non-technical founders setting up their first agents. Deploy your OpenClaw multi agent setup on Agent 37.
What do people also ask?
How do I add a second agent to an existing OpenClaw install?
Run openclaw agents add with a new agent ID. The wizard creates a separate workspace and state directory and adds the agent to the Gateway config. Add a binding that routes a channel or account to the new agent, restart the Gateway, and confirm with openclaw agents list --bindings.
How does OpenClaw isolate agents within one Gateway?
Each OpenClaw agent has its own workspace, memory files, session store, skills, and auth profiles, and agent-to-agent messaging is off by default. Agents share only the Gateway process, its host resources, and channel connections, so a Gateway crash takes every agent offline at once.
Can OpenClaw use a cloud model for the orchestrator and a local model for executors?
Yes. OpenClaw lets you set a model per agent, so a cloud model can run orchestration while a local model handles execution. Budget roughly 8 GB of RAM for a 7B local model and 16 GB for 13B, per Ollama's guidance, plus headroom for the Gateway.
Why does my OpenClaw main agent never hand tasks to my coding agent?
An OpenClaw main agent usually fails to hand off because agent-to-agent tools are disabled, the coder ID is missing from the allowlist or the subagents allowAgents list, or AGENTS.md never tells the orchestrator when to delegate. Fix those three items, then restart the Gateway.
How much does it cost to host an OpenClaw multi agent setup on Agent 37?
Agent 37 hosts OpenClaw starting at $3.99/month on the Basic plan (1 vCPU, 4 GB RAM, 8 GB storage) as of November 2026. You bring your own API keys, so model usage is billed directly by providers such as Anthropic or OpenAI.
