本文最后更新于:2026年3月9日 下午

本文记录为 OpenClaw 配置多个 Agents 的流程。

环境配置

  1. Ubuntu 22.04
  2. node.js 版本 v22.22.0
  3. npm 版本 10.9.4
  4. openclaw 版本 2026.3.7
  5. 已经完成了单个 Agent 配置

配置思路

目标是多个 Agent 分工协作,可以有单个 Agent 一人分饰多角,也可以创建多个 Agent,每个 Agent 有自己的工作空间(记忆)和 skill (能力),我选择后者,会比较隔离并且职责划分清晰,只不过同时需要配置多个 飞书 应用就是了。

配置流程

飞书应用创建

创建应用

学习助手

添加机器人能力

导入权限

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"scopes": {
"tenant": [
"contact:user.employee_id:readonly",
"im:chat",
"im:chat.members:bot_access",
"im:chat:read",
"im:message",
"im:message.group_at_msg:readonly",
"im:message.p2p_msg:readonly",
"im:message.pins:read",
"im:message.pins:write_only",
"im:message.reactions:read",
"im:message.reactions:write_only",
"im:message:readonly",
"im:message:send_as_bot",
"im:resource"
],
"user": [
"im:chat.access_event.bot_p2p_chat:read",
"im:message"
]
}
}

之后确认开通即可。

直到创建完成所有预想的 Agent 清单

之后在凭证与基础信息里可以看到 AppID 和 App secret

OpenClaw 配置工作目录

首先需要规定好每个机器人的名称角色和 ID,需要确定每个

可以通过和 OpenClaw 对话完成,具体落实到配置在 OpenClaw 配置文件里:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"agents": {
"defaults": {
"model": {
"primary": "zai/glm-5",
"fallbacks": [
"minimax-portal/MiniMax-M2.5",
"minimax-portal/MiniMax-M2.5-highspeed",
"minimax-portal/MiniMax-M2.5-Lightning"
]
},
"models": {
"minimax-portal/MiniMax-M2.5": {
"alias": "minimax-m2.5"
},
"minimax-portal/MiniMax-M2.5-highspeed": {
"alias": "minimax-m2.5-highspeed"
},
"minimax-portal/MiniMax-M2.5-Lightning": {
"alias": "minimax-m2.5-lightning"
},
"zai/glm-5": {
"alias": "GLM"
}
}
},
"list": [
{
"id": "main"
},
{
"id": "agent-coder",
"workspace": "/home/vvd/.openclaw/workspaces/agent-coder"
},
{
"id": "agent-scholar",
"workspace": "/home/vvd/.openclaw/workspaces/agent-scholar"
},
{
"id": "agent-assistant",
"workspace": "/home/vvd/.openclaw/workspaces/agent-assistant"
},
{
"id": "agent-life",
"workspace": "/home/vvd/.openclaw/workspaces/agent-life"
},
{
"id": "agent-backup",
"workspace": "/home/vvd/.openclaw/workspaces/agent-backup"
}
]
}

OpenClaw 配置飞书

OpenClaw 自己配置

就直接跟他说明白,信息发给他就行了

1
2
3
4
5
6
7
8
现在把其他 5个应用 的凭证发给我:
砂糖: cli_xxx, secret_xxx
莱依拉: cli_xxx, secret_xxx
芭芭拉: cli_xxx, secret_xxx
诺艾尔: cli_xxx, secret_xxx
伊涅芙: cli_xxx, secret_xxx

我会帮你更新配置文件!
手动配置

在 OpenClaw 配置文件里修改 feishu 的配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"channels": {
"feishu": {
"enabled": true,
"defaultAccount": "sigewinne",
"accounts": {
"sigewinne": {
"appId": "cli_xxxxxxxx",
"appSecret": "xxxxxxxxxxxxxxxxxxxxxx",
"botName": "希格雯"
},
"sucrose": {
"appId": "cli_xxxxxxxx",
"appSecret": "xxxxxxxxxxxxxxxxxxxxxx",
"botName": "砂糖"
},
"layla": {
"appId": "cli_xxxxxxxx",
"appSecret": "xxxxxxxxxxxxxxxxxxxxxx",
"botName": "莱依拉"
},
"barbara": {
"appId": "cli_xxxxxxxx",
"appSecret": "xxxxxxxxxxxxxxxxxxxxxx",
"botName": "芭芭拉"
},
"noelle": {
"appId": "cli_xxxxxxxx",
"appSecret": "xxxxxxxxxxxxxxxxxxxxxx",
"botName": "诺艾尔"
},
"inev": {
"appId": "cli_xxxxxxxx",
"appSecret": "xxxxxxxxxxxxxxxxxxxxxx",
"botName": "伊涅芙"
},
"default": {
"dmPolicy": "pairing"
}
}
}
}

添加事件回调

配置完成后,回到飞书

选择长连接

添加事件接收消息事件 im.message.receive_v1

之后发布版本

OpenClaw 注册

这时候回到飞书打开里面的 App

伊涅芙 就好了,但是还需要 OpenClaw 最后配置一下
跟她说句话,她会回复该如何操作:

把这句话发给 OpenClaw 他会批准权限

测试对话

和目标机器人对话即可:

逐个完成即可配置多个 Agent , Have fun ~

参考资料



文章链接:
https://www.zywvvd.com/notes/study/llm/openclaw-multi-agents/openclaw-multi-agents/


“觉得不错的话,给点打赏吧 ୧(๑•̀⌄•́๑)૭”

微信二维码

微信支付

支付宝二维码

支付宝支付

OpenClaw 配置多 Agents
https://www.zywvvd.com/notes/study/llm/openclaw-multi-agents/openclaw-multi-agents/
作者
Yiwei Zhang
发布于
2026年3月9日
许可协议