gitmyhub

agentic-inbox

TypeScript ★ 4.8k updated 1mo ago

A self-hosted email client with an AI agent, running entirely on Cloudflare Workers

Agentic Inbox is a self-hosted email client that runs entirely on Cloudflare Workers — meaning instead of using Gmail or Outlook, you deploy your own email system on Cloudflare's cloud infrastructure (serverless functions that run close to users worldwide). You can send, receive, search, and manage emails through a modern web interface, and each mailbox gets its own isolated storage powered by SQLite (a lightweight database) and R2 (Cloudflare's file storage for attachments).

The built-in AI agent is what makes it stand out. It can read your inbox, search conversations, and draft replies for you. When a new email arrives, the agent automatically reads it and generates a draft reply — but it always asks for your confirmation before actually sending anything. You can also interact with the agent through a side panel to search or compose emails using plain-language requests.

Setup involves deploying to Cloudflare, connecting your own domain, and enabling Email Routing so incoming messages reach the app. Security is handled through Cloudflare Access, which acts as a gatekeeper so only authorized users can access your inbox.

This tool is useful for developers or technically curious users who want full control over their email infrastructure without relying on third-party email services. Because it runs on Cloudflare Workers, there are no servers to maintain. The tech stack includes React 19 for the frontend, Hono for the backend API layer, Cloudflare's Agents SDK for the AI features, and Cloudflare Durable Objects (which keep persistent state between requests) for mailbox storage.