Skip to content

安装

官网: https://openclaw.ai/

文档地址: https://docs.openclaw.ai/getting-started

Windows 安装

在 windows 系统上安装

检查环境

powershell
winget -v
choco -v
node -v
npm -v
git -v

Windows 安装 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 -v

Windows 加速安装 Nodejs

https://nodejs.cn/en/download

国内下载: Nodejs x64 Windows 安装包

Windows Git 安装

https://git-scm.com/install/windows

下载安装: Git x64 Windows 安装包

或者命令行安装:

powershell
winget install --id Git.Git -e --source winget

Windows 加速下载 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/

下载安装: Visual Studio 2026 社区版安装包

Windows 安装 OpenClaw

powershell
npm i -g openclaw@2026.3.2

配置 OpenClaw

powershell
openclaw onboard

Mac 安装

在 Mac OS 系统上安装

检查环境

bash
uname -m
brew -v
node -v
npm -v
pnpm -v
git -v

Mac 安装 Nodejs

https://nodejs.cn/en/download

国内下载: Nodejs x64 Mac 安装包

或者

bash
curl -o- https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
brew install node@24
node -v
npm -v

Mac 安装 Git

通过安装 xcode 安装

Mac 安装 pnpm

bash
npm i -g pnpm

Mac 安装 OpenClaw

bash
npm config set registry https://registry.npmmirror.com
bash
npm config get registry
bash
npm i -g openclaw@2026.3.2

配置 OpenClaw

bash
openclaw onboard