安装windows本地OpenClaw并连接飞书

参考文档:

1.飞书 - OpenClaw

安装与配置

  1. 在Windows PowerShell里面安装wsl工具,即ubuntu虚拟机:wsl --install

如果需要代理,配置环境变量:$env:HTTP_PROXY="http://127.0.0.1:1234"

$env:HTTPS_PROXY="http://127.0.0.1:1234"

  1. 装好ubuntu之后,装OpenClaw:

curl -fsSL https://openclaw.ai/install.sh | bash

下载完成后进入安装配置步骤,需要注意模型和API Key等

  1. 最后选择Channel,这里选FeiShu

最后,OpenClaw输出:

复制代码
◓  Installing Gateway service...
Installed systemd service: /home/sj/.config/systemd/user/openclaw-gateway.service
◇  Gateway service installed.
│
◇
Feishu: failed (unknown) - API error: app do not have bot
Agents: main (default)
Heartbeat interval: 30m (main)
Session store (main): /home/sj/.openclaw/agents/main/sessions/sessions.json (0 entries)
│
◇  Optional apps ────────────────────────╮
│                                        │
│  Add nodes for extra features:         │
│  - macOS app (system + notifications)  │
│  - iOS app (camera/canvas)             │
│  - Android app (camera/canvas)         │
│                                        │
├────────────────────────────────────────╯
│
◇  Control UI ─────────────────────────────────────────────────────────────────────╮
│                                                                                  │
│  Web UI: http://127.0.0.1:18888/                                                 │
│  Web UI (with token):                                                            │
│  http://127.0.0.1:18888/#token=fedec17785dc9ccc37d02532f822447e9f54a37100fd4eb1  │
│  Gateway WS: ws://127.0.0.1:18888                                                │
│  Gateway: reachable                                                              │
│  Docs: https://docs.openclaw.ai/web/control-ui                                   │
│                                                                                  │
├──────────────────────────────────────────────────────────────────────────────────╯
│
◇  Start TUI (best option!) ─────────────────────────────────╮
│                                                            │
│  This is the defining action that makes your agent you.    │
│  Please take your time.                                    │
│  The more you tell it, the better the experience will be.  │
│  We will send: "Wake up, my friend!"                       │
│                                                            │
├────────────────────────────────────────────────────────────╯
│
◇  Token ────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                            │
│  Gateway token: shared auth for the Gateway + Control UI.                                  │
│  Stored in: ~/.openclaw/openclaw.json (gateway.auth.token) or OPENCLAW_GATEWAY_TOKEN.      │
│  View token: openclaw config get gateway.auth.token                                        │
│  Generate token: openclaw doctor --generate-gateway-token                                  │
│  Web UI keeps dashboard URL tokens in memory for the current tab and strips them from the  │
│  URL after load.                                                                           │
│  Open the dashboard anytime: openclaw dashboard --no-open                                  │
│  If prompted: paste the token into Control UI settings (or use the tokenized dashboard     │
│  URL).                                                                                     │
│                                                                                            │
├────────────────────────────────────────────────────────────────────────────────────────────╯
│
◇  How do you want to hatch your bot?
│  Hatch in TUI (recommended)
 openclaw tui - ws://127.0.0.1:18888 - agent main - session main

 session agent:main:main


 Wake up, my friend!

然后,你就可以在这里和它聊天 了。

连接飞书

(1)去飞书开放平台https://open.feishu.cn/创建一个应用,查看其APP ID 和 APP Secret.

(2)需要上线该应用,在该应用左侧的"版本管理与发布"里面,直接点击"创建版本"一直往下就行

(3)可以在飞书开放平台右上角的"开发者后台"里面看到"企业自建应用"

(4) 需要开通应用权限

飞书 - OpenClaw页面的权限配置填写在上图的"批量导入权限"页面填空处,点击下一步确认权限。

然后配置事件回调,注意用"长连接"方式。

配置完成之后,需要再次发布修改,即再次执行第(2)步,需要填写一个新的版本再发布哈。

此时,你去飞书上搜索你刚刚创建的应用名称,例如"openclaw", 那么会找到该联系人,给它发送一个消息:

把上图红色框框里面的命令敲到wsl本地的openclaw交互界面,显示如下:

配置就完成了,你就可以通过飞书和openclaw聊天了

相关推荐
喜欢就别40 分钟前
【Agentic RL / 强化学习 / OPD】OpenClaw-RL 源码阅读笔记 --- (2)--- On-Policy Distillation
人工智能·笔记
糯米导航3 小时前
AI 视觉回归实战:截图对比不是“找不同”,如何让智能差异分析真正服务 UI 质量
人工智能·ui·回归
科技圈观察4 小时前
2026年好伴AI医疗专用大模型应用梳理与梯队参考
人工智能
jkyy20144 小时前
深耕AI健康医疗数据智库,赋能企业构建主动健康管理新生态
大数据·人工智能·健康医疗
cd_949217215 小时前
3D角色自动绑骨怎么做?用V2Fun完成建模、绑定、动作和导出
人工智能·3d
瑞禧生物tech5 小时前
SH-PEG-Biotin巯基-聚乙二醇-生物素 HS-PEG-Bio 深度解析
人工智能
QYR-分析5 小时前
机器人安全控制器行业高速扩容 本土替代迎来全新发展窗口期
人工智能·安全·机器人
冬奇Lab5 小时前
MCP 系列(06):MCP vs Function Calling——用数据说话的选型指南
人工智能
冬奇Lab5 小时前
每日一个开源项目(第159篇):Vibe-Trading - 用自然语言做量化研究,AI 驱动的个人交易 Agent
人工智能·开源·资讯
AI大模型-小雄6 小时前
2026 年 7 月国内怎么开通 ChatGPT Pro?5x / 20x 区别、适合人群与避坑指南
人工智能·gpt·chatgpt·ai编程·开发工具·codex·chatgpt pro