【亲测可用】ubuntu系统下安装Openclaw+配置飞书
3️⃣ 重启网关(最常用也最管用)
openclaw-cn gateway restart飞书 WebSocket 长连接有时候会自己断掉,重启就重新连上了
4️⃣ 检查网关状态
openclaw-cn gateway status确保是 running 状态
第一步:更新系统与安装基础工具
在安装任何新软件前,最好先更新一下系统的软件包列表,并安装一些会用到的工具:
bash
sudo apt update
sudo apt install curl -y
*(curl 是一个下载工具,后面会用到。-y 参数代表自动确认安装) *
第二步:安装 Node.js 环境
OpenClaw 需要 Node.js 环境。教程建议使用 NVM 来管理 Node.js 版本,这样更灵活。
第一步:手动安装 NVM
相比于依赖可能不稳定的自动下载,手动安装更可靠。
1. 用 Git 克隆 NVM 仓库
在终端中执行此命令,直接从国内的 Gitee 镜像站下载 NVM 仓库到你本地:
bash
git clone https://gitee.com/mirrors/nvm.git ~/.nvm
注意:如果提示 git 命令不存在,请先运行 sudo apt install git -y 安装。
2. 切换到稳定版本
进入刚下载的 NVM 目录,并切换到一个稳定的版本:
bash
cd ~/.nvm
git checkout v0.40.4
3. 运行安装脚本
在仓库内执行本地安装脚本:
bash
bash install.sh
4. 加载 NVM 到当前会话
执行完上一步后,关闭当前终端,再重新打开。如果不想重启,可以执行以下命令立即生效:
bash
source ~/.bashrc
5. 验证 NVM 是否安装成功
执行以下命令,如果能看到版本号(例如 0.40.4),就说明安装成功了。
bash
nvm --version
yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~$ curl -o- https://gitee.com/mirrors/nvm/raw/v0.40.4/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~$ git clone https://gitee.com/mirrors/nvm.git ~/.nvm 正克隆到 '/home/yoyo/.nvm'... remote: Enumerating objects: 10442, done. remote: Counting objects: 100% (200/200), done. remote: Compressing objects: 100% (102/102), done. remote: Total 10442 (delta 107), reused 168 (delta 98), pack-reused 10242 (from 1) 接收对象中: 100% (10442/10442), 3.31 MiB | 718.00 KiB/s, 完成. 处理 delta 中: 100% (6930/6930), 完成. yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~$ cd ~/.nvm git checkout v0.40.4 注意:正在切换到 'v0.40.4'。 您正处于分离头指针状态。您可以查看、做试验性的修改及提交,并且您可以在切换 回一个分支时,丢弃在此状态下所做的提交而不对分支造成影响。 如果您想要通过创建分支来保留在此状态下所做的提交,您可以通过在 switch 命令 中添加参数 -c 来实现(现在或稍后)。例如: git switch -c <新分支名> 或者撤销此操作: git switch - 通过将配置变量 advice.detachedHead 设置为 false 来关闭此建议 HEAD 目前位于 62387b8 v0.40.4 yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ bash install.sh => nvm is already installed in /home/yoyo/.nvm, trying to update using git => * (头指针在 v0.40.4 分离) master => Compressing and cleaning up git repository => Appending nvm source string to /home/yoyo/.bashrc => Appending bash_completion source string to /home/yoyo/.bashrc => Close and reopen your terminal to start using nvm or run the following to use it now: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ source ~/.bashrc yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ nvm --version 0.40.4第二步:配置国内镜像并安装 Node.js
NVM 安装好后,为了加速 Node.js 的下载,需要配置国内的镜像源。
1. 配置 Node.js 镜像源
bash
export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node
小贴士:以上配置仅在当前终端窗口有效,重启后会失效。如果想一劳永逸,可以运行下面的命令,把配置永久写入系统:
bash
echo ‘export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node’ >> ~/.bashrc
source ~/.bashrc
2. 安装 Node.js
完成镜像配置后,就可以快速安装 Node.js 了。这里推荐安装长期支持版(LTS):
bash
nvm install --lts
3. 验证 Node.js 和 npm
检查版本号,确认 Node.js 和其包管理器 npm 都已正确安装。
bash
node -v
npm -v
yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ echo 'export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node' >> ~/.bashrc yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ source ~/.bashrc yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ nvm install --lts Installing latest LTS version. Downloading and installing node v24.15.0... Downloading https://npmmirror.com/mirrors/node/v24.15.0/node-v24.15.0-linux-x64.tar.xz... ############################################################################################################ 100.0%############################################################################################################ 100.0% Computing checksum with sha256sum Checksums matched! Now using node v24.15.0 (npm v11.12.1) Creating default alias: default -> lts/* (-> v24.15.0 *) yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ node -v npm -v v24.15.0 11.12.1第三步:安装 OpenClaw
环境准备好后,就可以安装 OpenClaw 了。
1. 使用 npm 全局安装:
bash
npm install -g openclaw-cn@latest
(-g 表示全局安装,系统里任何地方都能使用)
2. 验证安装:
bash
openclaw-cn --version
看到版本号(如 2026.1.30)就表示安装完成了。
yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ npm install -g openclaw-cn@latest npm warn deprecated gauge@4.0.4: This package is no longer supported. npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm warn deprecated npmlog@6.0.2: This package is no longer supported. npm warn deprecated tar@6.2.1: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are available. npm warn deprecated glob@11.1.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated tar@7.5.4: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me added 664 packages in 4m 125 packages are looking for funding run `npm fund` for details npm notice npm notice New minor version of npm available! 11.12.1 -> 11.13.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.13.0 npm notice To update run: npm install -g npm@11.13.0 npm notice yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ openclaw-cn --version 0.2.0第四步:初始化配置 OpenClaw
安装完毕,现在是最后也是最重要的一步——配置。
1. 运行配置向导:
bash
openclaw-cn onboard --install-daemon
2. 跟随向导配置:
这个命令会启动一个交互式配置向导,你需要根据提示一步步操作:
◦ 确认安全风险:了解并选择 Yes 确认。
◦ 选择安装模式:选 QuickStart 快速安装。
◦ 配置大模型:选择一个模型提供商(如 Moonshot AI 即 Kimi),然后输入你从对应平台获取的 API Key。
◦ 设置消息频道:可以先选 Skip 跳过,以后再配置。
◦ 其他配置:按提示选择网络搜索提供商、启用技能(Skills)等。
yoyo@yoyo-HP-ENVY-Laptop-13-aq0xxx:~/.nvm$ openclaw-cn onboard --install-daemon 🦞 OpenClaw-CN 0.2.0 (1b9f164) — 少点击,多发布,减少“文件去哪了”的时刻。 ░████░█░░░░░█████░█░░░█░███░░████░░████░░▀█▀ █░░░░░█░░░░░█░░░█░█░█░█░█░░█░█░░░█░█░░░█░░█░ █░░░░░█░░░░░█████░█░█░█░█░░█░████░░█░░░█░░█░ █░░░░░█░░░░░█░░░█░█░█░█░█░░█░█░░█░░█░░░█░░█░ ░████░█████░█░░░█░░█░█░░███░░████░░░███░░░█░ 🦞 每日新鲜 🦞 ┌ OpenClaw 安装引导 │ ◇ 安全 ─────────────────────────────────────────────────────────────╮ │ 安全警告 — 请阅读。 │ │ │ │ OpenClaw 是一个业余项目,仍处于测试阶段。可能会有粗糙之处。 │ │ 如果启用了工具,此机器人可以读取文件并执行操作。 │ │ 不良提示可能会诱使其执行不安全的操作。 │ │ │ │ 如果您不熟悉基本的安全和访问控制,请不要运行 OpenClaw。 │ │ 在启用工具或将系统暴露给互联网之前,请寻求有经验的人士帮助。 │ │ │ │ 推荐的基础设置: │ │ - 配对/白名单 + @提及门控。 │ │ - 沙箱 + 最低权限工具。 │ │ - 将机密信息保留在智能体可访问的文件系统之外。 │ │ - 对于使用工具或不受信任收件箱的机器人,请使用最强大的可用模型。 │ │ │ │ 定期运行: │ │ openclaw-cn security audit --deep │ │ openclaw-cn security audit --fix │ │ │ │ 必读:https://clawd.org.cn/gateway/security.html │ ├────────────────────────────────────────────────────────────────────╯ │ ◇ 我理解这很强大且本质上存在风险。继续吗? │ Yes │ ◇ 安装引导模式 │ 快速开始 │ ◇ 快速开始 ────────────────────╮ │ 网关端口:18789 │ │ 网关绑定:环回(127.0.0.1) │ │ 网关认证:令牌(默认) │ │ Tailscale 暴露:关闭 │ │ 直接到聊天频道。 │ ├───────────────────────────────╯ │ ◇ 模型/认证提供商 │ DeepSeek │ ◇ DeepSeek 认证方法 │ DeepSeek API key │ ◇ 输入 DeepSeek API key │ sk-156695bb56bb4ebcae2b076f98874f9f │ ◇ 选择 DeepSeek 模型(已获取 2 个可用模型) │ deepseek-v4-pro │ ◇ Model configured ──────────────────────────────╮ │ Default model set to deepseek/deepseek-v4-pro │ ├─────────────────────────────────────────────────╯ │ ◇ 通道状态 ─────────────────╮ │ 钉钉: 需要填写凭证 │ │ 企业微信: 需要填写凭证 │ │ 微信: 未配置 │ │ QQ: 需要填写凭证 │ │ Telegram: 未配置 │ │ WhatsApp: 未配置 │ │ Discord: 未配置 │ │ Google Chat: 未配置 │ │ 飞书: 未配置 │ │ Slack: 未配置 │ │ Signal: 未配置 │ │ iMessage: 未配置 │ │ 飞书: 安装插件以启用 │ │ 钉钉: 安装插件以启用 │ │ 企业微信: 安装插件以启用 │ │ 微信: 安装插件以启用 │ │ QQ: 安装插件以启用 │ ├────────────────────────────╯ │ ◇ 通道工作原理 ─────────────────────────────────────────────────────────────────╮ │ DM安全:默认为配对;未知的私信会获得配对码。 │ │ 批准命令:openclaw-cn pairing approve <channel> <code> │ │ 公开私信需要 dmPolicy="open" + allowFrom=["*"]. │ │ 多用户私信:设置 session.dmScope="per-channel-peer" 来隔离会话。 │ │ 文档:start/pairing │ │ │ │ Telegram: 最简单的入门方式——使用 @BotFather 注册一个机器人并开始使用。 │ │ WhatsApp: 使用您自己的号码工作;建议使用独立手机 + eSIM。 │ │ Discord: 目前支持非常好。 │ │ Google Chat: 带有HTTP webhook的Google Workspace聊天应用。 │ │ 飞书: 飞书/Lark 机器人集成 (WebSocket)。 │ │ 钉钉: 钉钉机器人集成,通过官方 dingtalk-connector 接入。 │ │ 企业微信: 企业微信机器人接入插件。 │ │ 微信: 微信渠道插件(扫码登录),由腾讯官方插件提供。 │ │ QQ: QQ 频道/群机器人,通过社区版 qqbot 接入。 │ │ Slack: 已支持(Socket模式)。 │ │ Signal: signal-cli链接设备;更多设置(David Reagans说:"加入Discord吧。")。 │ │ iMessage: 这仍然是一个正在进行的工作。 │ ├────────────────────────────────────────────────────────────────────────────────╯ │ ◆ 选择通道(快速开始) │ ○ Telegram (Bot API) │ ○ WhatsApp (QR link) │ ○ Discord (Bot API) │ ○ Google Chat (Chat API) │ ○ 飞书 (Lark 开放平台) │ ● 钉钉 (官方连接器) (插件 · 安装) │ ○ 企业微信 (WeCom) │ ○ 微信 (官方插件) │ ○ QQ (社区版) │ ○ Slack (Socket Mode) │ ○ Signal (signal-cli) │ ○ iMessage (imsg) │ ○ 暂时跳过📝 第五步:启动 OpenClaw
配置完成后,你的 AI 助手就准备好了。可以使用以下命令启动简单的聊天来验证:
bash
openclaw-cn tui
(tui 表示在终端里的文本界面聊天)
⚠️ 注意事项与安全提醒
• 安全警告:OpenClaw 是一个功能强大的自动化工具,有能力访问本地文件和执行系统命令。配置时请务必理解相关风险。
• 网络阻断:在安装 NVM 或 Node.js 时,如果遇到 443 或 Connection refused 错误,可能是因为网络环境无法顺畅访问 GitHub 等境外网站,你可能需要配置代理或使用国内镜像源。
• 权限需求:安装软件时如果看到 Permission denied 错误,请确保在命令前加上 sudo,或以有管理员权限的用户执行。
如果你在哪个环节卡住了,随时可以带着具体的报错信息截图再来找我。
安装 飞书 插件? │ 飞书官方插件 Downloading @larksuiteoapi/feishu-openclaw-plugin… Extracting /tmp/clawdbot-npm-pack-obLdJW/larksuiteoapi-feishu-openclaw-plugin-2026.3.8.tgz… WARNING: Plugin "feishu-openclaw-plugin" contains dangerous code patterns: Environment variable access combined with network send — possible credential harvesting (/tmp/clawdbot-plugin-5DL7I3/extract/package/src/tools/mcp/shared.js:93); Shell command execution detected (child_process) (/tmp/clawdbot-plugin-5DL7I3/extract/package/src/core/token-store.js:52) Installing to /home/yoyo/.openclaw/extensions/feishu-openclaw-plugin… Installing plugin dependencies… 00:55:04 [plugins] feishu_get_user: Registered feishu_get_user tool 00:55:04 [plugins] feishu_search_user: Registered feishu_search_user tool 00:55:04 [plugins] feishu_chat: Registered feishu_chat tool 00:55:04 [plugins] feishu_chat_members: Registered feishu_chat_members tool 00:55:04 [plugins] feishu_chat: Registered feishu_chat, feishu_chat_members 00:55:04 [plugins] feishu_im_user_message: Registered feishu_im_user_message tool 00:55:04 [plugins] feishu_im_user_fetch_resource: Registered feishu_im_user_fetch_resource tool 00:55:04 [plugins] feishu_im: Registered feishu_im_user_message, feishu_im_user_fetch_resource, feishu_im_user_get_messages, feishu_im_user_get_thread_messages, feishu_im_user_search_messages 00:55:04 [plugins] feishu_calendar_calendar: Registered feishu_calendar_calendar tool 00:55:04 [plugins] feishu_calendar_event: Registered feishu_calendar_event tool 00:55:04 [plugins] feishu_calendar_event_attendee: Registered feishu_calendar_event_attendee tool 00:55:04 [plugins] feishu_calendar_freebusy: Registered feishu_calendar_freebusy tool 00:55:04 [plugins] feishu_task_task: Registered feishu_task_task tool 00:55:04 [plugins] feishu_task_tasklist: Registered feishu_task_tasklist tool 00:55:04 [plugins] feishu_task_comment: Registered feishu_task_comment tool 00:55:04 [plugins] feishu_task_subtask: Registered feishu_task_subtask tool 00:55:04 [plugins] feishu_bitable_app: Registered feishu_bitable_app tool 00:55:04 [plugins] feishu_bitable_app_table: Registered feishu_bitable_app_table tool 00:55:04 [plugins] feishu_bitable_app_table_record: Registered feishu_bitable_app_table_record tool 00:55:04 [plugins] feishu_bitable_app_table_field: Registered feishu_bitable_app_table_field tool 00:55:04 [plugins] feishu_bitable_app_table_view: Registered feishu_bitable_app_table_view tool 00:55:04 [plugins] feishu_im_bot_image: Registered feishu_im_bot_image tool 00:55:04 [plugins] feishu_im: Registered feishu_im_bot_image 00:55:04 [plugins] ✅ Registered all OAPI tools (calendar, task, bitable, mail, search, drive, wiki, sheets, okr, im) 00:55:04 [plugins] feishu_oauth: Registered feishu_oauth tool 00:55:04 [plugins] feishu_oauth_batch_auth: Registered feishu_oauth_batch_auth tool ◇ 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 │ ├───────────────────────────────────────────────────────────────────────────────────╯ │ ◇ Enter Feishu App ID │ cli_a9781508f0389bc9 ◇ Enter Feishu App Secret │ HG1anWFcDaeg0YxKKMeLVfZoiDNTlDIj [info]: [ 'client ready' ] [error]: [ AxiosError: getaddrinfo EAI_AGAIN open.feishu.cn at AxiosError.from (/home/yoyo/.openclaw/extensions/feishu-openclaw-plugin/node_modules/axios/dist/node/axios.cjs:962:24) at RedirectableRequest.handleRequestError (/home/yoyo/.openclaw/extensions/feishu-openclaw-plugin/node_modules/axios/dist/node/axios.cjs:3794:29) at RedirectableRequest.emit (node:events:509:28) at eventHandlers.<computed> (/home/yoyo/.openclaw/extensions/feishu-openclaw-plugin/node_modules/follow-redirects/index.js:56:24) at ClientRequest.emit (node:events:509:28) at emitErrorEvent (node:_http_client:109:11) at TLSSocket.socketErrorListener (node:_http_client:593:5) at TLSSocket.emit (node:events:509:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) at Axios.request (/home/yoyo/.openclaw/extensions/feishu-openclaw-plugin/node_modules/axios/dist/node/axios.cjs:5110:41) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) { isAxiosError: true, code: 'EAI_AGAIN', config: { transitional: [Object], adapter: [Array], transformRequest: [Array], transformResponse: [Array], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: [Object], validateStatus: [Function: validateStatus], headers: [Object [AxiosHeaders]], method: 'post', url: 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal', data: '{"app_id":"cli_a9781508f0389bc9","app_secret":"HG1anWFcDaeg0YxKKMeLVfZoiDNTlDIj"}', allowAbsoluteUrls: true }, request: Writable { _events: [Object], _writableState: [WritableState], _maxListeners: undefined, _options: [Object], _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 81, _requestBodyBuffers: [Array], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: [ClientRequest], _currentUrl: 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, cause: Error: getaddrinfo EAI_AGAIN open.feishu.cn at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) { errno: -3001, code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'open.feishu.cn' } } ] │ ◇ Feishu connection test ─────────────────────────────────────────────────────────────────╮ │ Connection failed: Cannot destructure property 'tenant_access_token' of '(intermediate │ │ value)' as it is undefined. │ ├──────────────────────────────────────────────────────────────────────────────────────────╯ │ ◇ Which Feishu domain? │ Feishu (feishu.cn) - China │ ◇ Group chat policy — which groups can interact with the bot? │ Open — any group (requires @mention) │ ◇ Group sender allowlist — which users can trigger the bot in allowed groups? (user open_ids) │ ou_xxxxx, ou_yyyyy [info]: [ 'client ready' ] [error]: [ AxiosError: getaddrinfo EAI_AGAIN open.feishu.cn at AxiosError.from (/home/yoyo/.openclaw/extensions/feishu-openclaw-plugin/node_modules/axios/dist/node/axios.cjs:962:24) at RedirectableRequest.handleRequestError (/home/yoyo/.openclaw/extensions/feishu-openclaw-plugin/node_modules/axios/dist/node/axios.cjs:3794:29) at RedirectableRequest.emit (node:events:521:24) at eventHandlers.<computed> (/home/yoyo/.openclaw/extensions/feishu-openclaw-plugin/node_modules/follow-redirects/index.js:56:24) at ClientRequest.emit (node:events:509:28) at emitErrorEvent (node:_http_client:109:11) at TLSSocket.socketErrorListener (node:_http_client:593:5) at TLSSocket.emit (node:events:509:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) at Axios.request (/home/yoyo/.openclaw/extensions/feishu-openclaw-plugin/node_modules/axios/dist/node/axios.cjs:5110:41) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) { isAxiosError: true, code: 'EAI_AGAIN', config: { transitional: [Object], adapter: [Array], transformRequest: [Array], transformResponse: [Array], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: [Object], validateStatus: [Function: validateStatus], headers: [Object [AxiosHeaders]], method: 'post', url: 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal', data: '{"app_id":"cli_a9781508f0389bc9","app_secret":"HG1anWFcDaeg0YxKKMeLVfZoiDNTlDIj"}', allowAbsoluteUrls: true }, request: Writable { _events: [Object], _writableState: [WritableState], _maxListeners: undefined, _options: [Object], _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 81, _requestBodyBuffers: [Array], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: [ClientRequest], _currentUrl: 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, cause: Error: getaddrinfo EAI_AGAIN open.feishu.cn at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) { errno: -3001, code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'open.feishu.cn' } } ] │ ◇ 已选通道 ─────────────────────────────────────────────────╮ │ Feishu — 飞书/Lark enterprise messaging. 文档: │ │ feishu │ ├────────────────────────────────────────────────────────────╯ Updated ~/.openclaw/openclaw.json 工作区正常:~/.openclaw/workspace 会话正常:~/.openclaw/agents/main/sessions │ ◇ 技能状态 ──────────╮ │ 符合条件:60 │ │ 缺少需求:0 │ │ 被允许列表阻止:0 │ ├─────────────────────╯ │ ◆ 现在配置技能?(推荐) │ ● Yes / ○ No ◇ 技能安装的首选节点管理器 │ npm │ ◇ 钩子 ───────────────────────────────────────────╮ │ 钩子让您能够在代理命令发出时自动执行操作。 │ │ 例如:在您发出/new时将会话上下文保存到内存中。 │ │ │ │ 了解更多:https://docs.clawd.bot/hooks │ ├──────────────────────────────────────────────────╯ │ ◇ 启用钩子? │ 🔗 session-memory │ ◇ 钩子已配置 ─────────────────────────╮ │ 启用了 1 个钩子:session-memory │ │ │ │ 您可以稍后使用以下命令管理钩子: │ │ openclaw-cn hooks list │ │ openclaw-cn hooks enable <name> │ │ openclaw-cn hooks disable <name> │ ├──────────────────────────────────────╯ Config overwrite: /home/yoyo/.openclaw/openclaw.json (sha256 c4150b73f75908cb5df04a2e7fab064e977393650cdbaededd581aa50561dd7a -> b5f28d43472ae78ecc4738ead540dd8704ea622b75062b2b6123b72b1bb45413, backup=/home/yoyo/.openclaw/openclaw.json.bak) │ ◇ Systemd ────────────────────────────────────────────────────────────────────────────────╮ │ Linux installs use a systemd user service by default. Without lingering, systemd stops │ │ the user session on logout/idle and kills the Gateway. │ │ Enabling lingering now (may require sudo; writes /var/lib/systemd/linger). │ ├──────────────────────────────────────────────────────────────────────────────────────────╯ │ ◇ Systemd ─────────────────────────────╮ │ Enabled systemd lingering for yoyo. │ ├───────────────────────────────────────╯ │ ◇ Gateway service runtime ───────────────────╮ │ 快速开始为网关服务使用Node(稳定+支持)。 │ ├─────────────────────────────────────────────╯ │ ◒ Installing Gateway service… Installed systemd service: /home/yoyo/.config/systemd/user/openclaw-gateway.service ◇ 网关服务已安装。 │ ◇ Feishu: failed (unknown) - API error: app do not have bot Agents: main (default) Heartbeat interval: 30m (main) Session store (main): /home/yoyo/.openclaw/agents/main/sessions/sessions.json (0 entries) │ ◇ 可选应用 ───────────────────╮ │ 为额外功能添加节点: │ │ - macOS应用(系统+通知) │ │ - iOS应用(相机/画布) │ │ - Android应用(相机/画布) │ ├──────────────────────────────╯ │ ◇ 控制界面 ─────────────────────────────────────────────────────────────────────────────────╮ │ 网页界面:http://127.0.0.1:18789/ │ │ 网页界面(带令牌):http://127.0.0.1:18789/?token=715fd255d3d676d61869631c42d5e6e2943cad │ │ da2db7a562 │ │ 网关WS:ws://127.0.0.1:18789 │ │ 网关:可访问 │ │ 文档:https://docs.clawd.bot/web/control-ui │ ├────────────────────────────────────────────────────────────────────────────────────────────╯ │ ◇ 启动TUI(最佳选项!) ────────────────────╮ │ 这是定义性的操作,使您的智能体成为您的。 │ │ 请慢慢来。 │ │ 您告诉它的越多,体验就会越好。 │ │ 我们将发送:"醒来吧,我的朋友!" │ ├────────────────────────────────────────────╯ │ ◇ 令牌 ──────────────────────────────────────────────────────────────────────────────╮ │ 网关令牌:网关+控制界面的共享认证。 │ │ 存储在:~/.openclaw/openclaw.json(gateway.auth.token)或OPENCLAW_GATEWAY_TOKEN。 │ │ 网页界面在此浏览器的localStorage中存储副本(clawdbot.control.settings.v1)。 │ │ 随时获取带令牌的链接:openclaw-cn dashboard --no-open │ ├─────────────────────────────────────────────────────────────────────────────────────╯ │ ◇ 您想如何孵化您的机器人? │ 在TUI中孵化(推荐) │ ◇ 工作区备份 ────────────────────────────────────────────╮ │ 备份您的智能体工作区。 │ │ 文档:https://docs.clawd.bot/concepts/agent-workspace │ ├─────────────────────────────────────────────────────────╯ │ ◇ 安全 ──────────────────────────────────────────────────────────────────────────────╮ │ 在您的计算机上运行智能体是有风险的——加强您的设置:https://docs.clawd.bot/security │ ├─────────────────────────────────────────────────────────────────────────────────────╯ │ ◇ 网络搜索(可选) ───────────────────────────────────────────────╮ │ 如果希望您的智能体能够搜索网络,则需要API密钥。 │ │ │ │ Clawdbot使用Brave Search作为`web_search`工具。没有Brave Search │ │ API密钥,网络搜索将无法工作。 │ │ │ │ 交互式设置: │ │ - 运行:openclaw-cn configure --section web │ │ - 启用web_search并粘贴您的Brave Search API密钥 │ │ │ │ 替代方案:在网关环境中设置BRAVE_API_KEY(无需更改配置)。 │ │ 文档:https://docs.clawd.bot/tools/web │ ├──────────────────────────────────────────────────────────────────╯ │ ◇ 接下来 ─────────────────────────────────────────────────────╮ │ 接下来:https://clawd.bot/showcase("人们正在构建什么")。 │ ├──────────────────────────────────────────────────────────────╯ │ └ 安装引导完成。使用上面的带令牌仪表盘链接控制Clawdbot。 openclaw-cn tui - ws://127.0.0.1:18789 - agent main - session main session agent:main:main Wake up, my friend! Hey! I just came online. Fresh workspace, no memories yet — blank slate. So... who are you? What do I call you? And while we're at it — I need a name, a vibe, an identity. I've got ideas, but I'd rather figure this out together. What kind of assistant do you want hanging around?