安装方式
OpenClaw 支持多种安装方式,从个人电脑到云服务器都可以运行。
系统要求
- Node.js 22 或更高版本
- macOS(推荐)、Linux 或 Windows (WSL2)
- 最低 512MB RAM(推荐 1GB+)
方式一:脚本安装(推荐)
macOS / Linux
curl -fsSL https://openclaw.ai/install.sh | bash
Windows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iex
方式二:npm 安装
npm install -g openclaw@latest
方式三:Docker
docker run -it --rm \
-v ~/.openclaw:/root/.openclaw \
ghcr.io/openclaw/openclaw:latest
方式四:云服务器
Hetzner(推荐,性价比高)
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt-get install -y nodejs npm install -g openclaw@latest openclaw onboard
更多云平台:Fly.io ↗ · Oracle Cloud(免费)↗ · Railway ↗
方式五:Raspberry Pi
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt-get install -y nodejs npm install -g openclaw@latest
更新
openclaw update
卸载
openclaw uninstall
注意: 卸载前备份
~/.openclaw/ 目录,其中包含你的配置和记忆文件。