如何部署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啊!

五、参考文献

相关推荐
IT_陈寒2 小时前
Redis内存爆了,原来我漏掉了这个致命配置
前端·人工智能·后端
用户3521802454753 小时前
🎆从 Prompt 到 Skill:让 Spring AI Agent 学会"装新技能"
人工智能·spring boot·ai编程
米小虾4 小时前
手把手教你搭建第一个生产级AI Agent:从选型到实战的完整指南
人工智能·agent
任沫4 小时前
Agent之Function Call
javascript·人工智能·go
米小虾4 小时前
2026年AI Agent全面爆发:从开源生态到企业级应用的进化之路
人工智能·agent
用户6919026813394 小时前
Vibe Coding 开发项目的基本范式
人工智能·设计模式·代码规范
To_OC4 小时前
别再跟 AI 死磕 prompt 了,我写了个 Loop 让它自己改到满意为止
人工智能·aigc·agent
血小溅5 小时前
三大 AI 编码框架深度对比:GSD vs OpenSpec vs Superpowers
人工智能·后端
武子康8 小时前
调查研究-186 LangChain 和 LangGraph 的区别:从快速构建 Agent 到生产级工作流编排
人工智能·langchain·llm
武子康9 小时前
调查研究-185 CodeGraph 调研:给 AI 编程 Agent 一张代码库地图,少一点反复 grep(2026)
人工智能·openai·claude