venturegit2026/moltbot-sandbox
OpenClaw AI assistant running on Cloudflare Workers. Experimental serverless deployment with multi-platform chat, device pairing, and persistent conversati
Originally published:
OpenClaw on Cloudflare Workers: Personal AI Assistant in the Cloud
The moltbot-sandbox project by venturegit2026 represents an experimental proof-of-concept that brings OpenClaw (formerly Moltbot, formerly Clawdbot) to Cloudflare's serverless infrastructure. This implementation demonstrates how a personal AI assistant can run entirely within Cloudflare Sandbox containers, eliminating the need for traditional self-hosting while leveraging Cloudflare's global edge network.
Released under the Apache-2.0 license and last updated in February 2026, this project targets developers seeking a managed, always-on AI assistant deployment. While marked as experimental and not officially supported, it showcases an innovative approach to running complex AI workloads on serverless infrastructure.
cloudflare workersKey Features and Architecture
OpenClaw is architected as a gateway-based personal AI assistant with several compelling capabilities:
- Control UI: A web-based chat interface accessible through the gateway for direct interaction
- Multi-channel Support: Native integration with Telegram, Discord, and Slack platforms
- Device Pairing: Secure authentication system requiring explicit approval via DM
- Persistent Conversations: Chat history and context maintained across sessions when R2 storage is enabled
- Agent Runtime: Extensible AI capabilities with workspace and skills framework
The Cloudflare Workers implementation packages OpenClaw to run in a standard-1 Sandbox container (1/2 vCPU, 4 GiB memory, 8 GB disk), utilizing Anthropic's Claude API for language model capabilities. Optionally, users can route requests through ai gateway for unified billing and analytics.
Security and Access Control
Security is implemented through Cloudflare Access, providing enterprise-grade authentication without custom code. The admin UI at /_admin/ handles device management and requires proper JWT validation. The project mandates setting up Access protection before using the Control UI, ensuring only authorized users can interact with the AI assistant.
Installation and Setup Process
Deploying moltbot-sandbox requires a Cloudflare Workers Paid plan ($5/month) to access Sandbox containers. The setup process involves several straightforward steps:
- Install dependencies via npm
- Configure API access by setting either
ANTHROPIC_API_KEYor AI Gateway credentials - Generate a secure gateway token using OpenSSL for Control UI access
- Deploy the worker using the included npm script
- Enable Cloudflare Access on the workers.dev domain
- Configure Access secrets for JWT validation
- Pair devices through the authenticated admin interface
The documentation provides detailed instructions for both the streamlined workers.dev Access integration and manual Access application setup for advanced configurations. First-time deployments should expect 1-2 minutes for initial container startup.
cloudflare deploymentTechnical Stack Analysis
The project leverages a modern JavaScript/TypeScript stack with several notable technology choices:
- Runtime: Cloudflare Sandbox containers (Deno-compatible)
- Build Tools: Vite for bundling, Vitest for testing
- Code Quality: Oxlint and Oxfmt for linting and formatting
- Infrastructure: Cloudflare Workers, R2 Storage, Browser Rendering, AI Gateway
- AI Provider: Anthropic Claude via direct API or Cloudflare AI Gateway
The repository structure includes separate directories for assets, skills, source code, and end-to-end tests. Configuration files like wrangler.jsonc, tsconfig.json, and vite.config.ts indicate a well-structured development environment. The presence of a Dockerfile suggests container-based local development capabilities alongside the cloud deployment.
Cost Considerations
The project provides transparent cost estimates for 24/7 operation. With a standard-1 container running continuously, monthly costs approximate $34.50 including the Workers plan fee. This breaks down to roughly $26 for memory (4 GiB provisioned), $2 for CPU at 10% utilization, and $1.50 for disk storage.
However, the documentation emphasizes that costs scale with usage. By configuring the SANDBOX_SLEEP_AFTER parameter (e.g., 10 minutes), containers enter sleep mode during idle periods. A container running just 4 hours daily could reduce compute costs to approximately $5-6 monthly plus the base plan fee, making it competitive with traditional VPS hosting.
Community and Development Status
As of February 2026, the repository shows minimal community engagement with 0 stars, 0 forks, and 0 open issues. This suggests the project is in early stages or serves as a personal/organizational tool rather than a widely-adopted open-source project. The single commit history indicates recent initialization, and the absence of topics or detailed GitHub metadata limits discoverability.
The experimental nature explicitly stated in the documentation suggests this is a proof-of-concept rather than production-ready software. Potential users should expect breaking changes and limited support, making it suitable primarily for technically proficient developers comfortable with debugging and contributing fixes.
Comparison with Alternatives
Traditional AI assistant deployments typically require dedicated servers or cloud VMs, demanding ongoing maintenance and security updates. Compared to these approaches, moltbot-sandbox offers:
- Serverless Advantages: No server management, automatic scaling, global edge distribution
- Integrated Security: Cloudflare Access eliminates custom authentication code
- Cost Flexibility: Pay-per-use with container sleep modes versus fixed VPS costs
However, alternatives like langchain or self-hosted solutions provide greater customization and avoid vendor lock-in. The choice depends on priorities: managed convenience versus control and portability.
Conclusion
The moltbot-sandbox project demonstrates an innovative approach to deploying personal AI assistants on serverless infrastructure. While experimental and lacking community traction, it offers a compelling blueprint for developers seeking managed, cost-effective AI deployments. The comprehensive documentation around setup, security, and cost transparency shows maturity despite the early development stage. For developers comfortable with Cloudflare's ecosystem and willing to navigate experimental software, this project provides a solid foundation for building cloud-native AI assistants.
Original Source
https://github.com/venturegit2026/moltbot-sandbox
Last updated: