ScriptsJul 6, 2026·3 min read

Agentic Inbox — Self-Hosted AI Email Client on Cloudflare Workers

Agentic Inbox is an open-source email client with a built-in AI agent that triages, summarizes, and drafts replies, running entirely on Cloudflare Workers with no external server.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 29/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
CLI Tool
Install
Single
Trust
Trust: Established
Entrypoint
Agentic Inbox Overview
Safe staging command
npx -y tokrepo@latest install ea199ee0-78d0-11f1-9bc6-00163e2b0d79 --target codex

Stages files first; activation requires review of the staged README and plan.

Introduction

Agentic Inbox is a self-hosted email client built by Cloudflare that integrates an AI agent directly into your inbox workflow. It runs on Cloudflare Workers, meaning zero traditional servers to manage. The agent can triage incoming mail, generate summaries, and draft context-aware replies.

What Agentic Inbox Does

  • Connects to your email account and presents a modern web-based inbox
  • Uses an AI agent to automatically categorize and prioritize messages
  • Generates summaries of long email threads
  • Drafts reply suggestions based on conversation context
  • Runs entirely on Cloudflare's edge network with no backend servers

Architecture Overview

The application runs as a Cloudflare Workers project using Workers AI for LLM inference. Email is fetched via standard protocols and stored in Cloudflare D1 (SQLite at the edge). The AI agent processes messages asynchronously using Workers AI models, and the frontend is a single-page app served from Workers Sites.

Self-Hosting & Configuration

  • Requires a Cloudflare account with Workers and D1 enabled
  • Deploy with a single wrangler deploy command
  • Configure email credentials via Wrangler secrets
  • AI inference runs on Cloudflare Workers AI — no external API keys needed
  • Custom agent behaviors can be configured via environment variables

Key Features

  • Serverless architecture with no infrastructure to maintain
  • AI-powered email triage with configurable priority rules
  • Thread summarization for catching up on long conversations
  • Draft reply generation that respects conversation tone
  • Built and maintained by the Cloudflare team

Comparison with Similar Tools

  • Inbox Zero — focuses on email automation rules; Agentic Inbox adds a full AI agent
  • Thunderbird — traditional desktop client; Agentic Inbox is web-first with AI built in
  • Hey (Basecamp) — opinionated commercial email; Agentic Inbox is open-source and self-hosted
  • Gmail — cloud email with some AI features; Agentic Inbox gives you full control over the AI layer

FAQ

Q: Does it support Gmail and Outlook? A: It supports standard IMAP/SMTP email providers. Check the documentation for provider-specific setup guides.

Q: Is Cloudflare Workers free for this? A: Cloudflare offers a generous free tier for Workers and D1 that covers moderate personal use. High-volume usage may require a paid plan.

Q: Can I use a different AI model? A: The default setup uses Cloudflare Workers AI. Custom model providers can be configured if you modify the agent logic.

Q: Is my email data stored on Cloudflare? A: Email metadata is stored in your Cloudflare D1 database, which you control. No data is shared with third parties.

Sources

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets