AprilLabs/moltbot-sandbox
OpenClaw personal AI assistant running on Cloudflare Workers. Experimental TypeScript project with multi-platform chat, device pairing & edge deployment.
Originally published:
OpenClaw on Cloudflare Workers: A Personal AI Assistant in the Cloud
The moltbot-sandbox project by AprilLabs represents an experimental deployment of OpenClaw (formerly Moltbot, formerly Clawdbot) as a personal AI assistant running entirely within Cloudflare's serverless infrastructure. This proof-of-concept demonstrates how modern edge computing platforms can host sophisticated AI agents without traditional server management.
While clearly marked as experimental and unsupported, this TypeScript-based project showcases an innovative approach to deploying AI assistants with minimal operational overhead. It's particularly interesting for developers exploring cloudflare-workers deployment patterns or building personal-ai-assistant solutions.
Key Features and Capabilities
OpenClaw brings a comprehensive feature set to the Cloudflare Workers environment:
- Gateway Architecture: A centralized control point that connects to multiple chat platforms including Telegram, Discord, and Slack
- Web-Based Control UI: Browser-accessible chat interface for direct interaction with the AI assistant
- Device Pairing Security: Explicit approval workflow requiring authentication before devices can communicate with the assistant
- Persistent Conversations: Chat history and context maintained across sessions when R2 storage is configured
- Extensible Agent Runtime: Modular architecture supporting custom skills and workspace integrations
- Cloudflare Access Integration: Built-in authentication using Cloudflare's Zero Trust platform
The project includes browser automation capabilities through Cloudflare's Browser Rendering service, enabling the assistant to interact with web content programmatically. Optional AI Gateway integration provides request routing, analytics, and unified billing for API calls.
Installation and Setup Process
Deploying moltbot-sandbox requires a Cloudflare Workers Paid plan ($5/month) to access Sandbox container functionality. The setup process involves several steps:
First, developers configure API credentials—either a direct Anthropic API key for Claude access or Cloudflare AI Gateway credentials for managed billing. A critical security step generates a gateway token using OpenSSL, which protects remote access to the Control UI.
The deployment itself uses standard npm workflows with Wrangler, Cloudflare's CLI tool. However, initial setup extends beyond simple deployment. Administrators must configure Cloudflare Access to protect the admin UI at /_admin/, then pair devices through this interface before the assistant becomes fully operational.
The documentation provides clear guidance on enabling Cloudflare Access on workers.dev domains, including copying Application Audience (AUD) tags and team domain settings. While some Cloudflare dashboard links may 404 (a noted issue), the overall process is well-documented for developers familiar with cloudflare-infrastructure tooling.
Technical Stack Analysis
The project leverages TypeScript throughout, with configuration files indicating modern development practices:
- Build Tools: Vite for development and bundling, with separate configuration for Vitest unit testing
- Code Quality: Oxlint and Oxfmt configurations suggest attention to code standards
- Container Runtime: Dockerfile present for Cloudflare Sandbox deployment using standard-1 instances (1/2 vCPU, 4GB memory, 8GB disk)
- Testing: End-to-end test structure in
test/e2edirectory indicates comprehensive testing approach - Skills Architecture: Dedicated
skills/cloudflare-browserdirectory suggests modular capability extensions
The repository structure reveals thoughtful organization with separate directories for assets, public files, source code, and skills. The presence of AGENTS.md and CONTRIBUTING.md files indicates documentation for both usage and development contribution.
Cost Considerations
The project provides transparent cost estimates for 24/7 operation. Running a standard-1 container continuously costs approximately $34.50/month, broken down as $26 for memory (4GB provisioned), $2 for CPU (at 10% utilization), $1.50 for disk, plus the $5 Workers plan fee.
Importantly, CPU billing only charges for active usage, not provisioned capacity. The documentation recommends configuring SANDBOX_SLEEP_AFTER to reduce costs during idle periods—a container running just 4 hours daily would cost only $5-6/month in compute resources plus the base plan fee.
For lighter workloads, alternative instance types like 'lite' (256MB RAM) offer lower costs, while 'standard-4' (12GB RAM) supports heavier processing needs. This flexibility makes the platform cost-optimization suitable for various use cases.
Community and Development Status
As of February 2026, the repository shows minimal community engagement with 0 stars, 0 forks, and 0 open issues. The project was last updated on February 7, 2026, indicating very recent development activity. Licensed under Apache-2.0, it's fully open-source and available for modification.
The lack of GitHub topics and minimal metadata suggests this is truly in experimental proof-of-concept stage. Developers should approach with appropriate caution, understanding that breaking changes may occur without notice.
Comparison with Alternatives
Unlike traditional self-hosted AI assistants requiring dedicated servers or VPS infrastructure, moltbot-sandbox embraces serverless architecture. This contrasts with projects like langchain-agents or standalone chatbot frameworks that assume persistent server environments.
The Cloudflare Workers deployment model offers unique advantages: global edge distribution, automatic scaling, and managed infrastructure. However, the container-based approach incurs ongoing costs that may exceed traditional VPS hosting for always-on scenarios.
Compared to managed AI assistant platforms, this project provides complete control and customization at the expense of operational responsibility. It occupies an interesting middle ground—more managed than pure self-hosting, more flexible than SaaS solutions.
Final Assessment
AprilLabs' moltbot-sandbox successfully demonstrates that sophisticated AI assistants can run on edge computing platforms. While the experimental status and minimal community engagement suggest caution for production use, the project offers valuable insights for developers exploring serverless-ai-deployment patterns. The comprehensive documentation, transparent cost modeling, and thoughtful architecture make it a worthwhile reference implementation despite its early-stage maturity.
Original Source
https://github.com/AprilLabs/moltbot-sandbox
Last updated: