moltworker: Run OpenClaw on Cloudflare Workers

Deploy the open-source personal AI assistant OpenClaw into a Cloudflare Sandbox container for a fully managed, always-on multi-platform chat assistant.

Stars
★ 9.9k
Last updated
8mo ago
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
TypeScript

At a glance

How it runs
Self-hosted serviceWeb app
Works with
Platform-specific
Cost
Free software; you pay for model usage
Pricing
- [Workers Paid plan](https://www.cloudflare.com/plans/developer-platform/) ($5 USD/month) — required for Cloudflare Sandbox containers. | **Total** | | | | | **~$34.50/mo** | per README
Models
Anthropic (Claude) per README Compare model cost & benchmarks →
Safety controls
Docker container isolation per README
Setup effort
High · needs real infrastructure
You'll need
Node.jsnpmCloudflare Workers Paid planShell / CLINetwork access
Typical use
Cloudflare users who want to deploy a personal AI assistant on Cloudflare's infrastructure without managing a server.
Not a fit if
  • Users unwilling to commit to Cloudflare's paid plan and containers
  • Anyone needing low-latency, instant responses
Website
blog.cloudflare.com ↗ set on GitHub
Maintenance
No commits for 6+ monthslast commit 2026-03-29

What does this agent do, and when should you use it?

moltworker is a proof-of-concept that packages OpenClaw (formerly Moltbot/Clawdbot), a personal AI assistant, into a Cloudflare Sandbox container and exposes it via Cloudflare Workers. It leverages Cloudflare's infrastructure to provide a fully managed runtime, eliminating the need to self-host a server. Core components include the Cloudflare container (running the OpenClaw gateway), a Cloudflare Access-protected admin UI (/_admin/) for device pairing and management, and optional R2 object storage for persisting configuration and conversation history. Deployment requires a Workers Paid plan ($5/month) and an Anthropic API key (or AI Gateway with Unified Billing). The project provides detailed setup scripts, a secret reference, and cost estimates, and supports Telegram, Discord, Slack channels plus browser automation through a CDP shim. It is explicitly marked experimental, not officially supported, and may break without notice.

Packages OpenClaw into a Cloudflare Sandbox container (standard-1 instance: 1/2 vCPU, 4 GiB memory, 8 GB disk) and routes requests through Workers. It sets secrets via npx wrangler secret put, including ANTHROPIC_API_KEY (or CLOUDFLARE_AI_GATEWAY_API_KEY etc.) and MOLTBOT_GATEWAY_TOKEN. After deployment, it provides a Control UI at https://your-worker.workers.dev/?token=YOUR_GATEWAY_TOKEN and an admin UI at /_admin/ for device pairing (protected by Cloudflare Access). It supports Telegram, Discord, and Slack channels by setting respective bot tokens. Optional R2 storage (set R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, CF_ACCOUNT_ID) provides persistence across container restarts, with automatic backups every 5 minutes. Browser automation is enabled through a CDP shim: after setting CDP_SECRET and WORKER_URL, endpoints like /cdp/json/version, /cdp/json/list, /cdp/json/new, and WS /cdp/devtools/browser/{id} are available, with pre-installed scripts screenshot.js and video.js for capturing screenshots and videos. AI Gateway integration routes requests through the gateway to providers like Anthropic, OpenAI, or Workers AI. Debug endpoints /debug/processes, /debug/logs, etc. are available when DEBUG_ROUTES=true.

  1. Cloudflare users who want to deploy a personal AI assistant on Cloudflare's infrastructure without managing a server.
  2. Teams or individuals who want to use Telegram, Discord, or Slack as chat interfaces, with secure device pairing approval.
  3. Developers needing browser automation capabilities via Chrome DevTools Protocol (CDP) for tasks like screenshotting and video generation, integrated as OpenClaw skills.
  4. Deployers who want persistent storage of conversation history and paired devices using R2, surviving container restarts.
  5. Developers who want unified AI gateway for API routing, analytics, and cost tracking, especially with Workers AI Unified Billing.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npx wrangler secret put ANTHROPIC_API_KEY
  • npx wrangler secret put MOLTBOT_GATEWAY_TOKEN
Environment variables
ANTHROPIC_API_KEY CLOUDFLARE_AI_GATEWAY_API_KEY CF_AI_GATEWAY_ACCOUNT_ID CF_AI_GATEWAY_GATEWAY_ID MOLTBOT_GATEWAY_TOKEN CDP_SECRET

How do you install or deploy this agent?

  1. Enable a Cloudflare Workers Paid plan ($5/month). 2. Clone the repository and run npm install. 3. Set secrets: npx wrangler secret put ANTHROPIC_API_KEY (or the three AI Gateway secrets: CLOUDFLARE_AI_GATEWAY_API_KEY, CF_AI_GATEWAY_ACCOUNT_ID, CF_AI_GATEWAY_GATEWAY_ID). 4. Generate a gateway token: export MOLTBOT_GATEWAY_TOKEN=$(openssl rand -hex 32), then npx wrangler secret put MOLTBOT_GATEWAY_TOKEN. 5. Run npm run deploy. Requires a Cloudflare account with Containers enabled in the dashboard.

How do you use this agent?

After deployment, access the Control UI with the gateway token: https://your-worker.workers.dev/?token=YOUR_GATEWAY_TOKEN. The first request may take 1-2 minutes. You MUST first set up Cloudflare Access (set CF_ACCESS_TEAM_DOMAIN and CF_ACCESS_AUD) to protect /_admin/, then pair your device via the admin UI to start using. Optionally, set R2 secrets for persistence, and configure SANDBOX_SLEEP_AFTER=10m to reduce costs. To add chat channels, set the respective bot tokens and redeploy. For browser automation, set CDP_SECRET and WORKER_URL, then use the /cdp/ endpoints.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

README-backed isolation & workflow protocols

Isolation & controls
Docker container isolation

What are this agent's strengths and limitations?

Pros
  • Leverages Cloudflare's managed container runtime for a fully managed, always-on personal assistant without self-hosting.
  • Device pairing with explicit approval provides strong security for the admin UI and API.
  • Optional R2 persistence retains configuration, paired devices, and conversation history across restarts.
  • Native support for Cloudflare AI Gateway offers caching, rate limiting, analytics, and unified billing.
  • Pre-built CDP shim and scripts enable browser automation (screenshots and video generation).
Limitations
  • Experimental project: not officially supported, may break without notice, and changes are not guaranteed to be backward-compatible.
  • Platform lock-in: core operation depends on Cloudflare Workers Paid plan, Sandbox containers, and specific secrets; migration to other platforms is difficult.
  • Ongoing costs are relatively high: approximately $34.50/month with 24/7 operation (including $5 plan fee), requiring careful use of SANDBOX_SLEEP_AFTER.
  • Configuration is complex: involves multiple secrets (at least 3-5) and administrators must set up Cloudflare Access.
  • Cold start latency: first request waits 1-2 minutes, not suitable for low-latency interactions.
  • Known issue on Windows: CRLF line endings cause shell script failure (exit code 126), requiring Git line-ending configuration.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
moltworker: Run OpenClaw on Cloudflare Workers This agent 57 · Major gaps Self-hosted serviceFree + model costs ★ 9.9k 8mo ago TypeScript —
Cloudflare Vibe SDK 61 · Some gaps Self-hosted serviceFree + model costs ★ 5.5k 1mo ago TypeScript —
CORE Personal AI OS 40 · Major gaps CLIFree + model costs ★ 2k 5d ago TypeScript Codex · Claude Code
MisakaNet Failure-Memory Library 74 · Some gaps MCP serverFree ★ 568 today Python ChatGPT · Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
57/ 100 5-point scale 2.9 / 5
Trust 13/29
Reliability 6/14
Adaptability 12/18
Convention 12/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust13 / 29 · 2.2/5

The README says Cloudflare Access protects the admin UI, devices require pairing approval, and remote access requires a gateway token; these provide an ordinary-use confirmation path (user_confirmation=2). It describes provider keys passing through AI Gateway, R2 storing configuration and conversations, CDP using a shared secret, and the code includes request-parameter redaction (data_flow_transparency=2). However, `DEV_MODE=true` bypasses both Access and pairing, tokens are passed in URL query parameters, R2 needs read/write credentials, and CDP authenticates via a query parameter; least-privilege and sensitive-data guidance is limited (least_privilege=1, sensitive_data_handling=1). Dependencies have version ranges and CI installation, but the packet provides no audit, lockfile, or vulnerability-mitigation evidence (dependency_security=1). The product connects to external AI providers, chat platforms, R2, and browser automation; setup is documented but action approval and impact controls are not. R2 supports manual backups and the container can restart, but there is no clear recovery/rollback procedure (external_effects=1, rollback=1). The README and code identify OpenClaw and Cloudflare services and explain the wrapper's role; publisher identity remains unknown and is not inferred (source_attribution=2).

Reliability6 / 14 · 2.1/5

README, AGENTS.md, package metadata, and code mix OpenClaw/Moltbot/Clawdbot naming; the README says a gateway token is required while a code comment calls it optional, weakening consistency (self_consistency=1). Dependencies are installed through npm and Cloudflare services, and CI specifies Node 22 and install steps, but cloud services and upstream model/API availability remain prerequisites that the packet does not verify (dependency_availability=1). The code provides HTML/JSON 503 responses for missing configuration and transforms token/pairing errors; the README covers cold starts, WebSocket and R2 troubleshooting, giving useful but incomplete failure guidance (failure_messages=2).

Adaptability12 / 18 · 3.3/5

The stated goal is deploying a personal OpenClaw assistant to Cloudflare Sandbox. The README lists Control UI, Telegram/Discord/Slack, pairing, persistence, and model/provider choices, explaining audience and use cases (audience_and_scenarios=2). It distinguishes admin, gateway, debug, and CDP endpoints and marks DEV_MODE as local-development-only with debug behind a flag (capability_boundaries=2). The browser skill says to use it when browser automation is needed and CDP is configured, and lists screenshot, navigation, and video tasks (trigger_precision=2). The target environment is explicit: Workers Paid and Cloudflare Sandbox, with install, secrets, and local/production differences documented (environment_fit=2).

Convention12 / 18 · 3.3/5

The README is organized around requirements, quick start, authentication, storage, optional capabilities, security, and troubleshooting; AGENTS.md separates contributor guidance, though naming in the packet is inconsistent (information_architecture=2). Quick start, Cloudflare Access, R2, CDP, AI Gateway, and local-development steps include concrete commands (install_notes=3). Package name and legacy variables remain moltbot/MOLTBOT while README and code use OpenClaw; AGENTS.md describes migration compatibility, but naming stability is weak (naming_stability=1). There are task examples, configuration tables, and troubleshooting entries, but no broader standalone FAQ (examples_and_faq=2). The README explicitly calls the project experimental and unsupported, and documents cold starts, Windows line endings, local WebSocket limits, and R2 behavior (known_limitations=3). The LICENSE text is Apache 2.0 and package metadata agrees (license=3). The packet has no clear release history or changelog (versioning_changelog=1). The README says support is unofficial and may change without notice, but names no maintainer or support/update path; the author field is empty (maintenance_responsibility=1).

Effectiveness9 / 13 · 3.5/5

The product provides a web console, chat-platform connections, device pairing, persistence, and browser automation, forming a usable personal-assistant deployment interface; this is based on static description, not execution (output_usability=2). It connects the OpenClaw gateway with Worker, Sandbox, Access, R2, and Browser Rendering, offering managed-deployment value, though the packet's claims do not establish runtime outcomes (marginal_value=2). The README estimates about $34.50/month for an always-on deployment and explains sleep-based savings and cold-start tradeoffs, supporting cost decisions while actual usage may differ (cost_benefit=2).

Verifiability5 / 8 · 3.1/5

README claims about deployment, secrets, routes, and costs can be partly traced to configuration/code descriptions; the main-source excerpt is incomplete, so the score is moderate (claim_traceability=2). README, AGENTS.md, package metadata, CI workflow, and main code corroborate deployment, environment variables, authentication, and check procedures, but they do not independently confirm runtime results (cross_source_corroboration=2). The documentation labels costs approximate, the project experimental, and several capabilities optional, distinguishing facts from estimates and limitations reasonably well, though the evidence remains static (fact_inference_separation=2).

Risks and how to mitigate them
  • The project is explicitly experimental and unsupported; deployments incur ongoing container costs and may have long cold starts after sleeping.
  • Gateway and CDP secrets are passed in URL query parameters; use DEV_MODE only for local development because it bypasses Access and device pairing.
  • R2 stores configuration, paired devices, and conversation history; understand the persistence scope and recovery plan before configuring its credentials.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 7b00c1d72921
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/moltworker.svg)](https://followagents.com/en/agents/moltworker)
<a href="https://followagents.com/en/agents/moltworker"><img src="https://followagents.com/badge/moltworker.svg" alt="FARS review"></a>

FAQ

How much does it cost to run this project?
You need a Workers Paid plan ($5/month) plus container compute costs. Running 24/7 costs approximately $34.50/month; configuring SANDBOX_SLEEP_AFTER (e.g., 10m) lets the container sleep, and running 4 hours/day costs roughly $5-6/month on top of the plan fee.
Which API keys are required?
At minimum, an Anthropic API key (ANTHROPIC_API_KEY) or an AI Gateway configuration (CLOUDFLARE_AI_GATEWAY_API_KEY + CF_AI_GATEWAY_ACCOUNT_ID + CF_AI_GATEWAY_GATEWAY_ID). If using Telegram, Discord, or Slack channels, you also need the respective bot tokens.
Will my conversation history and paired devices be lost on container restart?
By default, yes, because storage is ephemeral. To persist, configure R2 storage secrets (R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, CF_ACCOUNT_ID), which enables automatic backups every 5 minutes and restoration on restart.
Why can't I access the Control UI after deployment?
You must complete two steps: 1) Set up Cloudflare Access to protect /_admin/ (requires setting CF_ACCESS_TEAM_DOMAIN and CF_ACCESS_AUD), and 2) Pair your device via the admin UI. Also ensure the gateway token is passed correctly (?token= parameter).
Can this be developed locally?
Yes, but with caveats: wrangler dev has limitations with WebSocket proxying, so WebSocket connections may fail; R2 mounting only works in production. For local development, set DEV_MODE=true in .dev.vars to skip Cloudflare Access and device pairing, but this is only for local development.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts