3 分钟搞定!从 OpenClaw 社区版升级到飞书官方版,开启流式输出、用户身份、50+ 官方工具
在飞书中对机器人说以下任意一句话:
typescript
await main(ctx, { action: 'start_switch' });
typescript
await main(ctx, { action: 'check_version' });
typescript
await main(ctx, { action: 'install_plugin' });
typescript
await main(ctx, {
action: 'configure_streaming',
options: {
streaming: true,
footer_status: true,
footer_elapsed: true
}
});
typescript
await main(ctx, {
action: 'switch_plugin',
disable: 'feishu',
enable: 'feishu-openclaw-plugin'
});
typescript
await main(ctx, { action: 'restart_openclaw' });
typescript
await main(ctx, { action: 'verify_config' });
确保飞书机器人已申请以下核心权限:
应用身份权限:
json
{
"scopes": {
"tenant": [
"contact:contact.base:readonly",
"docx:document:readonly",
"im:chat:read",
"im:chat:update",
"im:message.group_at_msg:readonly",
"im:message.p2p_msg:readonly",
"im:message:send_as_bot",
"cardkit:card:write",
"cardkit:card:read"
]
}
}
用户身份权限(批量授权时用):
json
{
"scopes": {
"user": [
"base:record:*",
"docs:document:*",
"calendar:calendar.event:*",
"task:task:*",
"im:message",
"drive:file:*"
]
}
}
能力社区版官方版身份机器人用户身份 ✅文档权限只读读写 ✅消息历史❌完整读取 ✅流式输出❌打字机效果 ✅表情识别❌支持 ✅电子表格❌读写支持 ✅工具数量基础50+ ✅多账号❌支持 ✅话题群❌独立上下文 ✅
转换完成后,在飞书中发送以下命令验证:
/feishu start - 确认安装成功/feishu doctor - 检查配置/feishu auth - 批量授权命令行诊断:
bash
npx @larksuite/openclaw-lark-tools doctor
npx @larksuite/openclaw-lark-tools doctor --fix
npx @larksuite/openclaw-lark-tools info
bash
# 使用 sudo
sudo npx -y @larksuite/openclaw-lark-tools install
# 使用国内镜像
export NPM_CONFIG_REGISTRY=https://registry.npmmirror.com
bash
# 检查插件状态
openclaw plugins list | grep feishu
# 期望:feishu-openclaw-plugin loaded, feishu disabled
bash
export NPM_CONFIG_REGISTRY=https://registry.npmmirror.com
npx -y @larksuite/openclaw-lark-tools install
可以跳过! 安装后不授权也能用基础功能(流式输出、对话),只是无法读取消息历史和以你的身份操作。
版本: 3.0.0
最后更新: 2026-03-18
作者: rfdiosuao
许可证: MIT