为 Agent 配置多个飞书机器人
建议每个 Agent 仅绑定一个独立的飞书机器人,这样便于权限管理和故障隔离。
一、创建新的 Agent
首先通过命令行创建一个新的 Agent 实例。这里以 new-agent 为例:
# 创建新 Agent
openclaw agents add new-agent
# 查看创建结果确认状态
openclaw agents list
二、配置飞书渠道参数
在创建好 Agent 后,需要为其配置对应的飞书应用凭证。请确保替换为你实际获取的 App ID 和 App 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",
"appSecret"

