当前位置: 首页 > news >正文

openclaw 0512版本部署(ubuntu 26.04) - Leonardo

1.nodejs下载

  • 下载nodejs
# nodejs和npm
apt update
apt install -y nodejs npm
  • 查看node和npm版本
root@test-VMware-Virtual-Platform:/data# npm --version
9.2.0
root@test-VMware-Virtual-Platform:/data# node --version
v22.22.1

2.安装openclaw

npm i -g openclaw

image

3.配置openclaw

  • 执行命令
openclaw onboard
  • 配置过程,仅供参考,可根据实际情况配置
root@test-VMware-Virtual-Platform:/home/test# openclaw onboard🦞 OpenClaw 2026.5.12 (f066dd2) — One CLI to rule them all, and one more restart because you changed the port.▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██
██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██
██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀🦞 OPENCLAW 🦞                    ┌  OpenClaw setup
│
◇  Security disclaimer ──────────────────────────────────────────────────────────────────────╮
│                                                                                            │
│  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                                                             │
│                                                                                            │
│  Learn more                                                                                │
│  - 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 model set to 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 approve <channel> <code>                                  │
│  Open/public DMs require dmPolicy="open" plus allowFrom=["*"].                            │
│  For multi-user DMs, isolate sessions with: openclaw config set session.dmScope           │
│  "per-channel-peer" (or "per-account-channel-peer" for multi-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; install the plugin to enable.                  │
│  Nextcloud Talk: Self-hosted chat via Nextcloud Talk webhook bots.                        │
│  Matrix: open protocol; install the 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; install the 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; more setup (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
│
◇  How do you 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 - respond in all groups (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 agent look things 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 will enable the 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 ──────────────────────────────────────────────────────────────────╮
│                                                                          │
│  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                   │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Enable hooks?
│  Skip for now
Config overwrite: /root/.openclaw/openclaw.json (sha256 bd67cbc42d7f67b0c87f84b1fd986349738aeadcb8cbffb99f51dbe654ce6795 -> fa12e880ec61be0374e229e5ce16f482f24266fd74989e06e7be28ae25e6c6fe, backup=/root/.openclaw/openclaw.json.bak)
│
◇  Gateway service runtime ────────────────────────────────────────────╮
│                                                                      │
│  QuickStart uses Node for the Gateway service (stable + supported).  │
│                                                                      │
├──────────────────────────────────────────────────────────────────────╯
│
◇  Gateway service install failed.
│
◇  Gateway ──────────────────────────────────────────────────────────────────────────────╮
│                                                                                        │
│  Gateway service install failed: systemctl enable failed: Failed to enable unit: Unit  │
│  openclaw-gateway.service does not exist                                               │
│                                                                                        │
├────────────────────────────────────────────────────────────────────────────────────────╯
│
◇  Gateway ───────────────────────────────────────────────────────╮
│                                                                 │
│  Tip: rerun `openclaw gateway install` after fixing the error.  │
│                                                                 │
├─────────────────────────────────────────────────────────────────╯
Health check failed: connect ECONNREFUSED 127.0.0.1:18789
│
◇  Health check help ────────────────────────────────╮
│                                                    │
│  Docs:                                             │
│  https://docs.openclaw.ai/gateway/health           │
│  https://docs.openclaw.ai/gateway/troubleshooting  │
│                                                    │
├────────────────────────────────────────────────────╯
│
◇  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:18789/                                                 │
│  Web UI (with token):                                                            │
│  http://127.0.0.1:18789/#token=2e04fafef6c2c9ad13194477c936048feb7d2bd7722b25b0  │
│  Gateway WS: ws://127.0.0.1:18789                                                │
│  Gateway: not detected (connect ECONNREFUSED 127.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.  │
│                                                                      │
├──────────────────────────────────────────────────────────────────────╯
│
◇  How do you want to hatch your agent?
│  Hatch later
│
◇  Later ───────────────────────────────────────────╮
│                                                   │
│  When you're 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 work until a key is added.                                   │
│    openclaw configure --section web                                               │
│                                                                                   │
│  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 dashboard link above to control OpenClaw.

4.启动openclaw

  • 此时只能通过飞书app或者本地web ui的方式连接openclaw,如果想局域网内连接看下列步骤
openclaw gateway run
  • 第一次连接时,需要再openclaw.json中获取gateway.token进行认证登录
# 参考token
cat /root/.openclaw/openclaw.json | grep -w \"token | tail -1
http://127.0.0.1:18789

image

5.设置局域网内连接openclaw web ui

# 第一步:允许局域网访问
openclaw config set gateway.bind lan
作用:将网关从 loopback(仅本地)模式切换为 lan(局域网/公网可访问)模式# 第二步:允许非安全认证(解决 origin 限制的关键)
openclaw config set gateway.controlUi.allowInsecureAuth true# 第三步:(可选)禁用设备认证
openclaw config set gateway.controlUi.dangerouslyDisableDeviceAuth true
注意:此步骤会降低安全性,仅在可信局域网内使用# 第四步:获取本机局域网 IP(自行获取)# 第五步:配置允许的来源 Origins(解决跨域访问)
openclaw config set 'gateway.controlUi.allowedOrigins' '["http://192.168.11.20:18789"]'
将 192.168.11.20 替换为你实际的局域网 IP 地址
  • 这样就可以通过局域网访问,并进行对话了
http://192.168.11.20:18789

image

6.遇到的问题

  • openclaw通过openclaw onboard配置小米的models时,默认是按量付费的接口地址,如果你使用的是小米的token plan,那么配置完启动openclaw后会报错401,需要手动修改openclaw.json配置文件进行添加
[diagnostic] lane task error: lane=main durationMs=2566 error="FailoverError: 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: lane=session:agent:main:feishu:direct:ou_624a7650d456b0b026af00c8913d60a0f durationMs=757 error="FailoverError: LLM request failed: provider rejected the request schema or tool payload."
[model-fallback/decision] model fallback decision: decision=candidate_failed requested=test123/mimo-v2.5 candidate=test123/mimo-v2.5 reason=format next=none detail=400 Param Incorrect

7.openclaw官网地址

https://openclaw.ai/

 

http://www.jsqmd.com/news/844443/

相关文章:

  • GH4169高温合金厂商推荐:高品质的Inconel718高温合金厂商名单 - 品牌2025
  • 【免费下载】 Mockito 库文件下载
  • AI辅助写作论文被AIGC检测出合规性解读:2026年高校政策与免费应对降AI完整方案
  • 网盘直链下载助手完整指南:告别下载限速的九大网盘解决方案
  • 2026最佳护发素推荐榜:年度最终入围产品 - 速递信息
  • 2026长沙闲置黄金奢侈品处置指南,合扬全国奢侈品交易中心专属解析 - 奢侈品回收测评
  • 2026年毕业论文必备收藏:10款高效降AI率工具汇总 - 降AI实验室
  • 跨平台访问Windows BitLocker加密卷:Dislocker实战指南
  • 携程商旅发布AI生态全景图:当TMC遇上AI,商旅AI生态如何重塑企业差旅管理? - 匠言榜单
  • 如何高效管理Nintendo Switch游戏文件:NSC_BUILDER技术解析与实践指南
  • 别再只用DS18B20了!用51单片机和ADC0804做个PT100温度计,从硬件接线到代码调试全流程
  • 测试09测试09测试09测试09测试09测试09
  • 明星同款发膜评测:卡诗vs潘婷,是真好用还是智商税? - 速递信息
  • 【亲测免费】 YOLOv5自动驾驶车道线检测模型
  • Bilibili-Evolved离线缓存架构解析:构建无网络依赖的现代Web增强脚本
  • 别再为码垛标定头疼了!汇川机器人五点法标定保姆级教程(附避坑指南)
  • 郑州刘师傅墙面翻新修补:河南专业的墙面粉刷公司有哪些 - LYL仔仔
  • 【免费下载】 【springboot】+Vue前后端分离的Java快速开发框架
  • 【亲测免费】 Keil5 STM32F1系列芯片包下载指南
  • 海州区龙河南路这家金福楼黄金回收,开了多年的老店,卖黄金就图个踏实 - 润富黄金珠宝行
  • 如何快速获取网盘文件直链:LinkSwift浏览器脚本完全指南
  • 专业高效的CSDN博客下载器使用教程:从零开始掌握批量下载技巧
  • 期刊论文写作破局:从选题到投稿,虎贲等考 AI 让学术发表更简单
  • 品牌设计公司怎么选?从实战维度拆解核心标准 - 奔跑123
  • 2026年乌鲁木齐全屋软装定制选购指南:如何找到真正的高性价比环保品牌 - 企业名录优选推荐
  • Agent 一接数据湖查询平台就开始查错快照:从 Time-Travel 语义到 Partition Version Grounding 的工程实战
  • 【免费下载】 MobaXterm 汉化版资源文件下载
  • 公共管理论文降AI工具免费推荐:2026年公共管理毕业论文AIGC超标4.8元一次过知网完整指南
  • NVMe-CLI v2.12深度解析:全面掌握下一代NVMe存储管理工具
  • 2026发膜新品前瞻:科技护发将成主流 - 速递信息