OpenClaw:本地部署OpenClaw + LMStudio + 飞书 -- 手把手教你打造专属本地 AI 助手


更多内容:XiaoJ的知识星球

目录


.

🦞 手把手教你部署 OpenClaw + LMStudio + 飞书:打造专属本地离线 AI 助手

摘要:本文详细介绍如何在 Windows 环境下,结合 LMStudio 本地大模型与 OpenClaw 框架,快速搭建一个可接入飞书的私人 AI 助手。全程离线可运行,数据不出本地,适合开发者、技术爱好者及企业私有化部署场景。

系统要求

  • Windows 10/11 或 WSL2(推荐)
  • Node.js ≥ 22 LTS
  • Git for Windows
  • 管理员权限 CMD

.

1.安装 OpenClaw

1)安装Node.js和Git

CMD窗口安装:

# 1.下载安装Node.js ≥ 22# 手动安装:https://nodejs.org/zh-cn/download 中下载.msi手动安装# 验证安装:node--versionnpm--version# 推荐使用 pnpm 作为包管理器,更节省空间且速度快npminstall-g pnpm@latest-10 # 2.安装Git# 手动安装:https://git-scm.com/install/windows 中“Git for Windows/x64 Setup.”下载择exe安装# 验证安装:重新打开终端git--version

.

2)安装 OpenClaw

CMD窗口安装:

# 1. 设置国内镜像加速npm config set registry https://registry.npmmirror.com # 2. 【关键】安装 OpenClaw(跳过可选依赖 + 忽略编译脚本)npminstall-g openclaw@latest --omit=optional --ignore-scripts # 3. 验证安装 where openclaw openclaw --version

.

2.配置LMStudio+本地模型

下载并安装 LMStudio(0.4.6版本)

LMStudio中下载模型:(如 Qwen3.5-0.8B-GGUF(Q4_K_M)

  • 点击左侧模型搜索图标(小机器人加放大镜符号);
  • 搜索框中,搜索模型;
  • 搜索结果中,选中模型条目;
  • 右侧Download Options里选择模型文件版本(如Q4_K_M);
  • 点击Download按钮开始下载。

LMStudio中加载模型

  • 点击左侧 Developer 图标(类似终端符号);
  • 点击右上角 + Load Model 按钮;
  • 弹出模型列表中,选择模型条目;
  • 选项卡最后,打开手动选择模型加载参数
  • 配置上下文长度,可设置模型支持最大token数;
  • 点击加载模型

LMStudio中开启API Server

  • 左侧进入Local Server标签页;
  • 开启 Server:Running
  • 默认地址:http://127.0.0.1:1234

测试 LMStudio API:

# 记下返回的模型ID,如qwen3.5-0.8b# 方式一:打开 CMD 测试curl http://127.0.0.1:1234/v1/models # 方式二:浏览器访问 http://127.0.0.1:1234/v1/models 

.

3.初始化OpenClaw并安装为服务

# 以【管理员身份】运行 CMD# 搜索"cmd" → 右键"命令提示符" → "以管理员身份运行" openclaw onboard --install-daemon --skip-skills # 会弹出新窗口启动服务# 如果没有,使用命令前台调试:# openclaw gateway run --verbose --ws-log full
  • 配置
C:\Users\Administrator>openclaw onboard --install-daemon --skip-skills 🦞 OpenClaw 2026.3.2 (85377a2) — Welcome to the command line: where dreams compile and confidence segfaults. Windows detected — OpenClaw runs great on WSL2! Native Windows might be trickier. Quick setup: wsl --install(one command, one reboot) Guide: https://docs.openclaw.ai/windows ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██ ██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██ ██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ 🦞 OPENCLAW 🦞 T OpenClaw onboarding | o Security ---------------------------------------------------------------------------------+ ||| Security warning — please read. |||| OpenClaw is a hobby project and still in beta. Expect sharp edges. || By default, OpenClaw is a personal agent: one trusted operator boundary. || This bot can read files and run actions if tools are enabled. || A bad prompt can trick it into doing unsafe things. |||| OpenClaw is not a hostile multi-tenant boundary by default. || If multiple users can message one tool-enabled agent, they share that delegated tool || authority. |||| If you’re not comfortable with security hardening 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. || - Multi-user/shared inbox: split trust boundaries (separate gateway/credentials, ideally || separate OS users/hosts). || - Sandbox + least-privilege tools. || - Shared inboxes: isolate DM sessions (`session.dmScope: per-channel-peer`) and keep || tool access minimal. || - 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 ||| +--------------------------------------------------------------------------------------------+ | o I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue? | Yes | o Onboarding mode | QuickStart | o QuickStart -------------------------+ ||| Gateway port: 18789|| Gateway bind: Loopback (127.0.0.1)|| Gateway auth: Token (default)|| Tailscale exposure: Off || Direct to chat channels. ||| +--------------------------------------+ | o Model/auth provider | Custom Provider | o API Base URL | http://127.0.0.1:1234/v1 | o How do you want to provide this API key? | Paste API key now | o API Key (leave blank if not required)| no | o Endpoint compatibility | OpenAI-compatible | o Model ID | qwen3.5-0.8b | o Verification successful. | o Endpoint ID | custom-127-0-0-1-1234 | o Model alias(optional)| Configured custom provider: custom-127-0-0-1-1234/qwen3.5-0.8b | o Channel status ----------------------------+ ||| Telegram: needs token || WhatsApp (default): not linked || Discord: needs token || Slack: needs tokens || Signal: needs setup || signal-cli: missing (signal-cli)|| iMessage: needs setup || imsg: missing (imsg)|| IRC: not configured || Google Chat: not configured || Feishu: install plugin to enable|| Google Chat: install plugin to enable|| Nostr: install plugin to enable|| Microsoft Teams: install plugin to enable|| Mattermost: install plugin to enable|| Nextcloud Talk: install plugin to enable|| Matrix: install plugin to enable|| BlueBubbles: install plugin to enable|| LINE: install plugin to enable|| Zalo: install plugin to enable|| Zalo Personal: install plugin to enable|| Synology Chat: install plugin to enable|| Tlon: install plugin to enable||| +---------------------------------------------+ | o How channels work ----------------------------------------------------------------+ ||| DM security: default is pairing; unknown DMs get a pairing code. || Approve with: openclaw pairing approve <channel><code>|| Public DMs require dmPolicy="open" + allowFrom=["*"]. || Multi-user DMs: run: openclaw config set session.dmScope "per-channel-peer"(or ||"per-account-channel-peer"for multi-account channels) to isolate sessions. || Docs: channels/pairing |||| Telegram: simplest way to get started — register a bot with @BotFather and get || going. || WhatsApp: works with your own number; recommend a separate phone + eSIM. || Discord: very well supported right now. || IRC: classic IRC networks with DM/channel routing and pairing controls. || Google Chat: Google Workspace Chat app with HTTP webhook. || Slack: supported (Socket Mode). || Signal: signal-cli linked device;more setup (David Reagans: "Hop on Discord."). || iMessage: this is still a work in progress. || Feishu: 飞书/Lark enterprise messaging with doc/wiki/drive tools. || Nostr: Decentralized protocol; encrypted DMs via NIP-04. || Microsoft Teams: Bot Framework; enterprise support. || Mattermost: self-hosted Slack-style chat;install the plugin to enable. || Nextcloud Talk: Self-hosted chat via Nextcloud Talk webhook bots. || Matrix: open protocol;install the plugin to enable. || BlueBubbles: iMessage via the BlueBubbles mac app + REST API. || LINE: LINE Messaging API bot for Japan/Taiwan/Thailand markets. || Zalo: Vietnam-focused messaging platform with Bot API. || Zalo Personal: Zalo personal account via QR code login. || Synology Chat: Connect your Synology NAS Chat to OpenClaw with full agent || capabilities. || Tlon: decentralized messaging on Urbit;install the plugin to enable. ||| +------------------------------------------------------------------------------------+ | o Select channel (QuickStart)| Skip for now Updated ~\.openclaw\openclaw.json Workspace OK: ~\.openclaw\workspace Sessions OK: ~\.openclaw\agents\main\sessions | o Skills -----------------+ ||| Skipping skills setup. ||| +--------------------------+ | o Hooks ------------------------------------------------------------------+ ||| Hooks let you automate actions when agent commands are issued. || Example: Save session context to memory when you issue /new or /reset. |||| Learn more: https://docs.openclaw.ai/automation/hooks ||| +--------------------------------------------------------------------------+ | o Enable hooks? | Skip for now Config overwrite: C:\Users\Administrator\.openclaw\openclaw.json (sha256 bbdxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3d86c -> 8c3940d7xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx310fc6691, backup=C:\Users\Administrator\\.openclaw\openclaw.json.bak)|| o Gateway service runtime --------------------------------------------+ ||| QuickStart uses Node for the Gateway service(stable + supported). ||| +----------------------------------------------------------------------+ | o Installing Gateway service… Installed Scheduled Task: OpenClaw Gateway Task script: C:\Users\Administrator\.openclaw\gateway.cmd o Gateway service installed. | o Agents: main (default) Heartbeat interval: 30m (main) Session store (main): C:\Users\Administrator\.openclaw\agents\main\sessions\sessions.json (0 entries)| o Optional apps ------------------------+ ||| Add nodes for extra features: || - macOS app (system + notifications)|| - iOS app (camera/canvas)|| - Android app (camera/canvas)||| +----------------------------------------+ | o Control UI ---------------------------------------------------------------------+ ||| Web UI: http://127.0.0.1:18789/ || Web UI (with token): || http://127.0.0.1:18789/#token=8febxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx46eb33d15d7 || Gateway WS: ws://127.0.0.1:18789 || Gateway: reachable || Docs: https://docs.openclaw.ai/web/control-ui ||| +----------------------------------------------------------------------------------+ | o 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!"||| +------------------------------------------------------------+ | o 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 stores a copy in this browser's localStorage (openclaw.control.settings.v1). | | 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? | Do this later | o Later -------------------------------------------+ | | | When you're ready: openclaw dashboard --no-open ||| +---------------------------------------------------+ | o Workspace backup ----------------------------------------+ ||| Back up your agent workspace. || Docs: https://docs.openclaw.ai/concepts/agent-workspace ||| +-----------------------------------------------------------+ | o Security ------------------------------------------------------+ ||| Running agents on your computer is risky — harden your setup: || https://docs.openclaw.ai/security ||| +-----------------------------------------------------------------+ | o Web search (optional) ------------------------------------------------------------+ ||| If you want your agent to be able to search the web, you’ll need an API key. |||| OpenClaw uses Brave Search for the `web_search` tool. Without a Brave Search API || key, web search won’t work. |||| Set it up interactively: || - Run: openclaw configure --section web || - Enable web_search and paste your Brave Search API key |||| Alternative: set BRAVE_API_KEY in the Gateway environment (no config changes). || Docs: https://docs.openclaw.ai/tools/web ||| +------------------------------------------------------------------------------------+ | o What now -------------------------------------------------------------+ ||| What now: https://openclaw.ai/showcase ("What People Are Building"). ||| +------------------------------------------------------------------------+ | — Onboarding complete. Use the dashboard link above to control OpenClaw. C:\Users\Administrator>

.

4. 配置飞书AI助手

1)创建企业自建应用

访问飞书开放平台:https://open.feishu.cn/app

点击 「创建企业自建应用」;

填写应用信息:

  • 应用名称:OpenClaw大虾
  • 应用描述:OpenClaw大虾
  • 应用图标:(选择图标)

点击 「创建」。

2)添加机器人

点击左侧菜单 「添加应用能力」;

选择 「机器人」 → 点击 「添加」。

.

3)记录应用凭证

在 「凭证与基础信息」 页面记录:

字段用途
App ID配置必填(如 cli_xxxxxxxxxx
App Secret配置必填(查看并复制)

.

3)配置权限

点击左侧菜单 「权限管理」;

点击 「批量导入/导出权限」 → 「导入」;

JSON中,添加以下权限:

{"scopes":{"tenant":["contact:contact.base:readonly","contact:user.base:readonly","im:chat:readonly","im:message","im:message.group_at_msg:readonly","im:message.group_msg","im:message.p2p_msg:readonly","im:message:readonly","im:message:recall","im:message:send_as_bot","im:message:update","im:resource"]}}

点击 「下一步,确认新增权限」→ 「申请开通」。

.

5.命令行配置 OpenClaw

1)安装飞书插件

CMD中运行以下命令:

openclaw plugins install @openclaw/feishu 
  • 输出:
C:\Users\Administrator>openclaw plugins install @openclaw/feishu 🦞 OpenClaw 2026.3.2 (85377a2) — I'm basically a Swiss Army knife, but with more opinions and fewer sharp edges. Downloading @openclaw/feishu… Extracting C:\Users\Administrator\AppData\Local\Temp\openclaw-npm-pack-Yf4GEf\openclaw-feishu-2026.3.2.tgz… Plugin "feishu" has 1 suspicious code pattern(s). Run "openclaw security audit --deep"for details. Installing to C:\Users\Administrator\.openclaw\extensions\feishu… Installing plugin dependencies… 02:53:25 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts). Set plugins.allow to explicit trusted ids. Config warnings: - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) Config overwrite: C:\Users\Administrator\.openclaw\openclaw.json (sha256 736fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxee20b988b826 -> 51c5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf1a9632d540cddd, backup=C:\Users\Administrator\.openclaw\openclaw.json.bak) Installed plugin: feishu Restart the gateway to load plugins. 

.

2)添加飞书渠道

CMD中运行以下命令,根据交互式提示完成配置:

openclaw channels add
  • 配置:
C:\Users\Administrator>openclaw channels add Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) 🦞 OpenClaw 2026.3.2 (85377a2) — Half butler, half debugger, full crustacean. | o Config warnings -------------------------------------------------------------------------+ ||| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may || be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts)||| +-------------------------------------------------------------------------------------------+ Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) 02:55:39 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts). Set plugins.allow to explicit trusted ids. Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) T Channel setup | o Channel status ----------------------------+ ||| Telegram: needs token || WhatsApp (default): not linked || Discord: needs token || Slack: needs tokens || Signal: needs setup || signal-cli: missing (signal-cli)|| iMessage: needs setup || imsg: missing (imsg)|| Feishu: needs app credentials || IRC: not configured || Google Chat: not configured || Google Chat: install plugin to enable|| Nostr: install plugin to enable|| Microsoft Teams: install plugin to enable|| Mattermost: install plugin to enable|| Nextcloud Talk: install plugin to enable|| Matrix: install plugin to enable|| BlueBubbles: install plugin to enable|| LINE: install plugin to enable|| Zalo: install plugin to enable|| Zalo Personal: install plugin to enable|| Synology Chat: install plugin to enable|| Tlon: install plugin to enable||| +---------------------------------------------+ | o Configure chat channels now? | Yes | o How channels work -----------------------------------------------------------------------+ ||| DM security: default is pairing; unknown DMs get a pairing code. || Approve with: openclaw pairing approve <channel><code>|| Public DMs require dmPolicy="open" + allowFrom=["*"]. || Multi-user DMs: run: openclaw config set session.dmScope "per-channel-peer"(or ||"per-account-channel-peer"for multi-account channels) to isolate sessions. || Docs: channels/pairing |||| Telegram: simplest way to get started — register a bot with @BotFather and get going. || WhatsApp: works with your own number; recommend a separate phone + eSIM. || Discord: very well supported right now. || IRC: classic IRC networks with DM/channel routing and pairing controls. || Google Chat: Google Workspace Chat app with HTTP webhook. || Slack: supported (Socket Mode). || Signal: signal-cli linked device;more setup (David Reagans: "Hop on Discord."). || iMessage: this is still a work in progress. || Feishu: 飞书/Lark enterprise messaging. || Nostr: Decentralized protocol; encrypted DMs via NIP-04. || Microsoft Teams: Bot Framework; enterprise support. || Mattermost: self-hosted Slack-style chat;install the plugin to enable. || Nextcloud Talk: Self-hosted chat via Nextcloud Talk webhook bots. || Matrix: open protocol;install the plugin to enable. || BlueBubbles: iMessage via the BlueBubbles mac app + REST API. || LINE: LINE Messaging API bot for Japan/Taiwan/Thailand markets. || Zalo: Vietnam-focused messaging platform with Bot API. || Zalo Personal: Zalo personal account via QR code login. || Synology Chat: Connect your Synology NAS Chat to OpenClaw with full agent capabilities. || Tlon: decentralized messaging on Urbit;install the plugin to enable. ||| +-------------------------------------------------------------------------------------------+ | o Select a channel | Feishu/Lark (飞书)| o 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 or add it to a test group || Tip: you can also set FEISHU_APP_ID / FEISHU_APP_SECRET env vars. || Docs: feishu ||| +-----------------------------------------------------------------------------------+ | o How do you want to provide this App Secret? | Enter App Secret | o Enter Feishu App Secret | gVlxxxxxxxxxxxxxxxxxxxxxxxxxxQspk | o Enter Feishu App ID | cli_a9xxxxxxxxxxxxxxc7 [info]: ['client ready']| o Feishu connection test ---------------------------+ ||| Connected as ou_af69xxxxxxxxxxxxxxxxxxxxxxxxd9ae ||| +----------------------------------------------------+ | o Feishu connection mode | WebSocket (default)| o Which Feishu domain? | Feishu (feishu.cn) - China | o Group chat policy | Open - respond in all groups(requires mention)| o Select a channel | Finished | o Selected channels ------------------------------------------+ ||| Feishu — 飞书/Lark enterprise messaging. Docs: || feishu ||| +--------------------------------------------------------------+ | o Configure DM access policies now? (default: pairing)| Yes | o Feishu DM access -------------------------------------------------------------------------+ ||| Default: pairing (unknown DMs get a pairing code). || Approve: openclaw pairing approve feishu <code>|| Allowlist DMs: channels.feishu.dmPolicy="allowlist" + channels.feishu.allowFrom entries. || Public DMs: channels.feishu.dmPolicy="open" + channels.feishu.allowFrom includes "*".|| Multi-user DMs: run: openclaw config set session.dmScope "per-channel-peer"(or ||"per-account-channel-peer"for multi-account channels) to isolate sessions. || Docs: channels/pairing ||| +--------------------------------------------------------------------------------------------+ | o Feishu DM policy | Open (public inbound DMs)| o Add display names for these accounts? (optional)| Yes | o feishu account name (default)|| o Bind configured channel accounts to agents now? | Yes | o Route feishu account "default" to agent | main (default)| o Routing bindings ----------------+ ||| Added: feishu accountId=default ||| +-----------------------------------+ Config warnings: - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) Config overwrite: C:\Users\Administrator\.openclaw\openclaw.json (sha256 51c5fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf1a9632d540cddd -> e3ff1dfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9a8174850deacefb65, backup=C:\Users\Administrator\.openclaw\openclaw.json.bak)| — Channels updated. C:\Users\Administrator>

.

3)重启OpenClaw网关

openclaw gateway restart 

输出:(新弹出终端)

Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) 🦞 OpenClaw 2026.3.2 (85377a2) — Automation with claws: minimal fuss, maximal pinch. | o Config warnings -------------------------------------------------------------------------+ ||| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may || be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts)||| +-------------------------------------------------------------------------------------------+ 11:12:12 Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts)11:12:13 Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) 03:12:13 [gateway][plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts). Set plugins.allow to explicit trusted ids. 11:12:18 Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) 03:12:23 [gateway] feishu_doc: Registered feishu_doc, feishu_app_scopes 03:12:23 [gateway] feishu_chat: Registered feishu_chat tool 03:12:23 [gateway] feishu_wiki: Registered feishu_wiki tool 03:12:23 [gateway] feishu_drive: Registered feishu_drive tool 03:12:23 [gateway] feishu_bitable: Registered bitable tools 03:12:23 [gateway][plugins] duplicate plugin id detected; later plugin may be overridden (C:\Users\Administrator\.openclaw\extensions\feishu\index.ts)(plugin=feishu, source=C:\Users\Administrator\.openclaw\extensions\feishu\index.ts) 03:12:23 [canvas]host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root C:\Users\Administrator\.openclaw\canvas) 03:12:23 [heartbeat] started 03:12:23 [health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s) 03:12:23 [gateway] agent model: custom-127-0-0-1-1234/qwen3.5-0.8b 03:12:23 [gateway] listening on ws://127.0.0.1:18789, ws://[::1]:18789 (PID 23728) 03:12:23 [gateway] log file: C:\Users\Administrator\AppData\Local\Temp\openclaw\openclaw-2026-03-07.log 11:12:23 [info]: ['client ready'] 03:12:24 [browser/server] Browser control listening on http://127.0.0.1:18791/ (auth=token) 03:12:24 [feishu] starting feishu[default](mode: websocket) 03:12:25 [feishu] feishu[default]: bot open_id resolved: ou_afxxxxxxxxxxxxxxxxxxxxxxdabd9ae 11:12:25 [info]: ['event-dispatch is ready'] 03:12:25 [feishu] feishu[default]: starting WebSocket connection... 11:12:25 [info]: ['[ws]', 'receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:\n' + ' Developer Console(开发者后台) \n' + ' ->\n' + ' Events and Callbacks(事件与回调)\n' + ' -> \n' + ' Mode of event/callback subscription(订阅方式)\n' + ' -> \n' + ' Receive events/callbacks through persistent connection(使用 长连接 接收事件/回调)'] 03:12:25 [feishu] feishu[default]: WebSocket client started 11:12:25 [info]: ['[ws]', 'ws client ready']

.

6.配置发布飞书AI助手

1)配置事件订阅(关键!)

重要顺序:先完成 OpenClaw 侧配置并启动服务,在飞书后台保存,否则 WebSocket 连接会失败!

点击左侧菜单 「事件与回调」 → 「事件配置」;

订阅方式选择:「订阅方式」 → 选择「使用 长连接 接收事件」→ 「保存」;

下拉点击 「添加事件」,搜索并添加:im.message.receive_v1

勾选「启用」。

.

2)发布应用

点击左侧菜单 「版本管理与发布」;

点击 「创建版本」;

填写版本号(如 1.0.0)和更新说明;

点击 「保存」 → 「确认发布」;

等待状态变为 「已启用」。

.

7.飞书AI助手使用

1)首次配对授权

打开飞书应用,搜索并打开 "OpenClaw大虾机" ,开启对话框。

发送任意消息。机器人会回复包含配对码的消息,如:

OpenClaw: access not configured. Your Feishu user id: ou_5cc1xxxxxxxxxxxxxxxxxxxxxxxxx Pairing code: D8xxxxxxxx Ask the bot owner to approve with: openclaw pairing approve feishu D8xxxxxxxx 

复制配对码,在 OpenClaw 终端中执行批准命令:

# 查看待审批列表 openclaw pairing list feishu # 批准配对(将 <CODE> 替换为实际配对码) openclaw pairing approve feishu <CODE>

输出应显示 Approved feishu sender ou_xxx。此后该用户即可正常对话。

.

2)飞书AI助手测试

打开飞书应用,搜索并打开 "OpenClaw大虾" ,开始对话。

  • 用户发送:你能干嘛?
  • 回复内容:(回复该AI助手能力)

.


参考资源
OpenClaw 文档:https://docs.openclaw.ai
LMStudio 教程:https://lmstudio.ai/docs
飞书开放平台:https://open.feishu.cn/document
.


声明:资源可能存在第三方来源,若有侵权请联系删除!

Read more

【Java Web学习 | 第八篇】JavaScript(2) 基础知识2

【Java Web学习 | 第八篇】JavaScript(2) 基础知识2

🌈个人主页: Hygge_Code🔥热门专栏:从0开始学习Java | Linux学习| 计算机网络💫个人格言: “既然选择了远方,便不顾风雨兼程” 文章目录 * JavaScript 运算符与流程控制全解析 * 一、运算符:自增、比较与逻辑🥝 * 1. 自增运算符(++) * 2. 比较运算符 * 3. 逻辑运算符 * 二、条件判断语句🥝 * 1. if 语句 * 2. 三目运算符 * 3. switch 语句 * 三、循环语句🥝 * 1. while 循环 * 2. for 循环 * 总结🍂 JavaScript 运算符与流程控制全解析 在 JavaScript 中,运算符和流程控制是实现逻辑处理的基础。本文在前文基础上补充for循环内容,全面讲解比较运算符、

将openclaw接入飞书:10分钟,让你的AI员工直接操作你的文档和表格!

将openclaw接入飞书:10分钟,让你的AI员工直接操作你的文档和表格!

上一篇,我们给小龙虾接了 Telegram,实现了手机遥控。 但说实话,Telegram 只解决了"能聊天"的问题。你跟小龙虾说"帮我写个文档",它写完了——然后呢?你还得自己复制粘贴到你的编辑器中。 这就像请了个助手,他只能站在门外隔着门跟你喊话,但不能进屋帮你干活。 今天这篇,我们把门打开。让小龙虾直接进入你的飞书——读文档、写文档、操作表格、管理日程,全部自己来。 先看效果👇 飞书的配置比 Telegram 多一些步骤,但别慌——跟着我走,每一步都有截图,大概10分钟搞定。 飞书的接入分四个阶段,先有个全局概念,不容易迷路: 1. 在飞书上造一个机器人 — 相当于给小龙虾办一张飞书工牌 2. 在服务器上装飞书插件 — 让小龙虾学会"说飞书的语言" 3.

Llama3-8B对话体验差?open-webui界面调优实战案例

Llama3-8B对话体验差?open-webui界面调优实战案例 1. 为什么Llama3-8B在open-webui里“不好用” 你是不是也遇到过这种情况:明明拉下了Meta-Llama-3-8B-Instruct的GPTQ-INT4镜像,显卡是RTX 3060,vllm也跑起来了,open-webui网页也打开了,可一输入问题,响应慢、回复短、上下文断连、甚至反复重复同一句话?不是模型不行,而是默认配置没对上——就像给跑车装了自行车刹车片。 Llama3-8B本身素质过硬:80亿参数、原生8k上下文、英语指令遵循能力对标GPT-3.5、MMLU 68+、HumanEval 45+,单卡3060就能跑。但它对对话系统层的调度逻辑非常敏感。open-webui作为前端界面,默认采用的是通用型API调用策略,而没针对Llama3系列的tokenizer行为、stop token设计、streaming节奏做适配。结果就是: * 模型已生成完,界面还在等“结束信号”; * 多轮对话中,system prompt被意外截断或覆盖; * 中文输入时,因token边界识别不准,

企业出海必备!Hunyuan-MT-7B-WEBUI实战应用分享

企业出海必备!Hunyuan-MT-7B-WEBUI实战应用分享 在跨境电商、海外本地化、国际内容分发加速落地的今天,语言障碍早已不是“能不能翻”的问题,而是“翻得准不准、快不快、安不安全、用不用得顺手”的综合考验。某深圳智能硬件公司为进入拉美市场,需在两周内完成300+页产品说明书、用户协议、营销文案的西语本地化;某新疆出版社正推进维吾尔语古籍数字化工程,亟需稳定、可私有部署的民汉互译能力;还有大量中小企业,既不愿将敏感商业文档上传至公有云翻译API,又缺乏专职AI运维人员——这些真实场景,共同指向一个被长期忽视的痛点:专业级翻译能力,不该被部署门槛锁死在实验室里。 Hunyuan-MT-7B-WEBUI 正是为此而生。它不是又一个需要配环境、调参数、查报错的模型仓库,而是一套开箱即用的企业级翻译服务系统:镜像一键拉起,脚本一键加载,浏览器一键访问。你不需要知道什么是FlashAttention,也不必纠结CUDA版本兼容性,更无需写一行推理代码——只要你会复制粘贴,就能立刻开始高质量多语种翻译。 1. 为什么企业出海特别需要它?从语言覆盖到交付方式的三重突破 很多团队评估