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

相关推荐
绵满8 小时前
"Sample Is Feature: Beyond Item-Level, Toward Sample-Level Tokens for Unified Large Recommender Models" 论文笔记
大模型·推荐系统
山屿落星辰10 小时前
昇腾NPU上的FlashAttention:让大模型“算得快“又“记得准“
大模型
AI绘画哇哒哒12 小时前
Agent三种思考模式深度解析:CoT/ReAct/Plan-and-Execute,小白程序员必看,助你轻松掌握大模型精髓(收藏版)
人工智能·学习·ai·程序员·大模型·产品经理·转行
QUDONG_biubiubiu14 小时前
OpenClaw怎么安装Summarize?新手一键配置教程
openclaw·安装summarize·summarize技能
翼龙云_cloud14 小时前
腾讯云代理商:如何用COS向量桶给OpenClaw实现智能路由?
云计算·腾讯云·openclaw·cos向量桶
海的辽阔15 小时前
如何在MAC下安装EcomGpt模型
macos·大模型·ecomgpt
赢乐18 小时前
AI大模型学习笔记:LangChain核心组件-工具(Tools)
langchain·大模型·agent·function_call·工具(tools)·tool装饰器·定义工具
JCJC错别字检测-田春峰19 小时前
图片/PDF/Word文件一键转Markdown格式,支持 API Hermes Agent Skill
markdown·openclaw·hermes agent
AC赳赳老秦19 小时前
OpenClaw与Axure联动:自动生成原型图组件、批量修改原型样式,提升设计效率
python·web安全·ui·音视频·axure·photoshop·openclaw
前端小超人rui2 天前
Prompt 提示词原理/组成/编写原则/编写技巧
人工智能·大模型·prompt