GolovachD/moltbot-sandbox
OpenClaw AI assistant running on Cloudflare Workers - experimental TypeScript implementation with multi-channel support and persistent conversations.
Originally published:
GolovachD/moltbot-sandbox: Running OpenClaw AI Assistant on Cloudflare Workers
The moltbot-sandbox project by GolovachD represents an experimental implementation of OpenClaw (formerly known as Moltbot and Clawdbot), a personal AI assistant designed to run entirely within Cloudflare's serverless infrastructure. This proof-of-concept demonstrates the feasibility of deploying a full-featured AI assistant with gateway architecture, multi-channel support, and persistent conversations on Cloudflare Workers using Sandbox containers.
As an experimental project with Apache-2.0 licensing, moltbot-sandbox pushes the boundaries of what's possible with edge computing and AI assistants, though it comes with the caveat that it's not officially supported and may experience breaking changes.
Key Features and Capabilities
OpenClaw, as implemented in this sandbox environment, offers several compelling features that distinguish it from traditional AI chatbot deployments:
- Gateway Architecture: The assistant uses a centralized gateway that connects to multiple chat platforms including Telegram, Discord, and Slack, allowing unified AI interaction across services
- Web-based Control UI: A browser-accessible chat interface provides direct interaction with the AI assistant without requiring separate chat platform accounts
- Device Pairing Security: Implements explicit approval-based authentication where new devices must be approved through an admin interface before gaining access
- Persistent Conversations: When configured with R2 storage, maintains chat history and context across container restarts and sessions
- Extensible Agent Runtime: Supports custom skills and workspace capabilities for enhanced AI functionality
- Cloudflare Integration: Leverages Browser Rendering for navigation tasks and AI Gateway for API routing and analytics
cloudflare-workers-ai-deployment
Installation and Setup Process
Deploying moltbot-sandbox requires a Cloudflare Workers Paid plan ($5 USD/month) to access Sandbox containers, along with an Anthropic API key for Claude access. The setup process, while straightforward for developers familiar with Cloudflare Workers, involves several critical steps:
After installing dependencies with npm, users must configure authentication secrets including either a direct Anthropic API key or Cloudflare AI Gateway credentials. A gateway token must be generated using OpenSSL and stored as a Wrangler secret—this token is essential for accessing the Control UI remotely.
The deployment itself is simple (npm run deploy), but the real configuration complexity lies in setting up Cloudflare Access for admin UI protection. Users must enable Cloudflare Access on their workers.dev subdomain, configure identity providers (email, Google, GitHub, etc.), and set appropriate Access secrets including the team domain and Application Audience tag.
For production use, enabling R2 storage is strongly recommended to preserve paired device configurations and conversation history across container restarts. Without this, all data is ephemeral and lost when containers cycle.
anthropic-claude-api-integration
Technical Stack Analysis
The project is built entirely in TypeScript, providing type safety and excellent developer experience. The technical architecture leverages several Cloudflare services:
- Cloudflare Workers: Serverless compute environment running the AI assistant logic
- Cloudflare Sandbox: Container technology enabling long-running processes in a Workers environment
- Cloudflare Access: Zero Trust authentication protecting administrative interfaces
- Browser Rendering API: Enables web navigation capabilities for the AI agent
- R2 Storage: Optional object storage for persistence
- AI Gateway: Optional routing layer for API management and analytics
The build toolchain includes Vite for development, Vitest for testing, and Wrangler for Cloudflare deployment. The presence of Docker configuration suggests containerized development environments are supported.
typescript-ai-frameworks
Community and Development Activity
As of February 2026, moltbot-sandbox shows minimal community traction with 0 stars, 0 forks, and 0 watchers on GitHub. The repository contains 13 commits and was last updated on February 6, 2026, indicating it's a very recent or actively maintained experimental project. There are currently no open issues or pull requests.
The lack of community engagement suggests this is either a very new project, a personal experimentation repository, or a niche implementation that hasn't yet gained visibility. The experimental nature explicitly stated in the documentation may also deter production adoption.
Comparison with Alternative AI Assistant Deployments
Unlike traditional self-hosted AI assistants that require server infrastructure, moltbot-sandbox takes a serverless-first approach. Compared to solutions like n8n or LangChain-based assistants that typically run on VPS or Kubernetes clusters, this Cloudflare Workers implementation offers:
- Lower operational overhead: No server management or scaling concerns
- Global edge distribution: Low-latency responses from Cloudflare's global network
- Pay-per-use pricing: Cost efficiency for intermittent usage patterns
- Built-in security: Cloudflare Access integration for authentication
However, trade-offs include container cold-start delays (1-2 minutes on first request), dependency on Cloudflare's ecosystem, and the experimental status that makes it unsuitable for mission-critical applications. The mandatory Workers Paid plan also creates a minimum cost floor regardless of usage.
langchain-cloudflare-workers
Verdict and Recommendations
GolovachD/moltbot-sandbox demonstrates impressive technical capability in adapting a full-featured AI assistant to Cloudflare's serverless environment. For developers interested in edge-native AI deployments or those already invested in the Cloudflare ecosystem, this project offers valuable insights and a functional starting point.
However, the experimental status, lack of community support, and complex authentication setup make it better suited for technical experimentation rather than production deployment. Those seeking production-ready AI assistants should consider more established alternatives, while developers interested in bleeding-edge serverless AI architectures will find this project a fascinating case study.
Original Source
https://github.com/GolovachD/moltbot-sandbox
Last updated: