WDQYES博客

标签:AI

OpenClaw安装及常用指令

安装node 安装指令: curl -sL https://deb.nodesource.com/setup_24.x | sudo -E bash - sudo apt-get install -y nodejs 验证安装: node -v npm -v 官方默认安装 执行指令: curl -fsSL https://openclaw.im/install.sh | bash 指定版本安装 1. (可选) 如果你想完全重新安装,可以先卸载当前版本 npm uninstall -g openclaw 2. 安装指定的版本,例如 2026.3.8 npm install -g openclaw@2026.3.8 如果遇到无法访问git,可指定镜像重试 npm install -g openclaw@2026.3.8 --registry=https://registry.npmmirror.com 3. 验证安装的版本 openclaw --version 核心配置文件 核心配置文件: ~/.openclaw/openclaw.json API Key的存放文件: ~/.