Features
Understand the mailbox, extraction, MCP, search, event, and self-hosting primitives before choosing an interface.
Open-source email infrastructure for agents that need inboxes, verification-code extraction, search, replies, MCP tools, and self-hosted Cloudflare control.
npm install -g mails-agent && mails bootstrap
Contain the blast radius and preserve every message — even when the agent misbehaves.
Every mailbox gets its own API key. A leaked or misused key can only touch the mailbox it was issued for — never your other mailboxes, your domain config, or your billing.
Every inbound email is persisted to R2 before any parsing or routing. If a parser, webhook, or agent ever crashes, the original message is still recoverable byte-for-byte.
100 sends/day per mailbox (configurable when self-hosted) plus automatic bounce and complaint suppression. A runaway agent can't burn your domain reputation or drain your quota.
Self-hosted on your own Cloudflare account. MIT licensed. Audit the code, rotate keys, pause a mailbox, or walk away anytime — no vendor lock-in.
MIT licensed, self-hostable on Cloudflare, with agent-native tooling for inboxes, OTP codes, MCP, and browser-agent workflows.
Bootstrap a receive-only mailbox, read the inbox, and wait for a verification code. Same surface in CLI or MCP, with Python available for configured mailboxes.
Send, receive, search, extract, observe. One API, six first-class primitives.
Full email with CC/BCC, In-Reply-To threading, and attachments. Receive via Cloudflare Email Routing with raw-first R2 persistence.
Full-text search (FTS5) across inbox. Automatic verification code extraction for EN, ZH, JA, and KO. Long-poll until code arrives.
Webhooks with HMAC-SHA256 signature verification. SSE streams for message.received. Auto-labeling: newsletter, notification, code, personal.
Extract orders, shipping, calendar events, and receipts from emails. Deterministic parsers — no LLM cost, no hallucinations.
Inspect every mailbox, message, and webhook delivery in the built-in console. Debug deliverability or hand a mailbox to a non-developer — no DB client required.
Bring any domain. mails0 guides you through SPF, DKIM, and MX verification so inbound routing and outbound deliverability just work — on your own Cloudflare account.
One API key. Four ways to use it: CLI, Python SDK, MCP server, and agent-native skill packs.
Create a temporary mailbox, read messages, and wait for verification codes from the same terminal surface your agent already uses.
npm install -g mails-agent && mails bootstrapmails bootstrap mails inbox --query "verification" mails code --timeout 30
Use the hosted API or your own deployment from workers, notebooks, background jobs, and agent tooling.
pip install mails-agentfrom mails_agent import MailsClient
client = MailsClient("mk_...")
code = client.wait_for_code(
"[email protected]",
timeout=60,
)
Teach Claude Code, OpenClaw, Cursor, and similar agents how to use a real inbox without custom glue code.
npx mails-skills# Or install via OpenClaw: clawhub install mails-for-agent # Or manually: curl -sL mails0.com/skill.md \ > ~/.claude/skills/email.md
Expose mails0 as a standard tool server for Claude Desktop, Cursor, Windsurf, and other MCP clients.
npx mails-agent-mcp# Works with Claude Desktop, Cursor, Windsurf # Call get_inbox or wait_for_code immediately # The first safe inbox is created automatically
Product capabilities, audience workflows, fair vendor comparisons, implementation guides, and direct answers share one evidence-backed content system.
Understand the mailbox, extraction, MCP, search, event, and self-hosting primitives before choosing an interface.
Map email infrastructure to the operating model of agents, coding tools, QA teams, browser automation, and Cloudflare deployments.
Compare product scope, operating model, and tradeoffs using current official documentation instead of invented feature claims.
Build production-shaped workflows for agent identity, Playwright verification, MCP tools, Cloudflare, security, and evaluation.
Get concise answers designed for search and answer engines, followed by implementation detail, limits, security, and next steps.
mails0 is open-source email infrastructure for AI agents. It lets agents send, receive, search emails, and extract verification codes programmatically. Deploy on your own domain with Cloudflare Workers (free tier).
mails0 is the product. mails-agent is the npm and PyPI package that ships the SDK and CLI (npm install -g mails-agent or pip install mails-agent). mails is the CLI binary you run from your terminal. They all refer to the same thing.
Install with npm install -g mails-agent and run mails bootstrap for a hosted receive-only mailbox. Use mails claim <name> when a human is ready to approve a permanent identity. For production outbound email, self-host on Cloudflare with your own domain. For MCP clients, use npx mails-agent-mcp.
Yes. mails0 automatically extracts 4-8 character verification codes from email subject and body. It supports English, Chinese, Japanese, and Korean. Use mails code --to [email protected] to wait for a code.
100 sends/day per mailbox by default, reset at UTC midnight. Self-hosted deployments can raise the cap via the DAILY_SEND_LIMIT env var. Inbound email has no cap. See Limits & quotas.
Outbound uses Resend, which manages SMTP infrastructure and IP reputation. You bring and verify your sending domain with SPF and DKIM. Inbound goes directly through Cloudflare Email Routing — no third party.
Yes. mails0 is MIT licensed and fully open source on GitHub. The Cloudflare free tier covers Workers, D1 database, R2 storage, and Email Routing, so there is no cost to self-host.
AgentMail is a managed agent inbox service. mails0 is MIT-licensed and can run in your own Cloudflare account. Choose AgentMail when you want vendor-operated infrastructure; choose mails0 when source access, self-hosting, data control, and deployment ownership matter. See full comparison.