ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

【AI】Mac 安装 OpenClaw 及接入飞书教程

2026/8/17 2:12:51 拓冰建站 浏览量
【AI】Mac 安装 OpenClaw 及接入飞书教程

一、安装 Nodejs(必须)

因为 OpenClaw 至少需要运行在 node22 版本环境,因此需要先安装 node 环境

  • step1:下载并安装 nvm:curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

  • step2:重启终端,输入命令nvm --version查看是否安装成功

  • step3:安装 node 24:nvm install 24

  • step4:查看 node 版本 和 npm 版本

二、安装 OpenClaw

📖 官网地址:https://openclaw.ai/

  • 方式一:命令行

参考官网在终端执行如下命令:curl -fsSL [https://openclaw.ai/install.sh](https://openclaw.ai/install.sh) | bash

  • 方式二:Github 下载 mac 对应安装包:

地址:https://github.com/openclaw/openclaw/releases/tag/v2026.3.2

三、配置 OpenClaw

  • 配置大模型,以 minimax 为例:会弹出官网进行登陆

牢记对应设置的 api_key(切忌泄漏!!!)

  • 配置想要与 OpenClaw 建立连接的 APP(例如飞书等),后续可单独配置

  • 配置 Agent Skills(后续也可单独配置)

四、使用 OpenClaw

  • step1:尝试在浏览器地址栏中输入:http://127.0.0.1:18789/

如果访问不了,可以尝试在终端输入:openclaw gateway start

如果还不行,运行诊断命令:openclaw status --all

最终网页版呈现效果如下:

五、接入飞书

step1:启动 OpenClaw 对应 feishu 的插件

  • 查看当前飞书插件状态:openclaw plugins list | grep feishu

  • 如果是 disabled 就执行以下命令:openclaw plugins enable feishu

step2:在飞书开发者后台:https://open.feishu.cn/, 创建应用,并导入权限:

{"scopes":{"tenant":["aily:file:read","aily:file:write","application:application.app_message_stats.overview:readonly","application:application:self_manage","application:bot.menu:write","cardkit:card:write","contact:user.employee_id:readonly","corehr:file:download","docs:document.content:read","event:ip_list","im:chat","im:chat.access_event.bot_p2p_chat:read","im:chat.members:bot_access","im:message","im:message.group_at_msg:readonly","im:message.group_msg","im:message.p2p_msg:readonly","im:message:readonly","im:message:send_as_bot","im:resource","sheets:spreadsheet","wiki:wiki:readonly"],"user":["aily:file:read","aily:file:write","im:chat.access_event.bot_p2p_chat:read"]}}
  • step3:创建并发布应用

  • step4:OpenClaw 对接 飞书

执行以下命令:

#配置飞书的key和serect# 设置 appIdopenclaw configset--jsonchannels.feishu.appId'"你的key"'# 设置 appSecretopenclaw configset--jsonchannels.feishu.appSecret'"你的secret"'# 重启下openclawopenclaw gateway restart
  • step5:飞书开放平台注册回调,添加事件(选择全部消息功能)

  • step6:重新发布应用,即可在飞书平台使用 openclaw 应用

  • step7:输入配对 code:openclaw pairing approve feishu MDDLG4SW