An agent email inbox in one command#
An OtterKit inbox is a real address on the public internet. Anything that can send mail can reach it: a sign-up form, a support customer, a billing system, a person. One command creates it, and the same command works for you or for the agent:
npx otterkit webhook --email --subdomain signup-bot ✓ Webhook ready
URL https://signup-bot.otterkit.app
Inbox signup-bot@otterkit.appThe inbox lives on OtterKit's edge, not on your machine. It accepts mail while your laptop is closed and the agent is not running, and keeps each message until the agent comes back to read it. Leave out --subdomain and you get a random address, which is what you want for a one-off test.
How it works: provision an address, receive mail as events#
An inbox is a switch on a webhook endpoint. Turn it on and <subdomain>@otterkit.app starts accepting mail. Each message lands in the endpoint's feed as a capture with the method EMAIL, next to any HTTP requests the same endpoint received. The body is a JSON envelope:
{
"from": "no-reply@example.com",
"to": "signup-bot@otterkit.app",
"subject": "Your verification code",
"date": "2026-11-24T09:12:44.000Z",
"messageId": "<b7f1c2@example.com>",
"text": "Code: 481-923",
"html": "<p>Code: <b>481-923</b></p>",
"attachments": [{ "filename": "terms.pdf", "contentType": "application/pdf", "size": 48213 }]
}There are three ways to get a message to the agent:
- Wait for it. await blocks until a matching message arrives and prints it as JSON. This is the usual choice for an agent in the middle of a task.
- Read it later. Messages are stored on the server, so the agent can list and search what came in while it was away.
- Receive it as a webhook. A forwarding rule with
method=EMAILdelivers every message to a URL of yours as a signed JSON request, with retries. That turns the inbox into an email-to-HTTP bridge for an agent that runs as a service.
# Create the inbox in the background, then block until one email arrives
npx otterkit webhook --email --daemon --subdomain signup-bot
npx otterkit await signup-bot --method EMAIL --count 1 --jsonThe full reference is on the email inboxes docs page.
What agents use an email address for#
Sign-up verification codes and magic links#
An agent that tests a sign-up flow, or creates an account on a service for you, gets stuck at "check your email". With its own inbox it gives the form the address, waits for the message and reads the code out of the text field:
webhook_create { "subdomain": "signup-test", "email": true }
→ signup-test@otterkit.app
request_await { "subdomain": "signup-test", "method": "EMAIL" }
→ { "subject": "Your verification code", "text": "Code: 481-923", ... }A new inbox per test run keeps runs from reading each other's codes, and nothing touches your personal mailbox.
Support triage#
Forward a support alias to an OtterKit address and every message reaches the agent as structured JSON: sender, subject, plain text and HTML. The agent can label it, draft an answer or open a ticket. Because a rule can deliver the message to any URL, the triage agent can be a script on your laptop today and a deployed service later, with the same address.
Replies to outbound follow-ups#
OtterKit does not send the follow-up. It catches the answer. Send from the provider you already use, set the reply-to address to the agent's inbox, and the agent sees each reply as an event it can wait on. The same works for bounce notices and out-of-office messages.
Working with agents: MCP server, agent skill, supported agents#
Everything above is built to be driven by the agent, with no dashboard step in the middle.
- The MCP server. 23 tools, including
webhook_createwithemail: trueto open an inbox andrequest_awaitto wait for mail. One line adds it to Claude Code. - The agent skill. Instructions that teach a coding agent when to reach for an inbox and which commands to run.
- The CLI. Any agent that can run a shell command can use
npx otterkit, with--jsonoutput for scripts.
# Give Claude Code the full toolkit
claude mcp add otterkit -- npx otterkit mcp
# Or install the skill for Claude Code, Cursor, Codex and others
npx skills add useotterkit/skill -gThe skill works in Claude Code, Cursor, GitHub Copilot, Cline, Codex and Windsurf, and OpenClaw has its own plugin. The supported agents page has the setup line for each. The login is shared across the machine, so every agent uses the account you signed in with once.
Spend guardrails and security: limits, inspection, replay#
Giving an agent an address should not mean giving it an open-ended bill or a mailbox nobody can see into.
- A hard cap on spend. An endpoint with an inbox costs $0.01 an hour and never more than $3 in any 30 days. An agent that forgets to stop one can't run up a bill.
- Auto-stop. An endpoint stops by itself after 24 hours unless you pass another
--ttl, such as--ttl neverfor an address that should stay. - Limits on what senders can deliver. A message larger than 5 MB is rejected. Each endpoint accepts up to 100,000 requests and emails per rolling 30 days. The stored envelope is capped at 64 KB, and attachment contents are not stored, only their names, types and sizes.
- Nothing is silently dropped. Mail is rejected at SMTP time when the inbox is off, the endpoint has stopped or the address doesn't exist, so the sender gets a normal bounce with the reason.
- Inspection. Every message the agent received is in the console's inbox reader, with headers and the rendered email, and in inspect from the terminal. You can always see what your agent saw.
- Replay. Replay sends a stored message into your handler again, so you can debug how the agent treated an email without asking the sender for a new one.
OtterKit vs agentmail.to: inboxes plus tunnels and webhooks#
agentmail.to is an email provider built for AI agents, and it does more with email than OtterKit does. OtterKit treats email as one of several ways the outside world reaches an agent, next to webhooks and tunnels. AgentMail's side of this table comes from its home page↗ and pricing page↗, read on 24 November 2026. Check them for current numbers.
| OtterKit | agentmail.to | |
|---|---|---|
| Receive email | Yes, as JSON events. | Yes. |
| Send email | No. Inboxes are receive-only. | Yes, with threads, drafts and scheduled sending. |
| Addresses on your own domain | No. Addresses are <name>@otterkit.app. | Yes, with DKIM, SPF and DMARC. |
| Attachments | Names, types and sizes only. Contents are not stored. | Listed as a feature on every plan. |
| Getting mail to the agent | await from the CLI or MCP, stored history, or a forwarding rule to your URL. | Webhooks, WebSockets, SDKs, and IMAP and SMTP access. |
| MCP server | Yes, 23 tools across inboxes, webhooks and tunnels. | Yes. |
| Webhook endpoints for other services | Yes. The inbox and the webhook URL are the same endpoint. | Not listed. Its webhooks deliver email events. |
| Tunnels to localhost | Yes. | Not listed. |
| Pricing | Prepaid credits, no subscription. $0.01 an hour per endpoint, at most $3 in 30 days. | Free plan with 3 inboxes and 3,000 emails a month. Developer at $20 a month for 10 inboxes, Startup at $200 a month for 150. |
If your agent has to hold a conversation by email, with sending, threads and your own domain, agentmail.to is the better fit. Choose OtterKit when the agent mostly needs to receive: codes, confirmations, alerts and replies. You get that in the same kit as the webhooks and tunnels it already uses, with one login, one feed and one bill. The two also work side by side.
Pricing and getting started#
An inbox adds nothing to the price of the endpoint it sits on. An endpoint costs 1 credit, which is $0.01, for each hour it is live, and never more than $3 in any 30 days. A new account gets 10 free credits with no card, and the smallest pack is $5 for 500 credits. There is no subscription and no charge per message. See pricing for the full list.
npx otterkit login
npx otterkit webhook --email --daemon --subdomain my-agent --ttl never
npx otterkit await my-agent --method EMAIL --count 1 --jsonSend a message to my-agent@otterkit.app from your own mail client and the third command prints it. A name you pick is reserved to your account the first time you use it, and you can reserve up to 10.