OpenClaw 多 Agent 与多飞书机器人配置指南
在 OpenClaw 架构中,虽然建议一个 Agent 对应一个飞书机器人以保持逻辑清晰,但系统支持为不同 Agent 绑定独立的飞书应用。以下是在同一实例中配置多个 Agent 及对应飞书渠道的完整流程。
1. 创建新 Agent
首先通过命令行创建新的 Agent 实例。注意命名规范,避免拼写错误。
# 创建新 Agent,命名为 new-agent
openclaw agents add new-agent
# 查看创建结果,确认 ID 和状态
openclaw agents list
2. 配置飞书渠道
每个 Agent 需要独立配置其对应的飞书 App ID 和 Secret。这一步主要在配置文件或环境变量中完成。
在命令行执行以下命令(请替换实际值):
# 配置 new-agent 的飞书通道信息
openclaw config set agents.new-agent.channels.feishu.appId "你的 new-agent 飞书 App ID"
openclaw config set agents.new-agent.channels.feishu.appSecret "你的 new-agent 飞书 App Secret"
# 重启网关服务使配置生效
openclaw gateway restart
配置完成后,openclaw.json 中的 channels 部分应包含如下结构。重点关注 accounts 下的独立配置项:
"channels": {
"feishu": {
"enabled": true,
"domain": "feishu",
"groupPolicy": "allowlist",
"accounts": {
"main": {
"appId": "cli_1"

