Back to directory

Productivity & Utilities · Email & Communication

AgentMail

Programmable email inboxes and workflows for AI agents

AgentMail is a hosted API platform for giving AI agents dedicated email inboxes that can send, receive, search, label, and process messages. It targets developers building autonomous workflows, offers MIT-licensed Python client code, and provides Free, Developer, Startup, and Enterprise hosted plans. No self-hosted backend package is published.

Key facts

License
MIT for Python SDK; hosted service proprietary
Main language
Python SDK, Rust CLI, TypeScript client, HTTP API
Maintainer
AgentMail team
First released
2025
Latest release
2.0.18, October 14, 2026
GitHub stars
72 for agentmail-python; 41 for agentmail-cli
Hosted option
Free at $0/month, Developer at $20/month, Startup at $200/month, Enterprise custom

What AgentMail is

AgentMail is an API platform that gives AI agents dedicated inboxes for sending, receiving, and acting on email. The company was founded by Haakam Aujla and entered Y Combinator's Summer 2025 batch. AgentMail says it has tens of thousands of human users, hundreds of thousands of agent users, and more than 500 B2B customers. Its Python SDK repository was created in January 2025 and had 72 stars as of October 2026, while the Rust CLI repository had 41 stars after its February 2026 creation. The company announced a $6 million seed round led by General Catalyst, with participation from Y Combinator and other investors. The service is maintained by the AgentMail team, making it suitable for applications that need managed email identities and automated correspondence.

How it works

The main workflow is short: register through the console or onboarding API, obtain an API key and identifiers, create an inbox, then send or receive messages through the API. Agents can sign up with a human email for verification, or create a receive-only inbox and attach a human later. The platform supports two-way conversations, threads, attachments, drafts, labels, scheduled sending, full-text search, structured extraction, and automatic labeling. Incoming mail can arrive through WebSockets or webhooks, avoiding repeated polling. Developers can use Python, TypeScript, the command-line client, cURL, or any HTTP-capable framework. API permissions, agent guardrails, idempotent inbox creation, retry handling, and rate-limit responses help teams design controlled workflows and predictable failure handling.

Architecture and recent releases

The client layer includes a generated Python library, a Rust CLI, HTTP endpoints, WebSocket connections, and webhook delivery, giving developers several ways to connect applications and operational tools. The Python SDK requires Python 3.10 or newer, offers synchronous and asynchronous clients, retries selected failures with exponential backoff, and uses a 60-second timeout by default. The CLI runs on macOS, Linux, and Windows through shell installers, PowerShell, npm, or a Rust build, supporting varied installation preferences and development environments. According to the company's announcement, the service integrates with LangChain, LlamaIndex, and CrewAI. The latest documented SDK release is 2.0.18, published October 14, 2026. The backend's programming language, framework, database, and deployment architecture are not described, so platform ownership remains separate from client customization.

License and pricing

The Python SDK is licensed under MIT, allowing commercial use, modification, distribution, and private use of the client code. Those permissions do not include operating or reproducing the proprietary AgentMail backend, so teams should distinguish SDK flexibility from hosted service ownership when planning deployments. Hosted plans start with Free at $0 per month and include three inboxes, 3,000 emails per month, and 3 GB of storage. The Developer plan costs $20 monthly, Startup costs $200 monthly, and Enterprise has custom pricing. Enterprise options include EU cloud hosting, bring-your-own-cloud deployment, dedicated IPs, white labeling, and OIDC or SAML SSO. The documented 24-hour message expiry should guide retention policies, workflow timing, and external archival procedures.

Limitations and how it compares

AgentMail trades infrastructure ownership for a managed service built around agent identities and two-way email. Postal, Mail-in-a-Box, and Haraka give operators more control over mail infrastructure, but also place responsibility for servers, DNS, storage, delivery, monitoring, and security on the operator. Gmail API, Microsoft Graph mail APIs, and SendGrid address related requirements, although they do not present the same combination of on-demand agent inboxes and event delivery. AgentMail's limits include proprietary backend operation, plan quotas, vendor dependence, and documented message expiry. Choose it when rapid, managed agent communication matters more than self-custody or backend control, and review quotas, retention rules, integration needs, and operational dependencies before committing.

Main features

  • Programmable inboxes. Create dedicated agent inboxes through the API, with inbox, organization, and credential identifiers returned during onboarding.
  • Two-way email. Send and receive messages with support for conversations, threads, attachments, drafts, replies, and scheduled sending.
  • Event delivery. Use WebSockets or webhooks to receive incoming-message notifications without repeatedly polling the inbox API.
  • Message processing. Search messages and threads, extract structured data, and apply automatic labels using user-defined prompts.
  • Agent onboarding. Let an agent register itself, receive an API key, verify a human through OTP, or begin with a receive-only inbox.
  • Developer clients. Integrate through Python, TypeScript, cURL, the Rust CLI, or any application capable of making HTTP requests.

Self-hosting AgentMail

AgentMail does not publish a self-hosted backend, Docker image, Helm chart, database schema, or server package. The Python client installs with pip and requires Python 3.10 or newer. The CLI supports macOS and Linux shell installers, Windows PowerShell, npm, npx, and source builds with Rust. These packages connect to AgentMail's hosted API rather than replacing it. Minimum server hardware, PostgreSQL, Redis, object storage, backup procedures, and upgrade procedures are not specified. Teams requiring infrastructure custody must select another mail platform and operate delivery, DNS, storage, authentication, and event processing themselves.

Strengths

  • On-demand inbox creation suits agents that need email identities.
  • WebSockets and webhooks support event-driven message handling.
  • Python and CLI clients shorten integration work.
  • Enterprise includes EU cloud and BYO cloud options.

Drawbacks

  • The backend is proprietary and has no published self-hosted package.
  • Plans impose inbox, storage, and message-volume limits.
  • Documented 24-hour message expiry may conflict with retention requirements.

What teams replace with it

Teams usually evaluate AgentMail when they want to move off Gmail API, Microsoft Graph mail APIs, SendGrid.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to AgentMail

  • Postal
  • Mail-in-a-Box
  • Haraka
  • Mautic

Frequently asked questions

Is AgentMail free?

AgentMail has a Free plan costing $0 per month. It includes three inboxes, 3,000 emails monthly, 100 emails daily, and 3 GB of storage. The pricing page says no credit card is required. Paid plans add inboxes, domains, message capacity, storage, seats, support, and enterprise controls.

Is AgentMail open source and usable commercially?

The Python SDK is MIT licensed, so its code can be used, modified, and distributed commercially under MIT terms. The CLI incorporates fern-cli-sdk under Apache 2.0. Those licenses cover client code, not the hosted AgentMail backend, API infrastructure, storage, or deliverability service.

How can I install AgentMail?

Install the Python SDK with pip, the TypeScript package with npm, or the CLI with npm, npx, platform installers, or a Rust source build. Set an API key, create an inbox, and call the API. No published Docker, Helm, database, or self-hosted server installation exists.

How does AgentMail compare with Postal?

AgentMail is a managed API focused on programmable agent inboxes, onboarding, WebSockets, webhooks, and message workflows. Postal is self-hosted mail infrastructure that gives operators more control over servers and data. AgentMail reduces operations, while Postal suits teams prepared to manage delivery, DNS, storage, and security.

Can AgentMail handle sensitive email?

AgentMail documents API permissions, agent guardrails, multi-factor authentication, signed webhooks, DKIM, SPF, DMARC, suppression lists, and a SOC 2 report for Startup and Enterprise plans. Teams handling regulated information should review retention, regional hosting, contractual terms, and the documented 24-hour message expiry before deployment.

Similar projects to compare

Sources

Last updated 2026-10-22.