openclaw 0512版本部署(ubuntu 26.04)

发布时间:2026/6/30 22:37:25
openclaw 0512版本部署(ubuntu 26.04) 提前注册好飞书使用手机号注册就行1.nodejs下载下载nodejs# nodejs和npmaptupdateaptinstall-ynodejsnpm查看node和npm版本roottest-VMware-Virtual-Platform:/data# npm --version9.2.0 roottest-VMware-Virtual-Platform:/data# node --versionv22.22.12.安装openclawnpmi-gopenclaw3.配置openclaw执行命令openclaw onboard配置过程仅供参考可根据实际情况配置roottest-VMware-Virtual-Platform:/home/test# openclaw onboard OpenClaw2026.5.12(f066dd2)— One CLI to rule them all, and onemorerestart because you changed the port. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██ ██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██ ██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ OPENCLAW ┌ OpenClaw setup │ ◇ Security disclaimer ──────────────────────────────────────────────────────────────────────╮ │ │ │ OpenClaw is a hobby project and stillinbeta. Expect sharp edges. │ │ By default, OpenClaw is a personal agent: one trusted operator boundary. │ │ This bot canreadfiles and run actionsiftools are enabled. │ │ A bad prompt can trick it into doing unsafe things. │ │ │ │ OpenClaw is not a hostile multi-tenant boundary by default. │ │ If multipleuserscan 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 tohelpbefore enabling tools or exposing it to the internet. │ │ │ │ Recommended baseline │ │ - Pairing/allowlists mention gating. │ │ - Multi-user/shared inbox:splittrust 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 modelforany bot with tools or untrusted inboxes. │ │ │ │ Run regularly │ │ openclaw security audit--deep│ │ openclaw security audit--fix│ │ │ │ Learnmore│ │ - https://docs.openclaw.ai/gateway/security │ │ │ ├────────────────────────────────────────────────────────────────────────────────────────────╯ │ ◇ I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue? │ Yes │ ◇ Setup mode │ QuickStart(recommended)│ ◇ QuickStart ─────────────────────────╮ │ │ │ Gateway port:18789│ │ Gateway bind: Loopback(127.0.0.1)│ │ Gateway auth: Token(default)│ │ Tailscale exposure: Off │ │ Direct to chat channels. │ │ │ ├──────────────────────────────────────╯ │ ◇ Model/auth provider │ More… │ ◇ Model/auth provider │ DeepSeek │ ◇ Enter DeepSeek API key │ ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪ │ ◇ Model configured ────────────────────────────────╮ │ │ │ Default modelsetto deepseek/deepseek-v4-flash │ │ │ ├───────────────────────────────────────────────────╯ │ ◇ Default model │ Browse all models │ │ ◇ Default model │ Keep current(deepseek/deepseek-v4-flash)│ ◇ How channels work ───────────────────────────────────────────────────────────────────────╮ │ │ │ Inbound DM safety defaults to pairing: unknown senders get a pairing code first. │ │ Approve with: openclaw pairing approvechannelcode│ │ Open/public DMs requiredmPolicyopenplusallowFrom[*]. │ │ For multi-user DMs, isolate sessions with: openclaw configsetsession.dmScope │ │per-channel-peer(orper-account-channel-peerformulti-account channels). │ │ Docs: channels/pairing │ │ │ │ Feishu: 飞书/Lark enterprise messaging with doc/wiki/drive tools. │ │ WeCom: Enterprise messaging and documents, scheduling, task tools. │ │ Google Chat: Google Workspace Chat app with HTTP webhook. │ │ Nostr: Decentralized protocol;encrypted DMs via NIP-04. │ │ Microsoft Teams: Teams SDK;enterprise support. │ │ Mattermost: self-hosted Slack-style chat;installthe plugin to enable. │ │ Nextcloud Talk: Self-hosted chat via Nextcloud Talk webhook bots. │ │ Matrix:openprotocol;installthe plugin to enable. │ │ LINE: LINE Messaging API webhook bot. │ │ Weixin: Personal WeChat messaging via QR-code login. │ │ Zalo: Vietnam-focused messaging platform with Bot API. │ │ ClickClack: self-hosted chat via first-class ClickClack bot tokens. │ │ Yuanbao: Tencent Yuanbao AI assistant conversation channel. │ │ 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;installthe plugin to enable. │ │ Discord: very well supported right now. │ │ iMessage: Local iMessage/SMS through the imsg bridge, including private API message │ │ actions when enabled. │ │ IRC: classic IRC networks with DM/channel routing and pairing controls. │ │ QQ Bot: connect to QQ via official QQ Bot API with group chat and direct message │ │ support. │ │ Signal: signal-cli linked device;moresetup(David Reagans:Hop on Discord.). │ │ Slack: supported(Socket Mode). │ │ Telegram: simplest way to get started — register a bot with BotFather and get going. │ │ Twitch: Twitch chat integration │ │ WhatsApp: works with your own number;recommend a separate phone eSIM. │ │ │ ├───────────────────────────────────────────────────────────────────────────────────────────╯ │ ◇ Select channel(QuickStart)│ Feishu/Lark(飞书)│ ◇ Installed Feishu plugin │ ◇ Howdoyou want to connect Feishu? │ Scan a QR code to create a bot automatically │ ◇ Which Feishu domain? │ Feishu(feishu.cn)- China │ ◇ Feishu scan-to-create ───────────────────────────────────────────────────────────────╮ │ │ │ Scan the QR with Lark/Feishu on your phone. If the mobile app does not react, rerun │ │ setup and choose manual input. │ │ │ ├───────────────────────────────────────────────────────────────────────────────────────╯# 这里会生成一个二维码使用飞书手机端app扫描就可以自动创建或者使用现有的机器人│ ◇ Scan completed. │ ◇ Group chat policy │ Open - respondinallgroups(requires mention)│ ◇ Bot configured.[info]:[client ready]│ ◇ Selected channels ─────────────────────────────────────╮ │ │ │ Feishu — 飞书/Lark enterprise messaging. Docs: feishu │ │ │ ├─────────────────────────────────────────────────────────╯ Updated ~/.openclaw/openclaw.json Workspace OK: ~/.openclaw/workspace Sessions OK: ~/.openclaw/agents/main/sessions │ ◇ Web search ─────────────────────────────────────────────────────────────────╮ │ │ │ Web search lets your agentlookthings up online. │ │ Choose a provider. Some providers need an API key, and some work key-free. │ │ Docs: https://docs.openclaw.ai/tools/web │ │ │ ├──────────────────────────────────────────────────────────────────────────────╯ │ ◇ Search provider │ DuckDuckGo Search(experimental)│ ◇ Web search ──────────────────────────────────────────────────────────────╮ │ │ │ DuckDuckGo Search(experimental)works without an API key. │ │ OpenClaw willenablethe plugin and use it as your web_search provider. │ │ Docs: https://docs.openclaw.ai/tools/web │ │ │ ├───────────────────────────────────────────────────────────────────────────╯ │ ◇ Skills status ─────────────╮ │ │ │ Eligible:11│ │ Missing requirements:38│ │ Unsupported on this OS:7│ │ Blocked by allowlist:0│ │ │ ├─────────────────────────────╯ │ ◇ Configure skills now?(recommended)│ No │ ◇ Hooks ──────────────────────────────────────────────────────────────────╮ │ │ │ Hooksletyou 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 │ │ │ ├──────────────────────────────────────────────────────────────────────────╯ │ ◇ Enable hooks? │ Skipfornow Config overwrite: /root/.openclaw/openclaw.json(sha256 bd67cbc42d7f67b0c87f84b1fd986349738aeadcb8cbffb99f51dbe654ce6795 -fa12e880ec61be0374e229e5ce16f482f24266fd74989e06e7be28ae25e6c6fe,backup/root/.openclaw/openclaw.json.bak)│ ◇ Gatewayserviceruntime ────────────────────────────────────────────╮ │ │ │ QuickStart uses Nodeforthe Gatewayservice(stable supported). │ │ │ ├──────────────────────────────────────────────────────────────────────╯ │ ◇ Gatewayserviceinstallfailed. │ ◇ Gateway ──────────────────────────────────────────────────────────────────────────────╮ │ │ │ Gatewayserviceinstallfailed: systemctlenablefailed: Failed toenableunit: Unit │ │ openclaw-gateway.service does not exist │ │ │ ├────────────────────────────────────────────────────────────────────────────────────────╯ │ ◇ Gateway ───────────────────────────────────────────────────────╮ │ │ │ Tip: rerunopenclaw gatewayinstallafter fixing the error. │ │ │ ├─────────────────────────────────────────────────────────────────╯ Health check failed: connect ECONNREFUSED127.0.0.1:18789 │ ◇ Health checkhelp────────────────────────────────╮ │ │ │ Docs: │ │ https://docs.openclaw.ai/gateway/health │ │ https://docs.openclaw.ai/gateway/troubleshooting │ │ │ ├────────────────────────────────────────────────────╯ │ ◇ Optional apps ────────────────────────╮ │ │ │ Add nodesforextra features: │ │ - macOS app(system notifications)│ │ - iOS app(camera/canvas)│ │ - Android app(camera/canvas)│ │ │ ├────────────────────────────────────────╯ │ ◇ Control UI ─────────────────────────────────────────────────────────────────────╮ │ │ │ Web UI: http://127.0.0.1:18789/ │ │ Web UI(with token): │ │ http://127.0.0.1:18789/#token2e04fafef6c2c9ad13194477c936048feb7d2bd7722b25b0 ││ Gateway WS: ws://127.0.0.1:18789 │ │ Gateway: not detected(connect ECONNREFUSED127.0.0.1:18789)│ │ Docs: https://docs.openclaw.ai/web/control-ui │ │ │ ├──────────────────────────────────────────────────────────────────────────────────╯ │ ◇ Hatch your agent ───────────────────────────────────────────────────╮ │ │ │ Your workspace is ready. │ │ The first Terminal chat run will send:Wake up, my friend!│ │ Edit BOOTSTRAP.md later to change how the agent introduces itself. │ │ │ ├──────────────────────────────────────────────────────────────────────╯ │ ◇ Howdoyou want to hatch your agent? │ Hatch later │ ◇ Later ───────────────────────────────────────────╮ │ │ │ When youre ready: openclaw dashboard --no-open │ │ │ ├───────────────────────────────────────────────────╯ │ ◇ Workspace backup ────────────────────────────────────────╮ │ │ │ Back up your agent workspace. │ │ Docs: https://docs.openclaw.ai/concepts/agent-workspace │ │ │ ├───────────────────────────────────────────────────────────╯ │ ◇ Security ──────────────────────────────────────────────────────╮ │ │ │ Running agents on your computer is risky — harden your setup: │ │ https://docs.openclaw.ai/security │ │ │ ├─────────────────────────────────────────────────────────────────╯ │ ◇ Web search ──────────────────────────────────────────────────────────────────────╮ │ │ │ Provider DuckDuckGo Search(experimental)is selected but no API key was found. │ │ web_search will not workuntila key is added. │ │ openclaw configure--sectionweb │ │ │ │ Get your key at: https://duckduckgo.com/ │ │ Docs: https://docs.openclaw.ai/tools/web │ │ │ ├───────────────────────────────────────────────────────────────────────────────────╯ │ ◇ What now ─────────────────────────────────────────────────────────────╮ │ │ │ What now: https://openclaw.ai/showcase(What People Are Building). │ │ │ ├────────────────────────────────────────────────────────────────────────╯ │ └ Onboarding complete. Use the dashboardlinkabove to control OpenClaw.4.启动openclaw此时只能通过飞书app或者本地web ui的方式连接openclaw如果想局域网内连接看下列步骤openclaw gateway run第一次连接时需要再openclaw.json中获取gateway.token进行认证登录# 参考tokencat/root/.openclaw/openclaw.json|grep-w\token|tail-1http://127.0.0.1:18789飞书连接5.设置局域网内连接openclaw web ui# 第一步允许局域网访问openclaw configsetgateway.bind lan 作用将网关从 loopback仅本地模式切换为 lan局域网/公网可访问模式# 第二步允许非安全认证解决 origin 限制的关键openclaw configsetgateway.controlUi.allowInsecureAuthtrue# 第三步可选禁用设备认证openclaw configsetgateway.controlUi.dangerouslyDisableDeviceAuthtrue注意此步骤会降低安全性仅在可信局域网内使用# 第四步获取本机局域网 IP自行获取# 第五步配置允许的来源 Origins解决跨域访问openclaw configsetgateway.controlUi.allowedOrigins[http://192.168.11.20:18789]将192.168.11.20 替换为你实际的局域网 IP 地址这样就可以通过局域网访问并进行对话了http://192.168.11.20:187896.遇到的问题openclaw通过openclaw onboard配置小米的models时默认是按量付费的接口地址如果你使用的是小米的token plan那么配置完启动openclaw后会报错401需要手动修改openclaw.json配置文件进行添加[diagnostic]lane task error:lanemaindurationMs2566errorFailoverError: HTTP 401: Invalid API Key我在openclaw.json配置文件中手动添加小米token plan后https://token-plan-cn.xiaomimimo.com/v1,报错opencalw使用tools小米mimo模型无法解析但是我发送的信息“”你好“”或者“”hi“”也不行目前无法解决hermes是可以配置的[diagnostic]lane task error:lanesession:agent:main:feishu:direct:ou_624a7650d456b0b026af00c8913d60a0fdurationMs757errorFailoverError: LLM request failed: provider rejected the request schema or tool payload.[model-fallback/decision]model fallback decision:decisioncandidate_failedrequestedtest123/mimo-v2.5candidatetest123/mimo-v2.5reasonformatnextnonedetail400Param Incorrect7.openclaw官网地址https://openclaw.ai/