OpenClaw operations guide
Add a second OpenClaw agent with its own workspace
Short answer. Create a second OpenClaw agent in a separate workspace and send it a test prompt by agent ID from the CLI. Start with OpenClaw running locally and one agent that already replies. Use a local setup without connected chat channels for this first test.
Last updated · Published
By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.5
Start with OpenClaw running locally and one agent that already replies. Use a local setup without connected chat channels for this first test. You will select the new agent by ID from the CLI.
1. Record the current agent and workspace
Run the agent list command. Note the existing agent’s ID and workspace so you can recognize both entries after creation.
openclaw agents list
2. Choose a separate directory
Pick an unused name and a new workspace directory outside the current agent’s workspace. The example uses work and ~/.openclaw/workspace-work. A workspace is the agent’s working directory. Use sandboxing if you also need to restrict what files the agent can reach. See also Claude Code worktrees for parallel edits.
3. Add the agent without a channel binding
With the local Gateway running, pass the explicit workspace to use the basic non-interactive creation flow. Omit --bind for a CLI-only test. If the command’s result is unclear, check the roster before retrying.
openclaw agents add work --workspace ~/.openclaw/workspace-work
4. Verify the roster and workspace paths
Run the roster again with binding details. Confirm the original entry is present, the new entry has the expected workspace, and the new agent has no channel bindings.
openclaw agents list --bindings
5. Send the first prompt by agent ID
Use the agent command with --agent to send a prompt directly to the new entry. Check for its reply in the terminal. If the turn reports a model or credential problem, check the model selected for that agent in Settings → Agents and confirm its provider credentials before retrying.
openclaw agent --agent work --message "Reply with ready."