OpenClaw 是一款开源本地 AI 智能体,支持在 Linux 环境下部署并对接飞书机器人。内容涵盖环境准备(Node.js、Git)、依赖安装、服务启动及飞书应用配置(App ID、Secret、权限)。通过 OAuth 认证千问模型,实现本地数据隐私可控的 AI 助手功能,支持文件管理、网页浏览及代码执行等操作。
t ag11 浏览
OpenClaw 本地 AI 助手飞书对接部署指南
OpenClaw 是一款开源的本地 AI 助手,本篇安装教程将手把手教你在 Linux 系统下部署最新版 OpenClaw,并完成飞书机器人对接。OpenClaw 支持在你自己的服务器上运行,通过飞书、WhatsApp、Telegram 等聊天工具交互。与云端 SaaS 服务不同,OpenClaw 让你完全掌控数据隐私,可以执行系统命令、浏览网页、管理文件,甚至编写代码——是你的专属开源 AI 助手。
注意:本教程在 Linux 系统下进行
OpenClaw 是什么?
OpenClaw(原名 Clawdbot,后更名为 Moltbot,现正式命名为 OpenClaw)是一个运行在你本地环境的高权限 AI 智能体。它的核心特性包括:
┌ OpenClaw onboarding │ ◇ Security ──────────────────────────────────────────────────────────────────────────────╮ │ │ │ Security warning — please read. │ │ │ │ OpenClaw is a hobby project and still in beta. Expect sharp edges. │ │ This bot can read files and run actions if tools are enabled. │ │ A bad prompt can trick it into doing unsafe things. │ │ │ │ If you're not comfortable with basic security and access control, don't run OpenClaw. │ │ Ask someone experienced to help before enabling tools or exposing it to the internet. │ │ │ │ Recommended baseline: │ │ - Pairing/allowlists + mention gating. │ │ - Sandbox + least-privilege tools. │ │ - Keep secrets out of the agent's reachable filesystem. │ │ - Use the strongest available model for any bot with tools or untrusted inboxes. │ │ │ │ Run regularly: │ │ openclaw security audit --deep │ │ openclaw security audit --fix │ │ │ │ Must read: https://docs.openclaw.ai/gateway/security │ │ │ ├─────────────────────────────────────────────────────────────────────────────────────────╯ │ ◆ I understand this is powerful and inherently risky. Continue? │ ● Yes / ○ No └
Skillsstatus────────────╮│││Eligible:6││Missing requirements:43││Blocked by allowlist:0│││├────────────────────────────╯│◆Configureskillsnow?(recommended)│○Yes/●No└
然后等待安装完成,最后会出现以下选项,这里选择 TUI
◆ How do you want to hatch your bot? │ ● Hatch in TUI(recommended) │ ○ Open the Web UI │ ○ Do this later └
如果看到 TUI 聊天界面,说明安装成功,可以尝试输入 Hello 进行测试。
然后直接使用 ctrl+c 先关闭,后面我们再来设置
查看 OpenClaw 服务状态
可以使用下面的命令来查看
openclaw status
会看到如下图的结果就说明服务启动了
🦞 OpenClaw 2026.2.6-3 (85ed6c7) — I read logs so you can keep pretending you don't have to.
openclaw dashboard 🦞 OpenClaw 2026.2.6-3(85ed6c7) — Works on Android. Crazy concept, we know. Dashboard URL:http://127.0.0.1:18789/#token=e8e5cd1573123ae9b11111111111111e2b94b8b7b4ccd Copy to clipboard unavailable. No GUI detected. Open from your computer: ssh -N -L 18789:127.0.0.1:18789 ubuntu@222222 Then open: http://localhost:18789/ http://localhost:18789/#token=e8e5cd1573123ae9b11111111111111e2b94b8b7b4ccd Docs: https://docs.openclaw.ai/gateway/remote https://docs.openclaw.ai/web/control-ui
复制对应的 Dashboard URL 到浏览器打开,即可正常查看聊天记录。
至此 OpenClaw 开源 AI 助手已安装完成,可以正常访问了。接下来在聊天框首次输入 Hello,OpenClaw 会询问你它应该叫什么、应该叫你什么。你需要给这个 AI 助手设置一个名字,以及它对你的称呼。可以在聊天框这么输入
Select a channel │ Feishu/Lark (飞书) │ ◇ Feishu credentials ──────────────────────────────────────────────────────────────╮ │ │ │ 1) Go to Feishu Open Platform (open.feishu.cn) │ │ 2) Create a self-built app │ │ 3) Get App ID and App Secret from Credentials page │ │ 4) Enable required permissions: im:message, im:chat, contact:user.base:readonly │ │ 5) Publish the app oradd it to a test group │ │ Tip: you can also set FEISHU_APP_ID / FEISHU_APP_SECRET env vars. │ │ Docs: feishu │ │ │ ├───────────────────────────────────────────────────────────────────────────────────╯ │ ◆ Enter Feishu App ID │ _ # 输入 App ID └