如何部署OpenClaw+飞书

文章目录

  • 一、如何安装OpenClaw
    • [第1步:◆ I understand this is powerful and inherently risky. Continue?](#第1步:◆ I understand this is powerful and inherently risky. Continue?)
    • [第2步:◆ Onboarding mode](#第2步:◆ Onboarding mode)
    • [第3步:◆ Model/auth provider](#第3步:◆ Model/auth provider)
    • [第4步:◆ Moonshot AI (Kimi K2.5) auth method](#第4步:◆ Moonshot AI (Kimi K2.5) auth method)
    • [第5步:◆ Default model](#第5步:◆ Default model)
    • [第6步:◆ Select channel (QuickStart)](#第6步:◆ Select channel (QuickStart))
    • [第7步:◆ Configure skills now? (recommended)](#第7步:◆ Configure skills now? (recommended))
    • [第8步:◆ Preferred node manager for skill installs](#第8步:◆ Preferred node manager for skill installs)
    • [第9步:◆ Install missing skill dependencies](#第9步:◆ Install missing skill dependencies)
    • [第10步:对于其余的 API 密钥,如果您没有则一律选择 no](#第10步:对于其余的 API 密钥,如果您没有则一律选择 no)
    • [第11步:◆ How do you want to hatch your bot?](#第11步:◆ How do you want to hatch your bot?)
  • 二、如何卸载OpenClaw
  • 三、如何安装飞书插件
  • 四、与机器人的交互体验
  • 五、参考文献

一、如何安装OpenClaw

bash 复制代码
 curl -fsSL https://openclaw.ai/install.sh | bash

执行上面的命令就可以开始安装了,但是由于安装步骤比较长,随时可能会选择错误或者输入错误,这个时候又没法回退,只能卸载,再重新安装,卸载脚本在最下面。

第1步:◆ I understand this is powerful and inherently risky. Continue?

选择Yes

第2步:◆ Onboarding mode

选择QuickStart

第3步:◆ Model/auth provider

选择:● Moonshot AI (Kimi K2.5) (Kimi K2.5 + Kimi Coding)

第4步:◆ Moonshot AI (Kimi K2.5) auth method

选择:Kimi API key (.cn),然后输入对应的Moonshot API key(前往Kimi官网获取,之所以不选Qwen,是因为这个便宜些😂。。。)

第5步:◆ Default model

选择:Keep current (moonshot/kimi-k2.5)

第6步:◆ Select channel (QuickStart)

选择:Skip for now

第7步:◆ Configure skills now? (recommended)

选择:Yes

第8步:◆ Preferred node manager for skill installs

选择:npm

第9步:◆ Install missing skill dependencies

选择:Skip for now

第10步:对于其余的 API 密钥,如果您没有则一律选择 no

第11步:◆ How do you want to hatch your bot?

接下来会弹出

这里选择Yes

二、如何卸载OpenClaw

bash 复制代码
openclaw uninstall --all --yes --non-interactive
npx -y openclaw uninstall --all --yes --non-interactive
openclaw gateway stop
openclaw gateway uninstall
rm -rf "${OPENCLAW_STATE_DIR:-$HOME/.openclaw}"
rm -rf ~/.openclaw/workspace
npm rm -g openclaw
pnpm remove -g openclaw
bun remove -g openclaw
rm -rf /Applications/OpenClaw.app

三、如何安装飞书插件

bash 复制代码
openclaw plugins install @m1heng-clawd/feishu

执行结果如下:

如果你没有看到One CLI to rule them all, and one more restart because you changed the port.

不要紧张,这个看起来是OpenClaw的程序员幽默言语,每次都可能不一样。

有时候可能是这样:

bash 复制代码
openclaw channels add

选择"Yes"以及"飞书"

紧接着输入 Feishu App ID和Feishu App Secret

然后选择国内的飞书

不要再群内响应

最后选择Finished即可


openclaw gateway --port 18789 --verbose,执行结果如下

访问飞书开发者平台(https://open.feishu.cn/app?lang=zh-CN);

登录后,点击 "创建企业自建应用";

填写应用基础信息:应用名称,选择应用图标,点击 "创建" 按钮,进入应用管理页面。

具体内容可参考:https://damodev.csdn.net/697dff7b7c1d88441d90f0e4.html,我觉得这个博客讲得已经很清楚。

然后点击:确认开通

切到"回调配置":

bash 复制代码
{
  "scopes": {
    "tenant": [
      "contact:user.base:readonly",
      "im:chat",
      "im:chat:read",
      "im:chat:update",
      "im:message",
      "im:message.group_at_msg:readonly",
      "im:message.p2p_msg:readonly",
      "im:message:send_as_bot",
      "im:resource"
    ],
    "user": []
  }
}


此时,飞书会发来消息:

四、与机器人的交互体验

每次机器人在回复时,都会先加个小表情,挺可爱的:

下面是我在飞书中和OpenClaw部署的机器人的简单对话截图:

看了眼文件夹,确实给我整理好了:

Nice啊!

五、参考文献

相关推荐
个入资料1 小时前
阿里云ecs+飞书搭建openclaw
人工智能
孤烟2 小时前
【RAG 实战系列 02】检索精度翻倍!混合检索(稀疏 + 稠密)实战教程
人工智能·llm
明明如月学长3 小时前
OpenClaw 帮我睡后全自动完成了老板交代的任务
人工智能
uuware3 小时前
Lupine.Press + AI 助您分分钟搞定技术项目的文档网站
人工智能·前端框架
海上日出3 小时前
使用 QuantStats 进行投资组合绩效分析:Python 量化实战指南
人工智能
Qinana3 小时前
150行代码搞定私有知识库!Node.js + LangChain 打造最小化 RAG 系统全流程
人工智能·程序员·node.js
猿猿长成记3 小时前
AI专栏 | AI大法则之思维链、自洽性、思维树
人工智能
用户5191495848453 小时前
CrushFTP 条件竞争认证绕过漏洞利用工具 (CVE-2025-54309)
人工智能·aigc
一拳不是超人3 小时前
AI时代,35岁程序员焦虑终结:经验从负债变资产
人工智能·程序员
IT_陈寒4 小时前
Vite快得离谱?揭秘它比Webpack快10倍的5个核心原理
前端·人工智能·后端