OpenClaw·Intermediate·Last tested: 2026-03·~12 min read
Deployment
This guide covers deploying OpenClaw on your own infrastructure, running it as a system daemon, and planning for growth.
Recommended Topology
The simplest production deployment is a single server running the OpenClaw Gateway with all agents:
Your Server (Ubuntu / Linux)
├── OpenClaw Gateway (:18789)
│ ├── coordinator agent
│ ├── dev-agent (Docker sandboxed)
│ ├── product-agent
│ └── risk-agent
├── Tailscale / SSH tunnel → remote access
├── Database (read-only replica) → for agent queries
└── systemd service → auto-restart, logging
Installation
Install OpenClaw as a systemd daemon:
openclaw onboard --install-daemon
This sets up:
- Auto-restart on failure
- System logging via journald
- Automatic startup on boot
Starting the Gateway
openclaw gateway --port 18789
Or, if installed as a daemon:
systemctl start openclaw
systemctl status openclaw
Remote Access
If your server is in a local datacenter or behind a firewall, use Tailscale Serve or an SSH tunnel with token auth for remote access.
Tip
Tailscale provides zero-config VPN access with built-in auth. It's the simplest way to securely access your OpenClaw gateway from anywhere.
Health Checks
# Full system health check
openclaw doctor
# Check all channel connections
openclaw channels status --probe
# Verify agent routing
openclaw agents list --bindings
Scaling Considerations
When to Stay on a Single Server
A single server handles most use cases well:
- Up to 5–10 agents
- Moderate message volume
- Team of 10–50 users
When to Consider Scaling
- Token costs exceeding your budget on the current setup
- Uptime requirements beyond what a single server provides
- Need for geographic distribution
Scaling Options
- Dedicated VPS — Some cloud providers offer one-click OpenClaw deploys for straightforward scaling
- Load-balanced gateways — Multiple gateway instances behind a load balancer (advanced)
- Separate gateways per team — If teams are fully independent, separate installations may be simpler
Phased Rollout
Start Small
Start with one agent, add incrementally. Coordination complexity is the primary challenge in multi-agent deployments.
Phase 1: Foundation (Weeks 1–2)
- Install OpenClaw on your server
- Set up a single coordinator agent
- Connect to one messaging platform
- Write
SOUL.md,AGENTS.md,USER.md - Build a simple periodic workflow with
HEARTBEAT.md - Validate memory, sessions, and heartbeat behavior
Phase 2: Second Agent (Weeks 3–4)
- Add a specialist agent (e.g., engineering)
- Create its workspace with role-specific persona files
- Bind to the appropriate channel
- Enable Docker sandbox for code-executing agents
- Test workflows specific to that role
Phase 3: Full Team (Weeks 5–6)
- Add remaining specialist agents
- Create their workspaces and channel bindings
- Build custom skills (SQL runner, documentation writer, etc.)
- Test cross-agent data sharing via files
Phase 4: Orchestration (Weeks 7–8)
- Enable
sessions_spawnfor the coordinator agent - Build sub-agent workflows (weekly brief, analysis, monitoring)
- Set up cron jobs for automated reports
- Add additional agents if the team is ready
Phase 5: Ongoing Optimization
- Monitor token costs per agent
- Tune
HEARTBEAT.mdintervals - Iterate on workspace files based on real usage
- Expand skills from the ClawHub registry as needed