适合在自己的 Mac/Windows/Linux 电脑上运行,方便调试和开发。通过 Docker Desktop 部署最为简便。
1
使用 Docker Compose 部署(推荐)
yaml
version: '3.8'
services:
openclaw:
image: openclaw/gateway:latest
container_name: openclaw-gateway
ports:
- "4000:4000"
volumes:
- ./data:/app/data
- ~/.openclaw:/root/.openclaw
restart: unless-stopped
environment:
- NODE_ENV=production2
启动服务
bash
docker compose up -d
docker compose logs -f3
直接安装(不用 Docker)
bash
# 安装 nvm(Mac/Linux)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.zshrc
nvm install 20 && nvm use 20
npm install -g openclaw
openclaw gateway start