Introducing Moltworker: a self-hosted personal AI agent, minus the minis
2026-01-29
12 min read
0
by Celso Martinho
Endigest AI Core Summary
This post introduces Moltworker, a middleware solution that enables running Moltbot (a self-hosted personal AI agent) on Cloudflare's infrastructure without dedicated hardware.
- •Moltworker uses Cloudflare Sandboxes (built on Containers) to run Moltbot's runtime in isolated environments, with the Sandbox SDK managing container lifecycle and file systems
- •R2 object storage is mounted as a filesystem partition via sandbox.mountBucket() to provide persistent storage across ephemeral container lifecycles
- •Browser Rendering API replaces local Chromium instances, with a CDP proxy bridging the Sandbox container to Cloudflare's headless browser service supporting Puppeteer and Playwright
- •AI Gateway acts as a proxy to AI providers (e.g., Anthropic), enabling centralized secret management, model switching, and Unified Billing without code changes
- •Cloudflare's growing Node.js compatibility (only 1.5% of top 1,000 NPM packages unsupported) makes it feasible to run complex agent logic directl
Tags:
#AI
#Agents
#Cloudflare Workers
#Containers
#Sandbox
