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

相关推荐
小田学Python1 小时前
Agent 的运行范式:ReAct(Reasoning+Acting)
大模型·react·ai agent·工具调用
comedate2 小时前
DeepSeek Harness 与 OpenClaw 功能异同对比
openclaw·deepseekharness·差异
程序猿编码2 小时前
不用GPU,不用多线程,我用C++20手写了一个Gemma 3推理引擎
pytorch·语言模型·大模型·c++20·推荐算法
咖啡星人k3 小时前
想私有化部署 AI 开发平台?MonkeyCode 给出的答案是开源 + 离线
人工智能·大模型·ai编程·monkeycode
ArkAPI4 小时前
Claude Code 连发安全修复:AI 编程 Agent 的权限,正在成为新的“安全事故高发区”
人工智能·大模型·api·codex·ai工具·claude code·arkapi
Tisfy6 小时前
Codex:通过编辑配置文件添加带Bearer的自定义MCP
数据库·大模型·agent·codex·mcp
dogstarhuang9 小时前
大模型 API 停服怎么办:用 API 网关实现多模型统一接入与可切换架构
人工智能·后端·架构·大模型·api·数字化转型·ai应用
thesky12345610 小时前
27届大模型面试准备(三十二):RAG 进阶——从朴素 RAG 到 Agentic RAG 与多模态检索增强
大模型·rag·agentic rag·graph rag·进阶rag·self-rag·corrective rag
thesky12345612 小时前
27届大模型面试准备(三十一):多模态推理与视觉思维链——从“看见“到“想明白“
大模型·具身推理·空间推理·多模态推理·视觉思维链·visual cot·图表推理
安逸sgr17 小时前
优化器是什么?SGD、Momentum、Adam 有什么区别?
人工智能·ai·大模型·agent·智能体