openclaw-multiagent
Configure multi-agent TG group system with shared Workspace + MemOS memory. Use when user wants to set up multiple AI agents in a Telegram group, with specialized roles and collaborative workspace.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/huamu668/huamu668-openclaw-multiagentOpenClaw 多 Agent TG 群组系统配置指南
架构说明
Workspace:共享模式
所有 Agent 共享同一个 workspace(.openclaw/workspace)。
- 主 Agent 的文件在 workspace 根目录(SOUL.md, AGENTS.md 等)
- 每个子 Agent 的专属文件在
workspace/agents/{agent_id}/子目录 - 共享上下文在
workspace/shared-context/— 所有 Agent 都可读取 - 协作通过文件完成:一个 Agent 写文件,另一个 Agent 读文件
记忆:MemOS Cloud
- MemOS Cloud 插件已安装并启用,挂载在 OpenClaw 实例级别
- 所有 Agent 自动共享同一个记忆池
- 不需要创建 memory/ 目录或 YYYY-MM-DD.md 日志文件
目录结构
workspace/
├── SOUL.md # 主 Agent 的灵魂
├── IDENTITY.md # 主 Agent 身份卡
├── AGENTS.md # 主 Agent 行为规则
├── USER.md # 用户信息(所有 Agent 共享读取)
├── HEARTBEAT.md # 主 Agent 心跳任务
├── shared-context/ # 跨 Agent 共享层
│ ├── FEEDBACK-LOG.md # 通用反馈/修正记录
│ └── SIGNALS.md # 当前关注的趋势/信号
└── agents/
├── {agent_id}/ # 子 Agent 专属目录
│ ├── SOUL.md # 子 Agent 灵魂
│ ├── IDENTITY.md # 子 Agent 身份卡
│ └── AGENTS.md # 子 Agent 行为规则
└── {另一个agent_id}/
└── ...
配置前准备
需要用户提供:
- TG 群组 ID(负数,如 -1002345678901)
- 用户的 TG 用户 ID(如 5701780765)
- 主 Bot Token(已配置或新提供)
- 子 Agent 列表(YAML 格式)
⚠️ 手动前置操作(必须)
1. BotFather 设置
每个子 Bot → /setprivacy → Disable(否则 Bot 无法读取群消息)
2. 拉 Bot 进群
所有 Bot(主 + 子)必须先被添加到目标 TG 群组
3. 获取 Bot Token
每个子 Bot 需要从 @BotFather 获取独立的 Bot Token
4. 获取群组 ID
- 转发群消息给 @raw_data_bot
- 或查看群组消息的
chat.id字段
执行步骤
Step 1:备份
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak.$(date +%Y%m%d%H%M%S)
Step 2:创建目录结构
# 共享上下文目录
mkdir -p ~/.openclaw/workspace/shared-context
# 每个子 Agent 的专属目录
mkdir -p ~/.openclaw/workspace/agents/{agent_id}
# 每个子 Agent 的 OpenClaw 内部目录
mkdir -p ~/.openclaw/agents/{agent_id}/agent
Step 3:创建共享上下文文件
写入 shared-context/FEEDBACK-LOG.md 和 shared-context/SIGNALS.md
Step 4-6:为每个子 Agent 创建
- SOUL.md
- IDENTITY.md
- AGENTS.md
Step 7:修改 openclaw.json
关键修改:
- channels.telegram → 改为 accounts 多账号模式
- agents → 添加子 Agent 配置
- bindings → 添加 agent 与 channel 的绑定
- tools → 确保 agentToAgent 和 sessions.visibility 配置
Step 8-11:验证、重启、验证上线、汇报
配置示例
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-huamu668-huamu668-openclaw-multiagent": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Writing Assistant Pro
Skill by huamu668
web-quality-audit
Comprehensive web quality audit covering performance, accessibility, SEO, best practices, and browser automation testing. Supports automated testing with PinchTab for headless/headed browser control, multi-instance orchestration, and token-efficient content extraction.
memos-recall
Recall memories from MemOS Cloud before responding. Use this skill when you need context about user's previous conversations, preferences, or decisions.
browser-automation
Browser automation for AI agents using PinchTab. Control Chrome programmatically for testing, scraping, and interaction. Features token-efficient text extraction, multi-instance orchestration, headless/headed modes, and MCP integration. Use when automating browser tasks, extracting web data, testing web apps, or validating sites in real browsers.
Huamu668 Openclaw Security
Skill by huamu668