You installed OpenClaw per platform, but production needs a 24/7 Gateway, sane Docker volumes, and upgrades that do not erase state. This runbook targets teams who want Agents as contractable services: a preflight checklist, Docker vs npm trade-offs, Compose patterns for always-on processes, a symptom triage table, and a token, logging, backup, and rollback sequence. Pair it with the Windows/macOS/Linux install guide and, when you need a stable egress host, with the remote Mac execution layer below.
latest anonymously: upstream can change ports or config schemas overnight—CI pulls become silent releases.If Windows vs macOS vs Linux paths are still fuzzy, read OpenClaw install & platform choice first, then return here for containerization.
Community installers and Docker images evolve; use these as order-of-magnitude planning numbers and verify against the release you pin.
| Dimension | Docker Compose (production-leaning) | Local npm / installer (iteration-leaning) |
|---|---|---|
| Reproducibility | High: image pins dependencies | Medium: global Node/OS drift |
| Isolation / multi-instance | Easy: networks, volumes, limits | Harder: port and config clashes |
| Upgrade cadence | Controlled: tag or digest roll | Fast: track upstream main |
| Debugging | exec or bind-mount sources | Direct debuggers and breakpoints |
| Operational cost | Pulls, volume backups, compose hygiene | Host pollution, daemon consistency |
# Illustrative flow—service names follow the pinned release docs git clone https://github.com/openclaw/openclaw.git && cd openclaw # if provided: bash docker-setup.sh # docker compose pull # docker compose run --rm <cli-service> onboard # docker compose up -d <gateway-service> # docker compose ps # curl -fsS http://127.0.0.1:<health-port>/health || echo "see docs for path"
Warning: service names, env vars, and health paths change across releases—treat snippets as patterns, not gospel, and verify against the tag you froze.
restart: unless-stopped handles crashes, not bad configs—still add health checks.| Symptom | Likely cause | Ordered actions |
|---|---|---|
| Gateway exits immediately | Missing env, entrypoint change | Read compose logs; diff required keys vs release notes |
| Port in use | Stale process or host conflict | ss -lntp; remap or stop the owner |
| Model timeouts | Egress, proxy, DNS, region | curl from inside container; inspect certs/proxy |
| SQLite / lock errors | Dual writers, UID mismatch | Ensure one primary writer; fix volume ownership |
Inject gateway tokens via secrets—not image layers. If HTTP must be public, terminate TLS and rate-limit in front; even internal listeners should assume lateral movement.
Rollback order: ① record running digest + compose revision; ② stop Gateway; ③ restore volume snapshot; ④ docker compose up -d with the previous tag; ⑤ run health checks plus one end-to-end probe.
compose up to probe success—if it spikes, inspect pulls and volume I/O before buying CPU.Teams that co-locate Apple toolchain work—Xcode builds, Simulator, signing—with Agents benefit from moving Gateway off personal laptops onto dedicated, billable 24/7 Mac metal. Default to SSH for daemons and logs, VNC only when GUI triage is required—see SSH vs VNC guide.
Laptop pilots struggle with sleep policies, uncoordinated OS updates, and leaked ports when multiple humans debug. Containers without pinned digests only hide host drift behind a false sense of reproducibility.
The maintainable pattern is Compose-pinned runtimes on dedicated remote Macs (or equivalent bare metal) as the execution plane. MACCOME cloud Macs provide multi-region Apple Silicon with clear rental terms—useful when OpenClaw shares the same host as iOS/macOS automation. Compare regions with the multi-region guide and public rental rates, then order Singapore, Tokyo, Seoul, Hong Kong, US East, or US West.
Session help: Help Center.
FAQ
Docker or npm for production?
Compose for reproducibility; local npm for deep debugging. Start with install & platform choice to stage the path.
Gateway down—first checks?
Ports, health paths, container egress, volume permissions. Browse Help Center for SSH/VNC and connectivity topics.
How does this pair with remote Mac access?
SSH-first automation, VNC on demand—remote Mac SSH/VNC guide.
Where to compare regions and pricing?