cloudmail-hq/cloudmail
Cloudflare Workers webmail with dedicated inboxes and send approval for AI agents
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Cloudflare Email Routing sends inbound mail to a TypeScript Worker that serves both a Hono API and a React Router 7 server-rendered web client. Each mailbox has its own SQLite-backed MailboxDO. AuthDO holds accounts, sessions, tokens, domains, and licensing state. R2 stores raw messages, attachments, and exports; Vectorize uses a separate namespace for each mailbox's semantic index.
The React 19 client uses TanStack Query and TipTap for data fetching and rich-text composition. Assistant execution lives in a Cloudflare Agents SDK Durable Object; other objects handle webhooks, events, and MCP. The integration surface is the same deployment: agents can use OAuth-authenticated MCP, a CLI, REST, or OpenAPI-derived SDKs. Mailbox-sized storage is a clear isolation boundary, but these components tie the runtime to Cloudflare rather than to a portable Node.js mail server.
Key Capabilities & Differentiators
Cloudmail combines multi-domain webmail, aliases and catch-alls, and role-based shared inboxes. The web client supports threads, search operators, snooze, scheduled sending with a 30-second undo window, and follow-up sequences that stop on reply. Outbound delivery can use Cloudflare Email Service, Amazon SES, or Resend on a per-domain basis, with suppressions, unsubscribe headers, and a spam-rate circuit breaker.
Workers AI or an Anthropic- or OpenAI-compatible gateway backs features such as summaries, triage, semantic search, inbox Q&A, and reply drafting. The agent interface includes 73 MCP tools, CLI JSON output, TypeScript and Python SDKs, and REST with idempotency keys and signed webhooks. A separate mailbox and token give each agent a distinct identity. Agent and API-token sends require human approval by default, and agents cannot approve their own sends.
Trade-offs & Limitations
Compared with Google Workspace or Microsoft 365, Cloudmail replaces email, not the office suite. It provides shared mailboxes and agent identities without a per-seat application fee, but omits calendars, contact sync, documents, and calls. Mail clients need mail-only Exchange ActiveSync with an app password; Cloudmail is not an IMAP or SMTP server, so existing client and relay workflows need a compatibility check.
Self-hosting puts mail storage in your Cloudflare account, not on infrastructure independent of Cloudflare. You take on DNS, routing, provider configuration, and delivery checks. An external AI gateway or sending provider also changes where data is processed. The public source is described as fair source; check the license files before relying on reuse or redistribution rights. After the seven-day trial, a one-time $9 or $29 application license is required, separate from Cloudflare and provider charges. The application checks in with the vendor for licensing.
Hardware & Deployment Guide
Use the guided Cloudflare deploy or Wrangler; local build and test tooling requires Node.js 22.5+. Enable R2 first, retain the suggested Worker name because routing rules and mailbox Durable Objects are tied to it, and set SETUP_TOKEN and AUTH_SECRET separately. Create the owner at /setup, connect a Cloudflare token, and review planned MX and catch-all changes before applying them. Migrate existing mail before switching providers, then test inbound and outbound delivery.
Workers Free can receive mail, but Cloudflare's outbound sender is limited to verified recipients there; SES or Resend can cover external recipients. Free-plan CPU and daily quotas also matter for large messages and AI work. The usual Workers Paid baseline is about $5 per account per month, with 3,000 Cloudflare-sent messages included. For upgrades, v1.4.0 calls out a manual step, v1.5.0 adds conversation context to send approval, and v1.6.0 writes message.received with the message and retries failed handoffs to the webhook service.
Teams that operate custom-domain mail on Cloudflare and want shared webmail plus dedicated agent inboxes with human approval for outbound messages.
You need IMAP or SMTP server compatibility, a full productivity suite, deployment outside Cloudflare, or a mail service whose DNS and delivery setup someone else manages.
Quick Start & Installation
claude mcp add --transport http cloudmail https://mail.example.com/mcpComparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| cloudmail ★ | 103 | +102 | TypeScript | — | Cloudflare Workers webmail with dedicated inboxes and send approval for AI agent |
| TrendRadar | 64.1k | +181 | TypeScript | GPL-3.0 | Self-hosted trend monitor for ranked news, RSS, and web search, with MCP and ale |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| activepieces | 25.9k | +104 | TypeScript | — | Self-hosted TypeScript automation with visual workflows and reusable MCP tools |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/cloudmail-hq/cloudmail.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about cloudmail
How should an agent integrate without sending mail unchecked?
Do I need a GPU or a dedicated server, and what should I size for?
Does public source mean I can run or redistribute it without a license?
Can it replace Google Workspace or Microsoft 365?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy