Experimental Cloudflare

Moltworker

MoltBot on the Edge

Moltworker brings MoltBot to Cloudflare's global edge network. Deploy your personal AI agent without managing servers - Workers handle compute, R2 provides storage, AI Gateway manages model access, and Sandboxes ensure secure code execution. It's the fully-managed, always-on way to run your AI assistant.

Architecture Overview

How Moltworker leverages Cloudflare's platform

👤

User

💬

Telegram/Discord

Worker

🔒

Sandbox

🧠

AI Gateway

Cloudflare Workers

The entry point Worker acts as an API router, handling incoming requests and proxying between Cloudflare's API and the isolated sandbox environment where MoltBot runs.

🔒

Sandboxes SDK

Code from AI agents runs in isolated sandbox containers, ensuring security. The sandbox executes the standard MoltBot gateway runtime in a controlled environment.

📦

R2 Object Storage

Persistent storage for sessions, configurations, and data. R2 provides S3-compatible storage without egress fees, keeping your MoltBot state across restarts.

🧠

AI Gateway

Unified management for AI model access. Monitor usage, set rate limits, cache responses, and switch between providers - all through a single configuration point.

Key Features

Why run MoltBot on Cloudflare

🌍

Global Edge Deployment

Your AI runs on Cloudflare's network of 300+ data centers worldwide. Low latency responses no matter where you or your users are located.

🔄

Always On

No servers to manage or keep running. Moltworker is serverless - it's available 24/7 without you maintaining any infrastructure.

🔐

Zero Trust Security

Cloudflare Access protects your deployment with identity-based authentication. Control exactly who can interact with your AI agent.

🌐

Browser Rendering

Full browser automation capabilities through Cloudflare's Browser Rendering. Let your AI browse the web, fill forms, and capture screenshots.

💬

Multi-Channel Support

Connect Telegram, Discord, Slack, and other messaging platforms. Includes a web-based chat interface for direct interaction.

📊

Built-in Analytics

Monitor usage, track costs, and debug issues through Cloudflare's dashboard. Full visibility into your AI agent's operations.

Pricing

Cost-effective AI hosting

Cloudflare Workers Paid

$5/month

Minimum plan required. Additional usage charges may apply based on Workers requests, R2 storage, and AI Gateway calls.

Deployment

Get Moltworker running on your Cloudflare account

1

Clone the Repository

Get the Moltworker source code:

git clone https://github.com/cloudflare/moltworker.git
cd moltworker
2

Install Dependencies

Install the required packages:

npm install
3

Configure Secrets

Set your API keys using Wrangler:

npx wrangler secret put ANTHROPIC_API_KEY
npx wrangler secret put MOLTBOT_GATEWAY_TOKEN
4

Deploy to Cloudflare

Deploy Moltworker to your account:

npm run deploy

Evaluation

Balanced assessment of Moltworker

Advantages

  • Fully managed, no servers to maintain
  • Global edge deployment for low latency
  • Scalable and always available
  • Integrated security with Zero Trust
  • Cost-effective for personal use
  • Uses Cloudflare's robust infrastructure

Considerations

  • Requires paid Cloudflare Workers plan
  • Learning curve for Cloudflare ecosystem
  • Experimental/proof-of-concept stage
  • Not an official Cloudflare product
  • Less control than self-hosted solutions

Technical Details

Platform specifications

Platform
Cloudflare
Status
Experimental
Release
Jan 2026
License
Apache 2.0

Related Ecosystem Products

Other deployment and integration options

Deploy MoltBot to the Edge

Run your AI agent on Cloudflare's global network