OpenClaw 接入飞书完整教程

-
Node.js — 推荐 Node 24(Node 22.19+ 也可以)
iwr -useb https://openclaw.ai/install.ps1 | iex
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard --install-daemon
-
打开飞书开放平台 (open.feishu.cn) 并登录
-
进入「事件订阅」页面
-
进入「版本管理」页面,创建版本并提交审核
openclaw channels login --channel feishu
{ "channels": { "feishu": { "enabled": true, "appId": "cli_xxxxxxxxxx", "appSecret": "你的App Secret", "domain": "feishu", "connectionMode": "websocket", "dmPolicy": "pairing", "groupPolicy": "allowlist" } }}
openclaw gateway restart
openclaw gateway status
-
在飞书中搜索你创建的应用名称
openclaw pairing list feishuopenclaw pairing approve feishu <配对码>
{ "channels": { "feishu": { "groupPolicy": "open", "requireMention": false } }}
{ "channels": { "feishu": { "groupPolicy": "allowlist", "groupAllowFrom": ["oc_xxx", "oc_yyy"] } }}
{ "channels": { "feishu": { "streaming": true } }}
{ "agents": { "list": [ { "id": "main" }, { "id": "coder", "workspace": "/home/user/coder" } ] }, "bindings": [ { "agentId": "coder", "match": { "channel": "feishu", "peer": { "kind": "direct", "id": "ou_xxx" } } } ]}
{ "channels": { "feishu": { "dmPolicy": "open", "allowFrom": ["*"], "dynamicAgentCreation": { "enabled": true, "workspaceTemplate": "~/.openclaw/workspace-{agentId}" } } }}
-
确认应用已发布并审核通过
-
确认机器人已加入群聊
-
在飞书开放平台重置 App Secret
-
安装 OpenClaw → openclaw onboard
夜雨聆风