Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

14.2 Installation & 4 Deployment Modes

🦞 "Four ways to run OpenClaw — from 'try it out' to 'production'."


Overview

ModeCommandForPersistenceIsolation
A. npxnpx @openclaw/cli onboardTry / demo~/.openclaw/None
B. Install scriptcurl -fsSL openclaw.ai/install.sh | bashDaily long-term useLocalNone
C. Source buildgit clone + pnpm installDevelopment / reading sourceLocalNone
D. Docker sandboxdocker runProduction / isolationVolume✅

Four deployment modes


Mode A: npx (Try It Out)

npx @openclaw/cli onboard

The wizard asks for: LLM provider, at least one channel, persona, language, timezone, self-evolving on/off. Note: npx pulls packages over the network each run — not for 24/7.

# macOS / Linux / WSL2
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard

# Windows (PowerShell)
powershell -c "irm https://openclaw.ai/install.ps1 | iex"

Three update channels: stable (production) / beta / dev.

Mode C: Source Build

git clone https://github.com/openclaw/openclaw.git
cd openclaw && corepack enable && pnpm install
pnpm openclaw onboard

Source layout (per main): src/ (agent / gateway / config / memory), extensions/ (channel plugins), skills/, packages/.

Mode D: Docker Sandbox

docker pull ghcr.io/openclaw/openclaw:latest
docker run -d --name openclaw \
    -v ~/.openclaw:/home/node/.openclaw \
    -v ~/workspace:/workspace \
    -e ANTHROPIC_API_KEY=sk-... \
    ghcr.io/openclaw/openclaw:latest gateway

⚠️ WhatsApp uses QR linking — session must persist in the volume, or re-scan after every restart.

Verify: openclaw doctor

$ openclaw doctor
✓ Node.js / pnpm / API key / Config / Memory
✓ Channels: Telegram ● online / WhatsApp ○ not configured
✓ Skills: 28 loaded
✓ Sandbox: local (no isolation) — consider Docker for production

Decision Summary

GoalPick
5-minute tryA (npx)
Daily 24/7B + pm2/launchd daemon
Read source / modifyC (source)
Team / productionD (Docker)

Next section: 14.3 Architecture: Gateway / Agent Loop / Skills