Hands-On Lab
Deploy OpenClaw AI Gateway
Deploy OpenClaw on Cloudflare Containers with Workers AI, R2 persistence, and admin dashboard.
openclaw-cf-demo-r2
View on GitHubOpenClaw AI Gateway running on Cloudflare Containers, powered by Workers AI (Kimi K2.5) via AI Gateway — with R2-backed persistence and a built-in admin dashboard.
One-Click Deploy
Deploy to Cloudflare's global network instantly
Workers AI
Kimi K2.5 via AI Gateway, no external keys
R2 Persistence
Device approvals & chat history survive restarts
Admin Dashboard
Stats, device management & CLI terminal
Auto-Onboarding
Self-configures on startup with R2 restore
Architecture
Browser ──► Cloudflare Worker ──► Container (OpenClaw Gateway)
│
├── /admin/ Admin Dashboard (HTML)
├── /admin/api/* Management Server (:18700)
├── /persist/* R2 Persistence Endpoints
├── /openai/v1/* AI Gateway Proxy → Workers AI
└── /* OpenClaw Control UI (:18789) Choose Your Deployment Path
Troubleshooting
Container takes too long to start
The first start can take 1-2 minutes as the container image is pulled. Subsequent starts are faster. If it takes more than 3 minutes, try refreshing.
"Unauthorized" error on Control UI
Make sure you're using the correct gateway token in the URL. Check your
.dev.vars file for the GATEWAY_AUTH_TOKEN value.Devices not showing in Admin Dashboard
The devices list caches every 30s. Click Refresh in the Devices tab for a fresh read. If still not showing, check
/persist/status endpoint and verify R2 bucket name in wrangler.toml matches your actual bucket.wrangler login fails
Try running
wrangler login --browser or clear existing credentials with wrangler logout first. On corporate networks, you may need to configure proxy settings.