AgentMail: What It Is, What It Costs, and How to Start

Give an AI agent its own email address. See the first inbox call in Python, the free plan’s limits, and when Gmail or SMTP fits better.

Published

AgentMail: What It Is, What It Costs, and How to Start

If a supplier should be able to email your agent back tomorrow, give the agent a return address. AgentMail creates an inbox in one API call, so the agent can ask for a delivery date and pick up the reply in the same conversation. If the supplier already writes to a buyer personally, that existing mailbox is usually the better place to connect your software.

What does AgentMail do?

AgentMail calls its product “email inboxes for AI agents.” Your application can create an address for each agent, send from it, and read the messages that come back. Think of the address as a purchasing desk’s mailbox. A supplier can reply to the desk even after the person who first asked for a quote has gone home. The same holds for an agent after its first run ends. AgentMail’s introduction

AgentMail shows an agent following up on a customer’s missing order by email
AgentMail

Suppose the supplier replies, “Friday works for the smaller order.” A thread groups that reply with the earlier request, so the agent can look up which order the supplier means. Your application still needs to match the conversation to the purchase order and decide whether a change of date needs the buyer’s approval.

Choose how the reply reaches your code. A webhook tells AgentMail where to send an HTTP request when something happens. A hosted purchasing app can subscribe to message.received at its own URL. For a prototype on your laptop, a WebSocket lets your program hold a connection open and listen for the same event without publishing a URL. Event delivery guide

Which customer owns the inbox?

Give each customer a pod when your app handles mail for several businesses. A pod groups a customer’s inboxes and domains inside your AgentMail organization. A retailer could have separate addresses for purchasing and returns in its pod. A second retailer gets its own pod and an API key scoped to that customer. That way a search for a supplier’s name can be confined to the retailer that asked.

Two customer pods under one organization, each holding its own bank of inboxes
Use the pod for the customer and an inbox for each agent that needs an address.

A custom domain lets the supplier see your company’s name after the @ sign. Decide who owns that domain before setting it up. AgentMail can scope a domain to one pod or share it across all pods. If two brands in a larger customer portfolio need a shared address domain, account for that restriction before promising it to them. Pod and domain scoping rules

Create your first AgentMail inbox in Python

Start with a round trip to an address you control. The developer path in AgentMail’s quickstart begins in the console. These steps adapt its Python example so you can choose the test recipient at the terminal.

  1. Create a key

    Create an account in the AgentMail Console and generate an API key in the dashboard. In your project’s private .env file, set AGENTMAIL_API_KEY to that value. Keep the file out of source control.

  2. Install the Python client

    From your project environment, run python -m pip install agentmail python-dotenv. The second package loads the key from your local file.

  3. Create an inbox and send a test

    Save the code below as quickstart.py. Run python quickstart.py and enter your own email address. With the domain omitted, AgentMail supplies an address on @agentmail.to.

Python
import os

from agentmail import AgentMail
from dotenv import load_dotenv

load_dotenv()
client = AgentMail(api_key=os.environ["AGENTMAIL_API_KEY"])
recipient = input("Your test email address: ").strip()

inbox = client.inboxes.create()
print(inbox.inbox_id)
client.inboxes.messages.send(
    inbox.inbox_id,
    to=recipient,
    subject="Delivery date for the sample order",
    text="Can you confirm the delivery date?",
)
An API key leads through the Python call client.inboxes.create() to a new inbox
The create call gives your code a mailbox it can use again.

Reply from your own email account and inspect the conversation. Save the printed inbox ID with the agent’s record. Running the whole example again creates another inbox. For a purchasing agent that follows up next week, reuse the saved ID so the supplier recognizes the sender.

AgentMail alternatives for an existing mail stack

Keep the address your correspondents already use if the agent is taking over part of an established workflow. If each new customer needs a fresh address, compare services on how your app creates the mailbox and receives its first reply.

  • Hostinger Agentic Mail exposes a Hostinger mailbox through a REST API and webhooks, a direct route if the business already receives mail there. Hostinger Mail API
  • LobsterMail documents tools for agents to create inboxes and read incoming messages. Its hosted getting-started page showed a deployment-paused notice on December 2, 2026, so confirm availability before building around it. LobsterMail’s repository
  • Gmail can push changes from an existing mailbox through Google Cloud Pub/Sub to your endpoint. Your app renews the mailbox watch and fetches the changes identified by the notification. Google’s Gmail push guide
  • Simple Mail Transfer Protocol (SMTP) handles message transport. It fits an outbound notice from an existing system. For a conversation, you also need a place to store incoming mail and code to route replies. SMTP specification

AgentMail supplies the mailbox. You choose the software that interprets the reply, whether you run an open-source AI agent or assemble the workflow in a no-code agent builder.

A mailing list is a different job. AgentMail’s guide to conversational email explicitly distinguishes the product from bulk senders. For a sales campaign where the unit of work is an outreach sequence, compare cold email tools.

AgentMail questions

How much does AgentMail cost?

Free costs $0/month for 3 inboxes, 1 custom domain, 3 GB of storage and 2 team members, with 100 emails/day and 3,000/month. Developer costs $20/month, Startup $200/month and Enterprise has custom pricing. AgentMail pricing, checked December 2, 2026

Who is the CEO of AgentMail?

Haakam Aujla is the CEO. He founded AgentMail with Michael Kim, its CTO, and Adi Singh. Y Combinator’s company profile

Is AgentMail legit?

AgentMail is an active company in Y Combinator’s directory. Its official product is at agentmail.to. To evaluate it for your app, use an address you control and check that a reply reaches the right agent and customer before connecting a live workflow.

If the job is to summarize your own inbox or draft replies for you, start with AI email assistants for the mailbox you already use.

Published
Category
Build
Related Articles
Antigravity CLI in Claude Code and Codex: The Setup Google Allows

Antigravity CLI in Claude Code and Codex: The Setup Google Allows

Google's terms now let Claude Code or Codex call the Antigravity CLI as a subagent. The exact rule, what stays forbidden, and a setup built from the docs.Dec 2, 2026Build
LM Studio: What It Is and How to Run Your First Local Model

LM Studio: What It Is and How to Run Your First Local Model

Find the LM Studio desktop installer, choose a model that fits your memory, chat offline, and send your first request to its local server.Dec 2, 2026Build
Kiro Crew: What Teams Share and How to Get Started

Kiro Crew: What Teams Share and How to Get Started

How a shared Kiro Crew turns review feedback into team skills, who can join, what the crew seat costs and how to connect your first host.Dec 2, 2026Build
How to Install Claude Code on macOS, Linux and Windows

How to Install Claude Code on macOS, Linux and Windows

Install Claude Code on macOS, Linux or Windows. Choose your terminal, verify the install, sign in, fix common errors and update or uninstall it.Dec 2, 2026Build
Claude Managed Agents on Amazon Bedrock and the Claude API

Claude Managed Agents on Amazon Bedrock and the Claude API

Choose between the Claude API and Amazon Bedrock, see who runs the tools and bills usage, and create an agent with Anthropic’s documented request.Dec 1, 2026Build
Harness Tuned for One Model, Run on Another: What Google's Papers Measured

Harness Tuned for One Model, Run on Another: What Google's Papers Measured

Google's Harness² papers, read closely: what happened when a harness met a new model, what carries over, and a first-week checklist for switching models.Dec 1, 2026Build
Claude Buddy: What Happened to the Terminal Pet?

Claude Buddy: What Happened to the Terminal Pet?

Why /buddy stopped working in Claude Code, what the maintainer said, and how to tell the terminal pet from Anthropic’s Desktop Buddy hardware project.Dec 1, 2026Build
NotebookLM MCP

NotebookLM MCP

Connect Claude Code to Google's NotebookLM MCP server. See who can use it, how to add sources, and which community tools can answer notebook questions.Dec 1, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.