MOLTWORKER is presented as a middleware that lets Moltbot, the open-source self-hosted AI agent, run on Cloudflare’s Sandbox SDK and Developer Platform APIs, rather than on dedicated Mac minis. The setup uses a entrypoint API router and a proxy between Cloudflare APIs and an isolated environment, protected by Cloudflare Access, with an admin UI and connection to a Sandbox container where Moltbot’s gateway runtime and integrations run, using R2 for persistent storage.
The article explains how Moltbot can leverage Cloudflare AI Gateway, BYOK support, and Unified Billing to manage provider secrets and credits, enabling model switching in gateway configuration without redeploying. It also highlights Sandbox SDK’s developer-friendly APIs for secure code execution, and notes that most logic runs in a container, with Browser Rendering and Puppeteer/Playwright support for browser automation.
The piece includes a takeaway that Moltworker is a proof of concept, available at github[.]com/cloudflare/moltworker, and requires a Cloudflare account and a minimum $5 USD Workers paid plan to use Sandbox Containers.