Install
openclaw skills install multi-bot-deployOpenClaw 多 Bot 多 Agent 一键搭建技能。根据用户提供的 Bot 名称、职能、模型和飞书凭证,自动完成 Agent 创建、账号配置、路由绑定和验证测试全流程。
openclaw skills install multi-bot-deploy新建 Bot: <名称>
职能:<描述>
模型:<可选,默认 bailian/qwen3.5-plus>
appId: <飞书 App ID>
appSecret: <飞书 App Secret>
从用户输入中提取:
bailian/qwen3.5-plus)cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak_$(date +%Y%m%d_%H%M%S)
openclaw agents add <agent-id> \
--workspace /root/.openclaw/workspace-<agent-id> \
--model <model-id> \
--non-interactive
openclaw channels add \
--channel feishu \
--account <agent-id> \
--name "<显示名称>"
openclaw config set "channels.feishu.accounts.<agent-id>.appId" "<appId>"
openclaw config set "channels.feishu.accounts.<agent-id>.appSecret" "<appSecret>"
openclaw agents bind \
--agent <agent-id> \
--bind "feishu:<agent-id>"
openclaw gateway restart
openclaw agents list
openclaw config get bindings
agents list 确认新增成功bindings 确认路由正确用户输入:
新建 Bot: lukas-product
职能:产品助理
模型:bailian/qwen3.5-plus
appId: cli_xxx
appSecret: XXXXXXXXXXXXXXXXXXXX
技能执行:
# 1️⃣ 备份
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak_20260312_120000
# 2️⃣ 创建 Agent
openclaw agents add product-assistant \
--workspace /root/.openclaw/workspace-product \
--model bailian/qwen3.5-plus \
--non-interactive
# 3️⃣ 添加飞书账号 + 凭证
openclaw channels add \
--channel feishu \
--account product-assistant \
--name "Lukas-产品助理"
openclaw config set "channels.feishu.accounts.product-assistant.appId" "cli_xxxxx"
openclaw config set "channels.feishu.accounts.product-assistant.appSecret" "xxxxxxxx"
# 4️⃣ 绑定路由
openclaw agents bind \
--agent product-assistant \
--bind "feishu:product-assistant"
# 5️⃣ 重启 + 验证
openclaw gateway restart
openclaw agents list
openclaw config get bindings
输出摘要:
## ✅ 多 Bot 多 Agent 搭建完成
### 配置摘要
| 项目 | 值 |
|------|-----|
| Agent ID | product-assistant |
| 显示名称 | Lukas-产品助理 |
| Workspace | /root/.openclaw/workspace-product |
| 模型 | bailian/qwen3.5-plus |
| 飞书账号 | product-assistant |
### 验证结果
- ✅ Agent 创建成功
- ✅ 飞书账号配置成功
- ✅ 路由绑定成功
- ✅ Gateway 重启成功
### 下一步
1. 在飞书添加 Bot「Lukas-产品助理」
2. 发送测试消息确认响应
用户输入:
新建 Bot: dev-helper
职能:代码审查和技术问答
模型:bailian/qwen3-coder-plus
appId: cli_aXXXXXXXXXXXXXX
appSecret: XXXXXXXXXXXXXXXXXXXX
技能执行:
# agentId 自动生成:dev-helper
openclaw agents add dev-helper \
--workspace /root/.openclaw/workspace-dev-helper \
--model bailian/qwen3-coder-plus \
--non-interactive
openclaw channels add \
--channel feishu \
--account dev-helper \
--name "Dev-Helper"
openclaw config set "channels.feishu.accounts.dev-helper.appId" "cli_aXXXXXXXXXXXXXX"
openclaw config set "channels.feishu.accounts.dev-helper.appSecret" "XXXXXXXXXXXXXXXXXXXX"
openclaw agents bind \
--agent dev-helper \
--bind "feishu:dev-helper"
openclaw gateway restart
| 项目 | 规范 | 示例 |
|---|---|---|
| agentId | 小写 + 连字符 | product-assistant |
| workspace | /root/.openclaw/workspace-<id> | workspace-product |
| accountId | 与 agentId 一致 | product-assistant |
| 显示名称 | 可读性优先 | Lukas-产品助理 |
openclaw.jsongateway restart# 检查 agentId 是否重复
openclaw agents list
# 检查 workspace 路径权限
ls -la /root/.openclaw/
# 检查 appId/appSecret 格式
openclaw config get channels.feishu.accounts
# 验证凭证是否正确
openclaw gateway logs
# 检查现有绑定
openclaw config get bindings
# 手动添加绑定
openclaw agents bind --agent <id> --bind "feishu:<account>"
# 检查 Gateway 状态
openclaw gateway status
# 查看日志
openclaw gateway logs
# 检查飞书应用权限
# 确保已配置:机器人、消息、群组读写
直接发送指令:
新建 Bot: <名称>
职能:<描述>
模型:<可选>
appId: <xxx>
appSecret: <xxx>
技能自动完成全流程配置!