Deploy a production-ready multi-agent fleet in OpenClaw. Includes step-by-step setup guide, workspace templates, and Python automation scripts for agent creation, routing config, memory sync, and cloud deployment — based on a real working 4-agent production setup.
Guides you through deploying 3-5 specialized AI agents in OpenClaw that work as a coordinated fleet. Based on a real production setup running on a Hostinger VPS with Docker.
| File | Purpose |
|---|---|
agent_setup.py | Creates workspace directory structure for any number of agents |
routing_config.py | Generates openclaw.json agent entries with model routing and fallbacks |
memory_sync.py | Syncs Cross-Agent Intel sections across all agent MEMORY.md files |
deploy.sh | Uploads workspace files to VPS and restarts the container |
python3 agent_setup.py --agents pat scout publisher builder --base /data/.openclaw
Creates workspace-{agent}/ with SOUL.md, MEMORY.md, drafts/, skills/, .claude/settings.json, .claudeignore.
Edit each workspace-{agent}/SOUL.md:
# Preview output
python3 routing_config.py --agents main scout publisher builder
# Write directly to openclaw.json
python3 routing_config.py --agents main scout publisher builder \
--output /data/.openclaw/openclaw.json
Configures model routing with OpenRouter fallbacks (minimax → deepseek → kimi).
Add to your cron/jobs.json for each agent:
{
"name": "Agent: Daily Run",
"agentId": "scout",
"schedule": { "expr": "0 10 * * *" },
"enabled": true
}
bash deploy.sh --vps root@your-vps-ip --key ~/.ssh/your_key
Run nightly or manually to propagate cross-agent intelligence:
python3 memory_sync.py --base /data/.openclaw --agents pat scout publisher builder
Coordinator (main) — always-on Telegram, approval queue, briefings
├── Scout — market intel, inbound monitoring, trends
├── Publisher — content drafts for Twitter/LinkedIn/video
└── Builder — skill development, marketplace research
Each agent has: