Overview
Run several OpenClaw agents in one Gateway, each with its own role, workspace, memory, tools and accounts, and keep a person approving their actions and reading their session history.
Problem or Objective
- Which agents attempt to run whole business processes, and where do people stay in control?
- How do teams design the context, tools and memory of their own AI agents?
More in Business Operations
AI Agents and Models
Tools and Integrations
- Tools
- OpenClaw
- Prerequisites
- A machine running OpenClaw, a model provider key, and a separate chat channel or account for each agent.
How It Works
Self-host OpenClaw. Write down each role you need, for example support, marketing and bookkeeping, and the one task each may do. Create one isolated agent per role, each with its own workspace, role description, auth profile and sandbox and tool restrictions, and bind each to its own chat channel or account. Set the Memory Wiki to keep a separate vault per agent so one role's notes do not leak into another's. Limit which agents may reach each other's sessions. Ask every agent to state the original task and its intended action before acting, and to ask you in its chat channel and wait for your reply before any action that sends, buys or changes data. Once a week, read each agent's session history and tighten anything that drifted from its role.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up OpenClaw.
- Connect the toolsConnect the tools this workflow relies on: OpenClaw.
- Check the prerequisitesA machine running OpenClaw, a model provider key, and a separate chat channel or account for each agent.
- Gather your detailsCollect what the prompt asks for: Role name, Business or team name, The one task this role does, Tools and accounts this agent may use.
- Run the starter promptPaste the starter prompt below into OpenClaw and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.openclaw.ai before you rely on it.
Practical Starter Prompt: Set the rules for one role-based agent
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You are the [Role name] agent for [Business or team name]. Your only job is [The one task this role does]. You may use only these tools and accounts: [Tools and accounts this agent may use]. Before each action, write one line restating the original request and one line saying what you plan to do. Ask me for approval before you send a message, spend money, or change any record, and wait for my answer. If a request belongs to another role, hand it to that agent instead of doing it yourself, and note the handoff.Approve sends, purchases and record changes in each agent's chat before they happen. Read each agent's session history weekly and narrow its tools if it strays from its role.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. OpenClaw's docs describe several isolated agents in one Gateway with their own workspaces, auth and session history, per-agent sandbox and tool settings, controls for cross-agent access, and a Memory Wiki that can be scoped per agent, with each agent reachable through a chat app. The approval step here is an instruction in each agent's prompt, not a documented control, and the pages do not report how well such a team stays on task.
Limitations and Considerations
An agent's workspace is its default folder, not a hard sandbox: absolute paths can reach other places on the host unless sandboxing is enabled. Cross-agent session access is on by default, so restrict it on purpose. Each agent calls your model provider and adds cost. Self-hosting means you secure the machine and the chat accounts. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About openclaw/openclaw
395k signal: Openclaw claims full OS control, but who audits its unattended actions (opens in a new tab)
Walkthrough of openclaw by Repo Radar: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)About openclaw/openclaw
Top 10 AI GitHub Repos Blowing Up Right Now — Dec 4, 2026 (opens in a new tab)
Walkthrough of openclaw by AINews-GitHubHuggingFace: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Multi-agent routing (opens in a new tab)
Project documentation · docs.openclaw.ai · Undated · Source checked 27 Nov 2026, 04:08 UTC
What this source supports
- Run multiple isolated agents in one Gateway process, each with its own workspace, state directory, and SQLite-backed session history.
- Each agent can have its own sandbox and tool restrictions.
- Narrow session visibility with tools.sessions.visibility, restrict agent pairs with tools.agentToAgent.allow, or set tools.agentToAgent.enabled: false to block ordinary cross-agent access.
- Memory Wiki uses one global vault by default; to keep a support agent's compiled knowledge separate from a marketing agent's, set the vault scope to agent.
- Each agent's workspace is the default cwd, not a hard sandbox; absolute paths can reach other host locations unless sandboxing is enabled.
- Chat channels - OpenClaw (opens in a new tab)
Project documentation · docs.openclaw.ai · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- OpenClaw can talk to you on any chat app you already use; each channel connects via the Gateway, and text is supported everywhere while media and reactions vary by channel.

