Install OpenClaw on Cloudflare
Use Cloudflare Tunnel to give your OpenClaw instance a public URL—without opening ports on your router.
Perfect for home servers and laptops where you still want OpenClaw to talk to external services or webhooks.
Step 1 – Create a Cloudflare Tunnel
- Log in to the Cloudflare Dashboard.
- Select your domain, then go to Zero Trust → Tunnels.
- Create a new tunnel, give it a name (e.g.
openclaw).
Step 2 – Install cloudflared
On the machine where OpenClaw runs, install cloudflared. Cloudflare provides commands per OS in the dashboard; a common Linux example is:
curl -fsSL https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/install-cloudflared.sh | bash
Step 3 – Point the tunnel at OpenClaw
In the tunnel configuration, create a route that forwards traffic from a hostname (e.g. claw.yourdomain.com) to your OpenClaw instance.
For example, if OpenClaw listens on http://localhost:3000:
- Hostname:
claw.yourdomain.com - Service:
http://localhost:3000
Step 4 – Start the tunnel
Run cloudflared with the generated configuration (Cloudflare provides the exact command in the dashboard). Once it’s running:
- Open
https://claw.yourdomain.comin your browser. - Verify that you can reach your OpenClaw UI / health endpoint.
Step 5 – Hook this URL into OpenClaw
Use this public URL wherever OpenClaw or its skills need an externally reachable endpoint—webhooks, integrations, or callbacks.
If requests fail or you see 403 / 502 errors, check both the Cloudflare dashboard and your local OpenClaw logs, then visit the Troubleshoot Center for common issues.