openclaw配置飞书 channel 机器人通道 多账号
📌 TLDR
给 OpenClaw 配飞书(Lark)通道:先在开放平台建企业自建应用,拿到 App ID / App Secret;再用 openclaw channels add 写入 feishu 配置,accounts 下可按账号分别设 botName、groupPolicy、dmPolicy、allowFrom —— 一个 openclaw 能同时挂多个飞书机器人。用 openclaw channels list 确认:Telegram 默认账号与两个飞书账号都是 configured + enabled。
- 创建飞书机器人:访问飞书开放平台 https://open.feishu.cn • 创建企业自建应用 创建版本号1.0.1 • 获取 App ID 和 App Secret
cli_##############
#####################
- 配置 OpenClaw:添加飞书插件
• 在 OpenClaw 配置中添加飞书通道 通过
openclaw channels add完成,一个openclaw可以配置连接多个飞书账号:
"feishu": {
// 全局默认设置(可被单账号覆盖)
"enabled": true,
"domain": "feishu", // 或 "lark"
"accounts": {
// 第一个机器人(主账号)
"main": {
"appId": "cli_a1b2c3d4",
"appSecret": "wkEb...123",
"botName": "主助手",
"groupPolicy": "open"
},
// 第二个机器人(例如用于特定测试或部门)
"test_bot": {
"appId": "cli_x9y8z7w6",
"appSecret": "abCd...456",
"botName": "测试号",
"dmPolicy": "allowlist", // 不同的权限策略
"allowFrom": ["ou_..."]
}
然后用openclaw channels list命令: ? OpenClaw 2026.2.14 (c1feda1) — I’m not magic—I’m just extremely persistent with retries and coping strategies.
03:36:47 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes 03:36:47 [plugins] feishu_wiki: Registered feishu_wiki tool 03:36:47 [plugins] feishu_drive: Registered feishu_drive tool Chat channels:
- Telegram default: configured, token=config, enabled **- Feishu test_bot: configured, enabled
- Feishu main: configured, enabled**
Auth providers (OAuth + API keys):
- google-gemini-cli:chedong@gmail.com (oauth)
- google:default (api_key)
- minimax:default (api_key)
- qwen-portal:default (oauth)
- moonshot:default (api_key)
- minimax-portal:default (oauth)
- minimax-cn:default (api_key)
- 飞书开放平台上的配置: open.feishu.cn feishu和lark账号是分开的 3.1 批量导入权限: https://open.feishu.cn/app/cli_##########/auth
{
"scopes": {
"tenant": [
"im:message", "im:message:send_as_bot", "im:chat", "im:message.p2p_msg:readonly",
"im:message.group_at_msg:readonly", "im:message.group_msg", "im:message:readonly",
"im:resource", "im:chat.access_event.bot_p2p_chat:read"
]
}
}
3.2. 在飞书后台 “事件订阅” 页面, https://open.feishu.cn/app/cli_##########/event 选择 “使用长连接接收事件”。 注: 一定要先在第2步:openclaw上启动这个账号,然后再在3.2配置事件订阅:否则在飞书开放平台会有“应用未设置长连接”错误提示。
3.3. 在飞书后台 “事件订阅” 页面, https://open.feishu.cn/app/cli_##########/event 添加事件:im.message.receive_v1 (接收消息)。
-
发布应用:创建一个版本号 1.0.2
-
用飞书app:查找连接飞书bot OpenClaw:访问未配置。 您的飞书用户 ID:ou_################### 配对码:####### 请机器人所有者使用以下命令进行批准:
openclaw pairing approve feishu #########
> openclaw pairing approve feishu #########
06:48:21 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
06:48:21 [plugins] feishu_wiki: Registered feishu_wiki tool
06:48:21 [plugins] feishu_drive: Registered feishu_drive tool
06:48:21 [plugins] feishu_bitable: Registered 6 bitable tools
? OpenClaw 2026.2.14 (c1feda1) — Claws out, commit in—let’s ship something mildly responsible.
Approved feishu sender ou_##################