OpenClaw 多 Agent 与飞书机器人配置实践
在 OpenClaw 架构中,建议遵循'一个 Agent 对应一个飞书机器人'的原则,这样能避免消息路由混乱,也便于权限管理。
一、创建新的 Agent
首先我们需要创建一个独立的 Agent 实例。通过命令行工具执行以下操作:
# 创建新 Agent,命名为 new-agent
openclaw agents add new-agent
# 确认创建结果
openclaw agents list
二、配置飞书渠道信息
每个 Agent 需要绑定独立的飞书应用凭证(App ID 和 App Secret)。请在终端中运行配置命令,替换为你实际获取的值:
# 设置飞书渠道配置
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",

