在OpenClaw中部署可投入生产的多智能体集群,包含逐步设置指南、工作空间模板以及用于智能体创建的Python自动化脚本。
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.
FilePurposeagent_setup.pyCreates workspace directory structure for any number of agentsrouting_config.pyGenerates openclaw.json agent entries with model routing and fallbacksmemory_sync.pySyncs Cross-Agent Intel sections across all agent MEMORY.md filesdeploy.shUploads workspace files to VPS and restarts the container
bash
python3 agent_setup.py --agents pat scout publisher builder --base /data/.openclaw
Creates a workspace-{agent}/ folder with SOUL, memory, drafts, skills, and Claude settings scaffolding.
Edit each workspace's SOUL file:
bash
# 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 a recurring cron job for each agent, for example:
json
{
"name": "Agent: Daily Run",
"agentId": "scout",
"schedule": { "expr": "0 10 * * *" },
"enabled": true
}
bash
bash deploy.sh --vps root@your-vps-ip --key ~/.ssh/your_key
Run nightly or manually to propagate cross-agent intelligence:
bash
python3 memory_sync.py --base /data/.openclaw --agents pat scout publisher builder
text
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:
This skill is for operators who already know they want multiple agents, but do not want to hand-assemble workspace scaffolding, routing config, memory propagation, and deployment steps from scattered docs.
By the end of this skill, you should have: