Skip to main content
Project 4 min read

ishnn/moltbot-sandbox

OpenClaw AI assistant on Cloudflare Workers. TypeScript-based personal AI with multi-channel support, device pairing, and persistent conversations.

Originally published:

GitHub by ishnn

OpenClaw on Cloudflare Workers: A Comprehensive Review

The moltbot-sandbox project by ishnn represents an experimental implementation of OpenClaw (formerly known as Moltbot and Clawdbot) designed to run as a personal AI assistant within Cloudflare's Sandbox environment. This proof-of-concept demonstrates the feasibility of deploying a fully-featured AI assistant on Cloudflare's infrastructure, though it's important to note that this is not officially supported and remains in experimental status.

Key Features and Capabilities

OpenClaw delivers a robust set of features that make it a compelling choice for users seeking a self-hosted AI assistant solution:

  • Control UI - Web-based chat interface accessible through the gateway for direct interaction with your AI assistant
  • Multi-channel Support - Native integrations with popular platforms including Telegram, Discord, and Slack
  • Device Pairing - Secure direct message authentication requiring explicit approval, ensuring only authorized devices can access your assistant
  • Persistent Conversations - Maintains chat history and context across sessions, enabling continuity in interactions
  • Agent Runtime - Extensible architecture supporting custom AI capabilities through workspace and skills systems

The project leverages Cloudflare's Browser Rendering API for navigation capabilities and supports optional R2 storage for data persistence across container restarts.

Installation and Setup Process

Setting up moltbot-sandbox requires a Cloudflare Workers Paid plan ($5/month) and an Anthropic API key for Claude access. The deployment process is straightforward but involves several critical security steps:

The initial setup involves installing dependencies via npm, configuring API credentials through Wrangler secrets, and generating a secure gateway token for remote access. One unique requirement is configuring Cloudflare Access to protect the admin UI at /_admin/, which requires setting up JWT validation with your Access team domain and application audience tag.

The documentation provides clear instructions for both direct Anthropic API access and alternative configuration using Cloudflare AI Gateway with unified billing. First-time container startups may take 1-2 minutes, which users should anticipate when initially accessing the Control UI.

Technical Stack Analysis

Built with TypeScript and released under the Apache-2.0 license, moltbot-sandbox demonstrates modern cloud-native architecture patterns. The project utilizes:

  • Cloudflare Workers as the primary compute platform
  • Cloudflare Sandbox containers (standard-1 instance: 1/2 vCPU, 4 GiB memory, 8 GB disk)
  • Vite for build tooling and development experience
  • Vitest for testing infrastructure
  • Docker support for containerization
  • Optional Cloudflare AI Gateway integration for API routing and analytics

The repository includes configuration files for Oxlint and Oxfmt, suggesting attention to code quality and formatting standards. The presence of end-to-end testing infrastructure indicates a commitment to reliability despite the experimental status.

Cost Considerations

The project provides transparent cost estimates for 24/7 operation, with approximate monthly costs around $34.50 including the Workers plan fee. This breaks down to roughly $26/month for memory (2,895 GiB-hrs overage), $2/month for CPU at 10% utilization, and $1.50/month for disk storage.

Users can significantly reduce costs by configuring the SANDBOX_SLEEP_AFTER parameter to allow container sleep during idle periods. A container running only 4 hours daily could reduce compute costs to approximately $5-6/month beyond the base plan fee, making it cost-effective for personal use scenarios.

Community and Development Status

As of the latest update in February 2026, the repository shows minimal community engagement with 0 stars, 0 forks, and 0 watchers. The project has 0 open issues, suggesting either limited adoption or effective issue resolution. The repository is actively maintained with the most recent push occurring on February 7, 2026.

The project is not archived and includes comprehensive documentation across multiple markdown files including AGENTS.md, CONTRIBUTING.md, and README.md, indicating ongoing development interest despite limited external community participation.

Comparison with Alternatives

Compared to traditional self-hosted AI assistant solutions, moltbot-sandbox offers several advantages through its Cloudflare Workers deployment model. Unlike solutions requiring dedicated servers or VPS hosting, this approach provides automatic scaling, global distribution, and managed infrastructure without operational overhead.

The multi-channel support distinguishes it from single-platform chatbots, while the device pairing security model provides stronger access controls than many open-source alternatives. However, the experimental status and lack of official support may concern users seeking production-ready solutions.

For developers interested in AI agent frameworks on serverless infrastructure, this project demonstrates practical patterns for deploying conversational AI systems with persistent state management and secure authentication, making it valuable reference material even if not adopted directly.

Final Assessment

The moltbot-sandbox project successfully demonstrates that sophisticated AI assistants can operate within Cloudflare's serverless ecosystem. While the experimental designation and limited community adoption suggest caution for production use, the transparent cost modeling, comprehensive security configuration, and clean TypeScript implementation make it an interesting option for developers exploring edge computing for AI applications.

Share:

Original Source

https://github.com/ishnn/moltbot-sandbox

View Original

Last updated: