【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/"

相关推荐
changshuaihua0019 分钟前
LangChain · LangGraph · LangSmith 全景解析:LLM应用开发完整生态
人工智能·大模型·ai编程
O。O蛋黄酥啊1 小时前
实时语音 Agent 开发完全指南:从 ASR/TTS 到 WebRTC/VAD 的链路拆解
大模型·webrtc·语音识别·tts·asr
smilejingwei2 小时前
不用大模型不烧 token 能把智能问数做到啥程度?
大模型·token·智能问数·nlq
liferecords2 小时前
Xiaomi-OCR-0:小米把 1.7 亿样本灌进 0.8B 小模型,文档解析和 OCR 问答一把抓
人工智能·大模型·ocr·多模态
loulanyue_3 小时前
我们正从规模化时代迈向研究时代:破除预训练幻象与通用泛化困境——读Ilya Sutskever重磅专访全景解析
人工智能·深度学习·机器学习·大模型·通用人工智能
余槐i5 小时前
Ollama 长文档问答后半段全空:context 默认值与静默截断的代价
性能优化·大模型·api·rag·ollama
酒旅Agent开发实战6 小时前
10000个MCP Server之后:生态繁荣还是碎片化?
人工智能·大模型·酒店预订·ai agent·mcp
像风一样自由20206 小时前
55.从零搭建一个企业文档问答系统总体架构与技术选型
人工智能·架构·大模型·rag·智能体
yunfanleo7 小时前
模型微调(Fine-tuning)详解:原理、Full/LoRA/QLoRA 三种方案对比与 PEFT 工程实践
人工智能·深度学习·机器学习·大模型·人工智能python
虎鲸不是鱼7 小时前
【虎鲸进化论 02】三阶跃迁:Tab 补全 → Vibe Coding → Agent,人在每一层退到哪里
大数据·人工智能·大模型·llm·自进化agent