Building an agent startup? Apply now →

OpenMail vs Cloudflare Email for AI agents

OpenMail vs Cloudflare Email · Updated November 2026Cloudflare gives Workers agents email routing and sending. OpenMail gives any agent a full inbox. The right one depends on where your agent runs.

Where they differ

FeatureOpenMailCloudflare
Agent addressown inbox, by APIaddress routed to an instance
Domainomail.sh or yours, any DNSCloudflare DNS only
Inbound eventparsed body + attachment textraw message; you parse it
Threads + searchbuilt inbuild it yourself
Agent runs onany stackWorkers, for inbound
Inbound pricein planfree, unlimited
SendingEUR 9/mo, 10,000 emailsUSD 5/mo, 3,000, then USD 0.35/1,000
MCPhosted serverCloudflare MCP server

Inbox or routing rule

A customer emails your agent a PDF invoice. What does the agent get?

Cloudflare

A Worker gets the raw message. Your code parses it, stores the PDF and keeps the thread in agent state.

OpenMail

The message lands in its thread, with the PDF stored and its text in the event.

Pricing

OpenMail ProEUR 9/mo for 10 inboxes and 10,000 emails, then EUR 1 per inbox
CloudflareInbound free. Sending on Workers Paid: USD 5/mo, 3,000 emails, then USD 0.35 per 1,000
At scaleCloudflare costs less per email; OpenMail prices per agent inbox

Using both

DomainKeep DNS on Cloudflare; point a subdomain at OpenMail
WorkersCall the OpenMail API with fetch
InboundWebhook to your Worker URL

Choose OpenMail if

Your agent runs outside Cloudflare Workers

You want inboxes, threads and search without building them

You need an address now, before you set up a domain

Each agent should get its own scoped key and sender rules

Three calls

1. Create the inbox. No domain needed to start.

bash
curl -X POST https://api.openmail.sh/v1/inboxes \
  -H "Authorization: Bearer $OPENMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mailboxName": "assistant", "displayName": "Acme Assistant"}'

2. Send. The inbox-scoped key can only send from this one inbox.

bash
curl -X POST https://api.openmail.sh/v1/inboxes/inbox_123abc/send \
  -H "Authorization: Bearer $OPENMAIL_AGENT_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"to": "customer@example.com", "subject": "Your invoice", "body": "Got it. Paying on Friday."}'

3. Reply in thread.

bash
curl -X POST https://api.openmail.sh/v1/inboxes/inbox_123abc/send \
  -H "Authorization: Bearer $OPENMAIL_AGENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to": "customer@example.com", "body": "Paid. Anything else?", "threadId": "thr_xyz"}'

Where Cloudflare has the edge

Inbound is free, and sending costs less per email. On Workers, the Agents SDK onEmail hook keeps state in Durable Objects. Agentic Inbox is open source. If your agents already run on Workers, you may not need us.

Building an agent startup?

€500 in usage credit for pre-seed, seed and bootstrapped teams. Six months on Pro.

Apply now →

Frequently asked questions.

Cloudflare gives Workers agents routing, sending and an onEmail hook; you build the inbox. OpenMail gives any agent a hosted inbox with threads, search and parsed attachments. If your agent already runs on Workers, Cloudflare may be enough.

Not as a separate object. Addresses on your domain route to agent instances, like support@ to a support agent. Storage, threads and search are up to your code.

Cloudflare inbound is free. Sending to any address needs Workers Paid (USD 5/mo minimum): 3,000 emails, then USD 0.35 per 1,000. OpenMail Pro is EUR 9/mo for 10 inboxes, then EUR 1 per inbox.

For Cloudflare Email Service, yes: it requires Cloudflare DNS. OpenMail works with any DNS provider, or with an @omail.sh address and no domain at all.

Yes. It is a REST API, so a Worker calls it with fetch. Point a webhook at your Worker URL to receive mail.

Every AI agent deserves its own inbox.

Start building today.

3 inboxes, 3,000 emails a month, no card required