安装
文档地址: https://docs.openclaw.ai/getting-started
Windows 安装
在 windows 系统上安装
检查环境
powershell
winget -v
choco -v
node -v
npm -v
git -vWindows 安装 Nodejs
https://nodejs.org/zh-cn/download
下载安装: Nodejs x64 Windows 安装包
或者
powershell
powershell -c "irm https://community.chocolatey.org/install.ps1|iex"
choco install nodejs --version="24.14.0"
node -v
npm -vWindows 加速安装 Nodejs
国内下载: Nodejs x64 Windows 安装包
Windows Git 安装
https://git-scm.com/install/windows
下载安装: Git x64 Windows 安装包
或者命令行安装:
powershell
winget install --id Git.Git -e --source wingetWindows 加速下载 Git
https://registry.npmmirror.com/binary.html?path=git-for-windows/v2.53.0.windows.1/
下载安装: Git x64 Windows 安装包
Windows 安装 VS
https://visualstudio.microsoft.com/zh-hans/downloads/
Windows 安装 OpenClaw
powershell
npm i -g openclaw@2026.3.2配置 OpenClaw
powershell
openclaw onboardMac 安装
在 Mac OS 系统上安装
检查环境
bash
uname -m
brew -v
node -v
npm -v
pnpm -v
git -vMac 安装 Nodejs
国内下载: Nodejs x64 Mac 安装包
或者
bash
curl -o- https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
brew install node@24
node -v
npm -vMac 安装 Git
通过安装 xcode 安装
Mac 安装 pnpm
bash
npm i -g pnpmMac 安装 OpenClaw
bash
npm config set registry https://registry.npmmirror.combash
npm config get registrybash
npm i -g openclaw@2026.3.2配置 OpenClaw
bash
openclaw onboard