Skip to main content
Back

Cloudflare's Agentic Inbox Turns Your Email Into an Open-Source AI Agent

Cloudflare open-sources a full email client where an AI agent auto-drafts replies, runs on Workers with zero server management, and exposes an MCP endpoint for external AI tools.

Repo, Full Access
  • Agentic Inbox is Cloudflare's open-source, self-hosted email client with a built-in AI agent, running entirely on Cloudflare Workers.
  • The AI agent uses Kimi K2.5 via Workers AI, auto-drafts replies on inbound email, and requires explicit user confirmation before sending.
  • Each mailbox is isolated in its own Durable Object with SQLite storage; attachments go to R2 -- no third-party SaaS touches your data.
  • A built-in MCP server at /mcp lets external tools like Claude Code or Cursor operate on your inbox programmatically.
  • Released alongside the public beta of Cloudflare Email Service, which enables bidirectional email natively from Workers with auto-configured SPF/DKIM/DMARC.
  • Intended as a reference architecture for agent-native email workflows, not a Gmail replacement; one-click deploy available.

Agentic Inbox is Cloudflare's new open-source reference application that ships a complete email client with a built-in AI agent, deployed entirely on Cloudflare Workers. It was released as part of Cloudflare's Agents Week alongside the public beta of Cloudflare Email Service, and it is available right now under the Apache 2.0 license.

The pitch is straightforward: Agentic Inbox is an open-source, self-hosted email client that integrates an AI agent directly into your inbox, allowing automated reading, organization, search, and reply drafting -- and it runs entirely on your own Cloudflare account using Workers, Durable Objects, R2, Email Routing, and Workers AI, so no third-party SaaS ever needs access to your messages.

The problem it actually solves

Traditional email clients store your data on third-party servers and offer limited automation. Agentic Inbox flips this model by running everything on Cloudflare's edge infrastructure with per-mailbox isolation and an AI agent that actively manages your inbox.

But the deeper story here is about email as an agent interface. Cloudflare observed during their private beta that developers were building customer support agents, invoice processing pipelines, and account verification flows -- all on top of email. The pattern was clear enough that they needed infrastructure purpose-built for it, and Agentic Inbox is the reference implementation that shows what that looks like end-to-end.

How it's built

Incoming emails arrive via Cloudflare Email Routing, each mailbox is isolated in its own Durable Object with a SQLite database, and attachments are stored in R2. Durable Objects are Cloudflare's primitive for strongly consistent, stateful serverless compute -- think of them as tiny persistent processes that each own their own database and run close to the user.