# CarlyEmail — real email inboxes for AI agents

> Real email inboxes for AI agents. Create an inbox with one API call, then send, receive, thread and reply over REST or MCP.

Source: https://carlyemail.com/

---

Give the agent you already built its own address. It sends, receives and replies in the thread, over MCP, SDKs or REST. Keep LangChain, OpenAI, Claude, Vercel, Mastra, eve, Cloudflare, or your own runtime.

- [Add email to your agent](https://docs.carlyemail.com/integrations/agent-email)
- 3 inboxes and 1,000 emails a month. No card.

Yes — you can use your own domain, so your agent sends from `agent@yourcompany.com`. [How custom domains work →](https://docs.carlyemail.com/guides/custom-domains)

## Give your agent an inbox

```
Read https://docs.carlyemail.com/llms.txt and set yourself up with an email address.
```

Or the MCP server:

```
https://api.carlyemail.com/mcp
```

Steps for [Claude](https://carlyemail.com/claude) · [Claude Code](https://carlyemail.com/claude-code) · [ChatGPT](https://carlyemail.com/chatgpt) · [Codex](https://carlyemail.com/codex) · [Cursor](https://carlyemail.com/cursor) · [VS Code](https://carlyemail.com/vscode) · [Gemini CLI](https://carlyemail.com/gemini) · [OpenClaw](https://carlyemail.com/openclaw) · [Grok](https://carlyemail.com/grok) · [Perplexity](https://carlyemail.com/perplexity)

## How it connects

- **1. Address** A real inbox on our domain or yours.
- **2. Tools** MCP, TypeScript, Python, CLI, or REST.
- **3. Trigger** A signed webhook or WebSocket event wakes your runtime.
- **4. Continuity** `thread_id` resumes the right agent conversation.

## Works with

[LangChain / LangGraph](https://docs.carlyemail.com/integrations/langchain) · [OpenAI Agents SDK](https://docs.carlyemail.com/integrations/openai-agents) · [OpenAI Agents API](https://docs.carlyemail.com/integrations/openai-agents#the-agents-api) · [Claude Agent SDK](https://docs.carlyemail.com/integrations/claude-agent-sdk) · [Vercel AI SDK](https://docs.carlyemail.com/integrations/vercel-ai-sdk) · [Mastra](https://docs.carlyemail.com/integrations/mastra) · [Vercel eve](https://docs.carlyemail.com/integrations/eve) · [Cloudflare Agents](https://docs.carlyemail.com/integrations/cloudflare-agents) · [any MCP client](https://docs.carlyemail.com/guides/mcp)

```ts
npm install carlyemail

import { CarlyEmail } from "carlyemail";
const carly = new CarlyEmail();

// A real address, right now.
const inbox = await carly.inboxes.create({ username: "hello" });

// Whatever people sent it.
const { messages } = await carly.messages.list(inbox.email);

// Your answer, inside their thread.
await carly.messages.reply(inbox.email, messages[0].message_id, {
  text: "On it.",
});
```

```python
pip install carlyemail

from carlyemail import CarlyEmail
carly = CarlyEmail()

# A real address, right now.
inbox = carly.inboxes.create({"username": "hello"})

# Whatever people sent it.
messages = carly.messages.list(inbox["email"])["messages"]

# Your answer, inside their thread.
carly.messages.reply(inbox["email"], messages[0]["message_id"], {"text": "On it."})
```

```bash
$ npx carlyemail signup

Your email (for the confirmation code): you@example.com
Inbox name [agent-4f2a]: hello

✓ hello@carlyemail.com

$ npx carlyemail messages hello@carlyemail.com
$ npx carlyemail reply hello@carlyemail.com --last --text "On it."
```

```bash
curl -X POST https://api.carlyemail.com/v0/inboxes \
  -H "authorization: Bearer $CARLYEMAIL_API_KEY" \
  -H 'content-type: application/json' \
  -d '{"username": "hello"}'
```

## What you get

- **Inboxes** One call. No dashboard, no waiting.
- **Threads** Replies land in the conversation, not beside it.
- **Webhooks** Pushed the second mail arrives.
- **Attachments** In and out, up to 25 MB.
- **Your own domain** SPF, DKIM and DMARC set up for you.
- **MCP** Live email tools for any compatible agent.
- **Teams** Share an inbox. Assign threads, leave notes.
- **Allow and block lists** Choose who can reach your agent.
- **Inbox agent** Write instructions; it replies, labels and forwards. [How](https://docs.carlyemail.com/guides/inbox-agent)
- **Search** Gmail's syntax: `from:`, `has:attachment`, `newer_than:7d`.

## People and agents, one inbox

Invite your team to the inbox your agent works. Assign a thread to whoever should take it, leave a note, and see who sent each reply. [Teams →](https://docs.carlyemail.com/concepts/team)

## What people ask their agent

- **Bills and documents** “Make an inbox for invoices. When one arrives, read the PDF and tell me the amount and due date.”
- **Guest and customer email** “Answer what comes into reservations from our FAQ. Assign anything about refunds to Maria.”
- **Signing up for things** “Make yourself an inbox, start the trial, and read the confirmation code yourself.”
- **Order notices** “Read the order emails in the sales inbox and send me a summary every evening.”

Built with it: a [coding agent you email a task](https://github.com/UseCarly/carlyemail-examples/tree/main/coding-agent), a [support desk](https://github.com/UseCarly/carlyemail-examples/tree/main/support-desk) that hands the rest to a person, and an [OpenAI agent](https://github.com/UseCarly/carlyemail-examples/tree/main/openai-sandbox) that emails back its files.

## Questions

### What is CarlyEmail?

Email inboxes for AI agents. Each agent gets its own address, on carlyemail.com or your own domain, and sends, receives and replies in threads over MCP, the TypeScript and Python SDKs, the CLI or REST. CarlyEmail is the email layer: your agent keeps running where it runs now.

### Is it a real email address?

Yes. It receives mail from Gmail, Outlook and anything else, and the mail it sends passes SPF, DKIM and DMARC.

### Can an agent set itself up?

Yes, with one sign-up call and no key. Until its owner confirms a six-digit code, the account can email only that owner.

### Does it work with Claude and ChatGPT?

Yes. Add `https://api.carlyemail.com/mcp` as a custom connector and sign in. Any app that takes a remote MCP server works the same way. [MCP guide](https://docs.carlyemail.com/guides/mcp)

### What does it cost?

$0 for 3 inboxes and 1,000 emails a month, with no card. Startup is $20 a month for 25 inboxes and 10,000 emails; Business is $200 a month for 250 inboxes and 100,000 emails. Every plan gets every feature. [Pricing](https://carlyemail.com/pricing)

### Will my agent’s mail reach the inbox?

Mail is authenticated with SPF, DKIM and DMARC, sent over TLS, and never gets tracking pixels or rewritten links. Mail people expect is what lands best: an agent answering someone who wrote first is rarely marked as spam. [Deliverability](https://docs.carlyemail.com/guides/deliverability)

### What stops someone emailing instructions to my agent?

Spoofed mail, spam and blocked senders are held back before your agent sees them. For the rest, the rule is that what an email says is data, not instructions. [Untrusted mail](https://docs.carlyemail.com/guides/untrusted-mail)

### How is it different from AgentMail, Resend, Nylas or Mailtrap?

Side by side, with what each does better: [AgentMail](https://carlyemail.com/vs-agentmail) · [Resend](https://carlyemail.com/vs-resend) · [Nylas](https://carlyemail.com/vs-nylas) · [Mailtrap](https://carlyemail.com/vs-mailtrap)

## Pricing

$0 for 3 inboxes and 1,000 emails a month, with no card. $20 and $200 above that. [See the plans →](https://carlyemail.com/pricing)
