{"opensite":"0.1","url":"https://mails0.com/","canonical":"https://mails0.com/","site":{"name":"mails0.com","web":"https://mails0.com"},"kind":"product","title":"mails0.com","description":"Open-source email infrastructure for AI agents. Send, receive, search, and extract verification codes.","image":{"url":"https://mails0.com/og-image.png"},"language":"en","tags":["ai agent email","email api for ai agents","agentmail alternative","self-hosted agent email","mails0","mails-agent"],"feeds":["https://mails0.com/feed.xml"],"published_at":null,"modified_at":null,"fetched_at":"2026-11-23T02:38:26.113Z","status":"live","source":"read","cards":{"og":{"type":"website","title":"mails0.com — Open Source Email API for AI Agents","description":"Give agents inboxes, OTP code extraction, search, replies, MCP tools, and self-hosted Cloudflare control. Open source, MIT.","url":"https://mails0.com/","site_name":"mails0.com","image":"https://mails0.com/og-image.png","image:width":"1200","image:height":"630","image:alt":"mails0.com — email for agents. Send, receive, search, and extract verification codes.","locale":"en_US"},"twitter":{"card":"summary_large_image","title":"mails0.com — Open Source Email API for AI Agents","description":"Open-source email API for agent inboxes, OTP code extraction, search, replies, CLI, Python SDK, MCP, and self-hosted Cloudflare deployments.","image":"https://mails0.com/og-image.png","image:alt":"mails0.com — email for agents"},"article":{"author":"https://github.com/Digidai"}},"jsonld":[{"@context":"https://schema.org","@type":"SoftwareApplication","@id":"https://mails0.com/#software","name":"mails-agent","alternateName":"mails0.com","url":"https://mails0.com","description":"Email infrastructure for AI agents. Send, receive, search emails, and extract verification codes programmatically. Deploy on your own domain with Cloudflare.","applicationCategory":"DeveloperApplication","operatingSystem":"Linux, macOS, Windows","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"author":{"@type":"Person","@id":"https://mails0.com/about/#gene-dai","name":"Gene Dai","url":"https://mails0.com/about/","sameAs":"https://github.com/Digidai"},"publisher":{"@id":"https://mails0.com/#organization"},"softwareVersion":"1.10.0","license":"https://opensource.org/licenses/MIT","codeRepository":"https://github.com/Digidai/mails","programmingLanguage":["TypeScript","JavaScript"],"runtimePlatform":"Cloudflare Workers","featureList":["Send emails with CC/BCC, In-Reply-To threading, and attachments via Resend API","Receive emails via Cloudflare Email Routing with raw-first R2 persistence (zero email loss)","Full-text search (FTS5) across inbox","Automatic verification code extraction (EN/ZH/JA/KO)","Webhook notifications with HMAC-SHA256 signature verification","SSE real-time events for message.received","Per-mailbox token isolation with scoped API keys","R2 attachment storage for large files","Inbound idempotency via message_id deduplication","Suppression list for bounced/complained recipients","Per-mailbox daily send rate limits","Mailbox pause/resume","Custom domain management with DNS verification","Smart email routing — per-label webhook URLs","Mailbox CRUD — PATCH/DELETE with cascade delete","Single-command self-hosting via mails deploy CLI","CLI and SDK for programmatic access","Agent Skills for Claude Code, OpenClaw, Cursor","MCP Server for Claude Desktop, Cursor, Windsurf","Python SDK (pip install mails-agent)","Email threading with In-Reply-To and References headers","Auto labels: newsletter, notification, code, personal","Structured data extraction: orders, shipping, calendar, receipts","Semantic search via Workers AI embeddings and Cloudflare Vectorize","Dashboard console for visual email management"],"sameAs":["https://www.npmjs.com/package/mails-agent","https://www.npmjs.com/package/mails-agent-mcp","https://pypi.org/project/mails-agent/","https://github.com/Digidai/mails","https://github.com/Digidai/mails-mcp","https://github.com/Digidai/mails-python","https://github.com/Digidai/mails-skills","https://clawhub.ai/digidai/mails-for-agent"]},{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is mails0?","acceptedAnswer":{"@type":"Answer","text":"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)."}},{"@type":"Question","name":"What's the difference between mails0, mails-agent, and the mails CLI?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I give my AI agent an email address?","acceptedAnswer":{"@type":"Answer","text":"Run 'npm install -g mails-agent && mails bootstrap' to create a random 72-hour receive-only mailbox automatically, then use 'mails claim <name>' for a permanent named mailbox. For MCP-compatible clients, install mails-agent-mcp and call any tool; the server bootstraps automatically."}},{"@type":"Question","name":"Can AI agents extract verification codes from emails?","acceptedAnswer":{"@type":"Answer","text":"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 myagent@mails0.com' to wait for a code."}},{"@type":"Question","name":"What are the send limits?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How does outbound deliverability work?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Is mails0 free and open source?","acceptedAnswer":{"@type":"Answer","text":"Yes. mails0 is MIT licensed and fully open source on GitHub. The Cloudflare free tier covers Workers, D1 database, R2 storage, and Email Routing — no cost to self-host."}},{"@type":"Question","name":"How is mails0 different from AgentMail?","acceptedAnswer":{"@type":"Answer","text":"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."}}]},{"@context":"https://schema.org","@type":"Organization","@id":"https://mails0.com/#organization","name":"mails0.com","url":"https://mails0.com","logo":"https://mails0.com/favicon.svg","sameAs":["https://github.com/Digidai/mails","https://github.com/Digidai/mails-mcp","https://github.com/Digidai/mails-python","https://www.npmjs.com/package/mails-agent","https://www.npmjs.com/package/mails-agent-mcp","https://pypi.org/project/mails-agent/","https://clawhub.ai/digidai/mails-for-agent"],"contactPoint":{"@type":"ContactPoint","contactType":"technical support","url":"https://github.com/Digidai/mails/issues"}},{"@context":"https://schema.org","@type":"WebSite","@id":"https://mails0.com/#website","name":"mails0.com","url":"https://mails0.com","description":"Open-source email infrastructure, tools, implementation guides, and evidence-backed comparisons for AI agents.","inLanguage":"en","dateModified":"2026-08-15","publisher":{"@id":"https://mails0.com/#organization"},"hasPart":[{"@type":"CollectionPage","name":"mails0 features","url":"https://mails0.com/features/"},{"@type":"CollectionPage","name":"mails0 built for","url":"https://mails0.com/built-for/"},{"@type":"CollectionPage","name":"mails0 comparisons","url":"https://mails0.com/compare/"},{"@type":"CollectionPage","name":"mails0 implementation guides","url":"https://mails0.com/blog/"},{"@type":"CollectionPage","name":"mails0 questions and answers","url":"https://mails0.com/questions/"}]}]}