🎨PaaS

Self-Host OpenClaw on Render

Deploy OpenClaw on Render with one click using the Blueprint system. Free tier available for testing, paid plans for persistent personal or production use.

Difficulty: beginnerTime: ~10 minCost: free-$7/mo

Self-Host OpenClaw on Render

Render provides the fastest path to a hosted OpenClaw instance. Using Render Blueprints, you can deploy directly from the repository with a single click. Render handles the Docker build, persistent storage, TLS certificates, and health monitoring. This guide covers everything from the initial deploy through production hardening.

Quick Path

For developers who have used Render before:

  1. Fork the OpenClaw repository on GitHub
  2. Click "New Blueprint Instance" in your Render dashboard
  3. Connect your fork and select the render.yaml file
  4. Set the ANTHROPIC_API_KEY environment variable
  5. Deploy — Render auto-generates the gateway token
  6. Access your instance at https://your-service.onrender.com/

Prerequisites

How the Blueprint Works

The OpenClaw repository includes a render.yaml file that defines the entire deployment:

services:
  - type: web
    name: openclaw
    runtime: docker
    plan: starter
    healthCheckPath: /health
    disk:
      name: openclaw-data
      mountPath: /data
      sizeGB: 1
    envVars:
      - key: OPENCLAW_GATEWAY_TOKEN
        generateValue: true
      - key: ANTHROPIC_API_KEY
        sync: false
      - key: OPENCLAW_GATEWAY_BIND
        value: "0.0.0.0"
      - key: OPENCLAW_GATEWAY_PORT
        value: "18789"
      - key: XDG_CONFIG_HOME
        value: /home/node/.openclaw

When you create a Blueprint instance, Render reads this file and automatically provisions:

Step-by-Step Deployment

Fork the Repository

Go to the OpenClaw GitHub repository and click "Fork" to create your own copy. This lets you customize configuration files and receive upstream updates.

Create the Blueprint Instance

In the Render dashboard:

  1. Click New and then Blueprint
  2. Connect your GitHub account if you have not already
  3. Select your forked OpenClaw repository
  4. Render detects the render.yaml automatically

Set Environment Variables

Render prompts you for any variables marked sync: false. Enter your LLM provider API key:

VariableValue
ANTHROPIC_API_KEYYour Anthropic API key (sk-ant-...)

The OPENCLAW_GATEWAY_TOKEN is generated automatically. You can view it later in the service's Environment tab.

Deploy

Click Apply to start the deployment. Render builds the Docker image, provisions the disk, and starts the service. The first build takes 3-5 minutes. Subsequent deploys from git pushes are faster due to layer caching.

Access Your Instance

Once the deploy completes and the health check passes, your instance is live at:

https://openclaw-xxxx.onrender.com/

Find the exact URL in the service's header bar in the Render dashboard. Use the auto-generated gateway token (from the Environment tab) to authenticate.

Plan Comparison

FeatureFreeStarter ($7/mo)Standard ($25/mo)
Persistent diskNo1GB included1GB+ included
Always runningNo (spins down after 15 min)YesYes
Custom domainYesYesYes
Auto TLSYesYesYes
Disk snapshotsNoNoDaily
RAM512MB512MB2GB
CPUSharedSharedDedicated
Best forTesting/evaluationPersonal useTeam/production

The free tier has two important limitations: the service stops after 15 minutes of inactivity (cold starts take 30-60 seconds), and there is no persistent disk, so all workspace data is lost on every restart.

Dashboard Features

Logs

The Render dashboard streams live logs from your service. Use the log viewer to debug startup issues, monitor agent activity, and track API requests. Logs are retained for 7 days on paid plans.

Shell Access

Render provides a web-based shell into your running service. Click Shell in the dashboard to open a terminal session inside the container. This is useful for inspecting configuration files, checking disk usage, or running ad-hoc commands.

Environment Variables

Add, edit, or remove environment variables from the Environment tab. Changes trigger an automatic redeploy. To add another model provider:

  1. Go to the Environment tab
  2. Click Add Environment Variable
  3. Set the key (e.g., OPENAI_API_KEY) and value
  4. Save — the service redeploys automatically

Custom Domains

On any plan, you can attach a custom domain:

  1. Go to Settings and scroll to Custom Domains
  2. Add your domain (e.g., openclaw.yourdomain.com)
  3. Update your DNS with the CNAME record Render provides
  4. Render provisions a TLS certificate automatically (typically within minutes)

Backups

On Standard plans and above, Render takes daily snapshots of your persistent disk. You can restore from a snapshot through the dashboard. On lower plans, implement your own backup strategy by periodically pushing workspace data to a git repository.

Scaling

Vertical Scaling

Upgrading your plan (e.g., from Starter to Standard) increases available RAM and CPU. This is the simplest way to improve performance and is done with zero downtime through the dashboard.

Horizontal Scaling

Running multiple instances of OpenClaw requires sticky sessions because the agent stores session state on the local persistent disk. Render supports sticky sessions via the X-Render-Origin-Server header, but this configuration is non-trivial. For most use cases, a single well-resourced instance is the better choice.

Security Best Practices

Troubleshooting

Service fails to start

Check the deploy logs in the Render dashboard. Common causes:

Slow cold starts on the free tier

Free-tier services spin down after 15 minutes of inactivity. The next request triggers a cold start that takes 30-60 seconds while the container boots and the application initializes. This is expected behavior. Upgrade to a paid plan to keep the service running continuously.

Data loss on the free tier

The free tier does not include a persistent disk. All files written during a session are lost when the service restarts. This includes workspace data, conversation history, and configuration changes made at runtime. Use the Starter plan or above for persistent storage.

Deploy succeeds but service is unreachable

Verify the gateway is binding to 0.0.0.0 (not 127.0.0.1). Render routes external traffic to your container, which must listen on all interfaces. The render.yaml sets this correctly, but if you override it through an environment variable, the service becomes unreachable.

Out of disk space

Check disk usage from the Shell tab:

df -h /data

If the disk is full, delete old workspace files or upgrade to a larger disk through the Render dashboard. You can resize the disk without redeploying.

Updating OpenClaw

When a new version of OpenClaw is released:

  1. Sync your fork with the upstream repository
  2. Render detects the new commit and triggers an automatic deploy (if auto-deploy is enabled)
  3. Alternatively, click Manual Deploy in the dashboard

Your persistent disk data survives redeploys, so workspace files and configuration remain intact.

Frequently Asked Questions

Is the free tier enough to use OpenClaw day-to-day?

The free tier is suitable for testing and evaluation only. Services spin down after 15 minutes of inactivity and lose all data on restart because there is no persistent disk. For regular use, the Starter plan at $7/month keeps the service running and adds a persistent disk.

Can I use a custom domain with OpenClaw on Render?

Yes. Render supports custom domains with automatic TLS certificates on all paid plans. Add your domain in the Render dashboard under your service's Settings tab and update your DNS records.

How do I keep my OpenClaw data safe on Render?

Use a paid plan with a persistent disk. Render also supports daily disk snapshots on Standard plans and above. You can additionally back up your workspace by periodically copying critical files to a git repository or external storage.

Will OpenClaw work with Render's auto-scaling?

Vertical scaling (upgrading to a larger instance) works seamlessly. Horizontal scaling (multiple instances) requires sticky sessions because OpenClaw stores session state on the local persistent disk. For most individual and small-team use, a single instance is sufficient.

SuperBuilder

Prefer a managed experience?

SuperBuilder runs OpenClaw with zero setup — cloud execution, cost tracking, and team collaboration built in.

Try SuperBuilder Free