docs/install/render.mdx
Deploy OpenClaw on Render using Infrastructure as Code. The included render.yaml Blueprint defines your entire stack declaratively, service, disk, environment variables, so you can deploy with a single click and version your infrastructure alongside your code.
Clicking this link will:
render.yaml Blueprint at the root of this repo.Once deployed, your service URL follows the pattern https://<service-name>.onrender.com.
Render Blueprints are YAML files that define your infrastructure. The render.yaml in this
repository configures everything needed to run OpenClaw:
services:
- type: web
name: openclaw
runtime: docker
plan: starter
healthCheckPath: /health
envVars:
- key: OPENCLAW_GATEWAY_PORT
value: "8080"
- key: OPENCLAW_STATE_DIR
value: /data/.openclaw
- key: OPENCLAW_WORKSPACE_DIR
value: /data/workspace
- key: OPENCLAW_GATEWAY_TOKEN
generateValue: true # auto-generates a secure token
disk:
name: openclaw-data
mountPath: /data
sizeGB: 1
Key Blueprint features used:
| Feature | Purpose |
|---|---|
runtime: docker | Builds from the repo's Dockerfile |
healthCheckPath | Render monitors /health and restarts unhealthy instances |
generateValue: true | Auto-generates a cryptographically secure value |
disk | Persistent storage that survives redeploys |
| Plan | Spin-down | Disk | Best for |
|---|---|---|---|
| Free | After 15 min idle | Not available | Testing, demos |
| Starter | Never | 1GB+ | Personal use, small teams |
| Standard+ | Never | 1GB+ | Production, multiple channels |
The Blueprint defaults to starter. To use free tier, change plan: free in
your fork's render.yaml (but note: no persistent disk means OpenClaw state
resets on each deploy).
The web dashboard is available at https://<your-service>.onrender.com/.
Connect using the configured shared secret. This deploy template auto-generates
OPENCLAW_GATEWAY_TOKEN (find it in Dashboard → your service →
Environment); if you replace it with password auth, use that password
instead.
View real-time logs in Dashboard → your service → Logs. Filter by:
For debugging, open a shell session via Dashboard → your service → Shell. The persistent disk is mounted at /data.
Modify variables in Dashboard → your service → Environment. Changes trigger an automatic redeploy.
If you use the original OpenClaw repository, Render will not auto-deploy your OpenClaw. To update it, run a manual Blueprint sync from the dashboard.
*.onrender.com)Render supports horizontal and vertical scaling:
For OpenClaw, vertical scaling is usually sufficient. Horizontal scaling requires sticky sessions or external state management.
Export your state, config, auth profiles, and workspace at any time using the shell access in the Render Dashboard:
openclaw backup create
This creates a portable backup archive with OpenClaw state plus any configured workspace. See Backup for details.
Check the deploy logs in the Render Dashboard. Common issues:
OPENCLAW_GATEWAY_TOKEN — verify it is set in Dashboard → EnvironmentOPENCLAW_GATEWAY_PORT=8080 is set so the gateway binds to the port Render expectsFree tier services spin down after 15 minutes of inactivity. The first request after spin-down takes a few seconds while the container starts. Upgrade to Starter plan for always-on.
This happens on free tier (no persistent disk). Upgrade to a paid plan, or
regularly export a full backup via openclaw backup create in the Render shell.
Render expects a 200 response from /health within 30 seconds. If builds succeed but deploys fail, the service may be taking too long to start. Check:
docker build && docker run