【linux系统】安装并启动openclaw只需要两条命令

总结两句话:

1、这玩意名字变的太快了,找新版本的文档

2、一条命令安装,一条命令启动

  • npm install -g openclaw@latest --ignore-scripts

  • openclaw onboard --install-daemon

以下是试验过程

  1. 确保本地node版本 >= 22

    1. (我本来在conda环境里,使用安装nvm管理 npm 失败,后退出conda环境)

      1. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

      2. nvm install 22

      3. cat ~/.bashrc

      4. source ~/.bashrc

      5. nvm install 22

      6. nvm use 22

      7. nvm alias default 22

  2. 开始安装 openclow (踩坑之路)

    1997 clawbot init

    1998 source ~/.bashrc

    1. https://clawbot.ai/getting-started-with-clawbot.html 刚开始使用cloawbot 搜索出来第一个 感觉是官方的网站(可能是老旧了,文档命令已经过时了)

      1. npm install -g clawbot@latest

        1. 报错:github上 clawbot项目已经改名了 openclaw

          1. npm err! 404 not found - get https://registry.npmjs.org/clawbot - not found npm err! 404 npm err! 404 'clawbot@latest' is not in the npm registry. npm err! 404 you should bug the author to publish it (or use the name yourself!) npm err! 404 npm err! 404 note that you can also install from a npm err! 404 tarball, folder, http url, or git url. npm err! a complete log of this run can be found in:
    2. 后面了解到这个网站:https://docs.openclaw.ai/start/getting-started

      1. curl -fsSL https://openclaw.ai/install.sh | bash

        1. 命令没有问题,只是一直会卡主,会报错超时

          → Installing OpenClaw 2026.2.6-3...

          → npm install failed; cleaning up and retrying..

      2. npm install -g openclaw@latest 手动安装

        1. 报错:安装 llama.cpp 失败

            1. 对应命令执行后,重试安装,继续失败
            1. 选择跳过 脚本安装
      3. npm install -g openclaw@latest --ignore-scripts && openclaw init

        1. 好,openclaw安装成功了,init命令执行失败

          1. init 命令以及被新版本移除了

      4. 回看 网站教程 https://docs.openclaw.ai/start/getting-started

        1. openclaw onboard --install-daemon(配置引导)

        2. 中途配置看不懂的 可以参考(配置阶段),【有点长就不一一截屏记录了】 https://www.runoob.com/ai-agent/openclaw-clawdbot-tutorial.html。

          1. 其中模型选择,我选的 qwen,网页登录后就通过了
        3. 配置后 启动完成

    3. 中途可能用到的其他命令

      1. npm install -g openclaw@latest 时很慢 github链接原因

        1. 配置一下 git 代理

        2. git config --global url."https://ghproxy.com/https://github.com/".insteadOf "https://github.com/"

相关推荐
程序猿编码3 天前
告别改源码适配模型:纯 C++ 可配置 LLM 推理引擎,全格式全结构兼容
c++·大模型·llm·推理引擎
蔡俊锋3 天前
华为昇腾 960 超节点发布:4096 卡、5500 个光引擎替 4.8 万光模块——国产算力拐点到了吗?
大模型·模型部署·ai架构·国产算力·华为昇腾
O。O蛋黄酥啊3 天前
Claude Code 记忆机制全拆解:Auto Memory 与 CLAUDE.md 双轨解析
大模型·agent·memory·claude·codex·记忆
BlackStar_L3 天前
第二章 上下文工程
大模型·llm·agent
User_芊芊君子3 天前
让 Claude Code 换上国产大脑:蓝耘元生代上 GLM-5.2 / DeepSeek / Qwen 模型横评实测
人工智能·ai·大模型
寻道码路3 天前
大模型工程化实战(十二):RAG 数据工程底座——采集到入库流水线(离线+在线双链路)
大模型·知识库·rag·ai工程化·llmops`·数据工程底座·文档采集
Web3&Basketball3 天前
CRM Agent 后训练实战:3 倍更少错误
python·架构·大模型·agent·推理
蚁小二官方3 天前
AI 安全治理框架更新|大模型训练数据合规,企业实操落地思路
大模型·数据合规·ai安全
AI模力圈4 天前
On-Policy Distillation:原理、变体与工程实现解析
大模型·强化学习·知识蒸馏
长谷深风1114 天前
根因定位:三步隔离法破解AIBadcase
人工智能·ai·大模型·retrieval·ai智能体·aiagent·aibadcase