自分の 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