为 Agent 配置多个飞书机器人
建议每个 Agent 仅配置一个飞书机器人。
一、创建新 Agent
# 创建新的 Agent,命名为 new-agent
openclaw agents add new-agent
# 查看创建结果
openclaw agents list
二、配置 Agent 与飞书链接
1. 配置 Agent 下的 Channels
在命令行输入以下命令(替换为实际的 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 配置文件示例如下(重点关注 accounts 部分):
{
"channels": {
"feishu": {
"enabled": true,
"domain": "feishu",
"groupPolicy": "allowlist",
"accounts": {
"main": {
"appId": "cli_1",
"appSecret"

