Windows
Windows 平台支持(通过 WSL2)。
推荐方式:WSL2
WSL2 提供最佳兼容性:
powershell
# 安装 WSL2
wsl --install
# 重启后,在 WSL 中
curl -fsSL https://openclaw.bot/install.sh | bash
openclaw onboard原生 Windows
注意
原生 Windows 支持有限,推荐使用 WSL2。
要求
- Windows 10/11
- Node.js >= 22
- Git for Windows
安装
PowerShell(管理员):
powershell
# 安装 Node.js(使用 nvm-windows 或 winget)
winget install OpenJS.NodeJS.LTS
# 安装 Git
winget install Git.Git
# 安装 OpenClaw
npm install -g openclaw@latest
# 入门
openclaw onboard常见问题
"git not found"
安装 Git for Windows 并重启 PowerShell。
"openclaw is not recognized"
npm 全局 bin 目录不在 PATH 中:
powershell
# 检查 npm prefix
npm config get prefix
# 确保 <prefix>\bin 在 PATH 中终端关闭后如何重启
powershell
openclaw gateway start