OpenClaw 多 Agent 与飞书机器人配置
在实际使用中,一个 Agent 建议仅绑定一个飞书机器人,这样便于管理和维护。下面介绍如何为不同的 Agent 配置独立的飞书渠道。
创建新 Agent
首先通过命令行创建新的 Agent 实例:
# 创建新 Agent,命名为 new-agent
openclaw agents add new-agent
# 查看创建结果
openclaw agents list
配置飞书凭证与绑定
1. 配置 Channels
在命令行中为新 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
生成的配置文件通常如下结构,请重点核对 accounts 字段的内容是否正确:
{
"channels": {
"feishu": {
"enabled": true,
"domain": "feishu",
"groupPolicy": "allowlist",
"accounts": {
"main": {
"appId": "cli_1",

