[Open source email platform 0](https://github.com/opensendhq/opensend)

# Email for developers, agents and marketing teams

Open source email, built privacy first. Send and receive in one place, and host it yourself so your data lives in your own database. Every feature, on your server or ours.

[Get started](https://opensend.sh/sign-in)

or self-host on

*A preview of the console*

Works on

[Nextmail](https://opensend.sh/providers/nextmail) [Your server](https://opensend.sh/self-host)

[One-click installs Hetzner DigitalOcean Fly.io](https://opensend.sh/self-host)

Send

## Send transactional, marketing or any email with one call.

Call it from the SDK, the API, the CLI or an MCP tool. The answer says what happened to the message.

### One request from wherever you already work.

TypeScript

### One answer that says what happened to the message.

- Batch
  Several emails in one call.
- Schedule
  Now, or at a time you set.
- Attach
  Files, tags and your own headers.
- Repeat safely
  With a key, a retry sends once.

Templates

## Start from a design that is ready.

Pick a ready-made template, change it in the editor and publish it. Every send fills in its variables.

[More on templates](https://opensend.sh/features/templates) [View all templates](https://opensend.sh/templates)

- Variables
  A send that lacks a value is refused.
- Two copies
  Emails use the published one, never the draft.
- Versions
  Every publish is kept, and any one can be restored.
- Alias
  Send by id, or by a name you choose.

AI

## AI first.

An assistant is built into every page of the console. Ask it for a template, an answer or a change in plain words. It reads by itself and asks before it changes anything.

[How the assistant works](https://opensend.sh/features/ask-anything)

- Templates by asking
  Describe the email and get it back as blocks you can edit by hand. A later request changes one block.
- Answers from your data
  Why a send failed, which domain is waiting, who bounced. It reads your emails, domains and logs with your permissions.
- It knows the page
  Leave page context on and it knows which screen you are looking at.
- You confirm every change
  A change comes back as one card. It runs when you confirm, with no model involved.

### Ask for an email. It builds the template in blocks and waits for your yes.

Write a welcome email for new sign-ups, with one button.

*The design the assistant proposed*

- Console
  The assistant is one key away on every page.
- Tools
  119 tools, one for each method an agent may call.
- Docs
  Every docs page has a Markdown twin and opens in ChatGPT, Claude or Perplexity.
- Model
  On a server of your own you choose the model.

MCP

## Your agent gets every method.

Connect any MCP client to one address. It gets a tool for each method, within the scopes of its key.

[Connect your agent](https://opensend.sh/agents)

`https://api.opensend.sh/v1/mcp`

Works with

- [Claude](https://opensend.sh/agents/claude)
- [Claude Code](https://opensend.sh/agents/claude-code)
- [Cursor](https://opensend.sh/agents/cursor)
- [Codex](https://opensend.sh/agents/codex)
- [GitHub Copilot](https://opensend.sh/agents/github-copilot)
- [Gemini CLI](https://opensend.sh/agents/gemini-cli)
- [v0](https://opensend.sh/agents/v0)
- [Bolt](https://opensend.sh/agents/bolt)
- [Lovable](https://opensend.sh/agents/lovable)
- [Replit](https://opensend.sh/agents/replit)

One address to add to any agent that speaks MCP.

mcp.json

```
{
  "mcpServers": {
    "opensend": {
      "url": "https://api.opensend.sh/v1/mcp",
      "headers": {
        "Authorization": "Bearer os_xxxxxxxxx"
      }
    }
  }
}
```

### Say what you want. Your agent calls a tool, and the console shows the result.

*An agent calling the tools of the MCP server*

*The console after the call*

- Tools
  One per method, named after the API.
- Scopes
  A key limits what an agent may do.
- Effects
  Each tool says whether it reads, writes, sends or deletes.
- Assistant
  The console has its own. It asks before a change.

Developers

## See every event. Test before you send.

Signed webhooks that retry, a sandbox that sends nothing and a log of every call.

[Read the docs](https://opensend.sh/docs)

### Signed and retried. An endpoint that is down gets the event later.

[How webhooks work](https://opensend.sh/features/webhooks)

### A sandbox that sends nothing. A test key simulates every email, and a test address ends the way its name says.

[How the sandbox works](https://opensend.sh/docs/sandbox)

- Scoped keys
  A key does what its scopes allow, and no more.
- Logs
  Every call a key makes, with its status and time.
- Try it
  Each method page in the docs sends a real request.
- OpenAPI
  One document that describes every method.

Console

## One console for all of it.

Design the email, set what sends it and read what happened. Every page has its API.

### Build it from blocks. Drag one in, click to edit and see it on a phone. Try it.

[Learn more](https://opensend.sh/features/templates)

Features

## Everything around the send.

Domains, inbound mail, contacts, suppressions, keys and logs. Each has its page and its API.

[See every feature](https://opensend.sh/features)

- [Email API](https://opensend.sh/features/email-api): Send one email or a batch, now or at a time you set.
- [Inbound](https://opensend.sh/features/inbound): Mail sent to your domain arrives as an event you can read.
- [Domains](https://opensend.sh/features/domains): SPF, DKIM and DMARC records, checked against live DNS.
- [Audiences](https://opensend.sh/features/audiences): Contacts in groups, with who unsubscribed.
- [Suppressions](https://opensend.sh/features/suppressions): The addresses you must not send to, in one list.
- [Webhooks](https://opensend.sh/features/webhooks): Delivered, opened, bounced and complained, posted to your endpoint.
- [API keys](https://opensend.sh/features/api-keys): Full access, or sending only.
- [Logs](https://opensend.sh/features/logs): Every call a key makes, with its status and its time.
- [Migrate from Resend](https://opensend.sh/migrate/resend): Change two lines in your .env and keep your code.

Pricing

## Up to 87% less than Resend.

One plan covers the emails your app sends and the ones your marketing sends. Resend bills those as two plans.

[See the plans](https://opensend.sh/pricing)

- Free
  Free here
  5,000 emails and 2,000 contacts a month
  - **Here**: $0
  - **Resend**: $60
  - **Mailgun**: from $15
- Pro
  87% less than Resend
  75,000 emails and 15,000 contacts a month
  - **Here**: $20
  - **Resend**: $155
  - **Mailgun**: from $67.50
- Max
  84% less than Resend
  200,000 emails and 60,000 contacts a month
  - **Here**: $90
  - **Resend**: $575
  - **Mailgun**: from $200

Resend's price is its plan for the emails plus its marketing plan for the same contacts. Mailgun's is its lowest listed price for the emails alone. Both were read from their pricing pages on December 5, 2026. For the emails alone the gap to Resend is smaller, and at some sizes it is not in our favour. The pricing page shows every size.

[Resend's prices](https://resend.com/pricing) [Mailgun's prices](https://www.mailgun.com/pricing/)

Open source

## Yours to change.

It is open source, so you can add what you need, take out what you do not and run the rest as it is.

[Open the repository](https://github.com/opensendhq/opensend) [How we work](https://opensend.sh/about)

1. Add
   Declare a method once and it is on REST, the SDK, the CLI and MCP.
2. Remove
   Take a method off the list and it is gone from every one of them.
3. Keep it small
   A server of your own is one service, with its data in one folder.

- Nothing held back
  No feature is kept back for a paid edition.
- Privacy first
  Host it and everything is in your own database.
- Secrets sealed
  A key is kept as a hash and shown once.
- Same code
  What our cloud runs is what you clone.

Hosting

## Three ways to run it.

We host it, you host it, or you host it and the sending too. It is the same code each way.

[Use our cloud](https://opensend.sh/sign-in) [Host it yourself](https://opensend.sh/self-host)

Clone it, and one command starts the whole stack on your machine.

Terminal

Three ways

1. [We host it Sign up, add a domain and send. There is nothing to install.](https://opensend.sh/sign-in)
2. [You host it, on Nextmail Your server and your data. Sending goes through your own Nextmail key, and you pay Nextmail for what you send.](https://opensend.sh/providers/nextmail)
3. [You host it, without Nextmail Soon The sending engine runs on your server too, and you pay Nextmail nothing.](https://opensend.sh/self-host)

[See the plans](https://opensend.sh/pricing)

On a cloud server, one file and one command.

Soon

- Hetzner
- DigitalOcean
- or any other that runs Debian or Ubuntu

Questions

## Before you start.

Short answers to what people ask first.

### The basics

**What is OpenSend?**

An email platform you can run yourself: an API for sending and receiving, a console for your team and an MCP server for agents. The same code runs our cloud and a server of your own.

**Who is it for?**

Developers who send email from code, marketing teams who send broadcasts and build automations, and agents that do both through MCP.

**Is it open source?**

Yes. The whole product is built in one repository you can clone, and no feature is kept back for a paid edition. Its licence will be in the repository, and until it is there this page names none.

**Who is behind OpenSend?**

The team that builds Nextmail, the email infrastructure it runs on.

**Can I use the cloud today?**

Not yet. The hosted service is planned and is not open, and no date is given here.

**Is OpenSend part of Resend?**

No. OpenSend is an independent project. Resend is a trademark of its owner.

### Sending

**What does it send through?**

Through Nextmail: sending, DNS records and delivery events with one key, and you pay Nextmail for what you send. Hosting the sending engine on a server of your own, with no Nextmail bill, comes later.

**Which address can I send from?**

Any address on a domain the workspace has verified. A template can carry a sender, so a request that names a template can leave it out.

**How long does verification take?**

As long as DNS takes to spread, so a first check may still find nothing. Check again once the records are published. The domain is also checked by itself when Nextmail reports a change.

**Can I receive email too?**

Yes. Mail for any address on a domain of your workspace is stored and shown in the console, and a webhook tells your app that it arrived.

**Can I test without sending real email?**

Yes. A key that starts with os_test_ sends to nobody: each email is simulated and says so. With a live key, an address such as bounced@opensend.test does the same, and the name before the @ decides how the email ends. Test emails are never billed.

**Is there SMTP?**

Not yet. It is marked Soon in the menu. Today anything that can make an HTTPS request can send: your own code, a script that runs the CLI or an agent over MCP.

### Building

**Do you have SDKs of your own?**

Yes. A TypeScript SDK for Node.js, Bun, Deno and edge runtimes, and a CLI with one command for every method.

**Do I have to write HTML?**

No. Build the template from blocks, and the HTML and the plain text are made for you. You can turn it into HTML later and keep what the blocks made.

**How does my app learn what happened to an email?**

Through webhooks. An endpoint gets a signed request for what happens to an email you send, for mail that arrives and for the runs of an automation. A request that fails is tried again.

**Are opens and clicks always counted?**

Only for domains with tracking on. Open tracking is on by default and click tracking is off, and every domain has its own two switches.

**Do I have to use all of it?**

No. Each feature stands by itself. Send with the API alone, and add templates, broadcasts or automations when you need them.

**What is not built yet?**

SMTP, which the menu marks Soon, and hosting the sending engine on a server of your own. Until then mail goes out through Nextmail.

### AI and agents

**Is there an assistant built in?**

Yes. The console has one on every page. It answers from your own emails, domains and logs, and a change it wants to make waits until you confirm it.

**Can AI write my templates?**

Yes. Ask the assistant, or your own agent, for an email and it builds a template from blocks. A later request can change a single block. In the console nothing is saved until you confirm.

**Can the assistant change something without asking?**

No. A tool that changes, sends or deletes is never carried out by asking. It comes back as one proposal, and it runs only when you confirm.

**How does an agent use it?**

Through MCP. Add the server address and an API key to your agent, and every method becomes a tool it can call. The scopes of the key limit what it may do.

**Does the model see my API keys?**

No. A new key or a signing secret is returned by the change you confirmed, which runs with no model involved. In what the model does read, fields named token, secret, hash and password are hidden.

**Which model does the assistant use?**

On our cloud, a model reached through OpenRouter. On a server of your own you choose the model with one value, and the assistant stays off until you give it a key.

### Price

**Is there a free plan?**

Yes. Free costs nothing: 5,000 emails a month, 2,000 contacts, 5 domains and 5 people on the team.

**What happens when I pass my limit?**

On Free, sending stops at 5,000 emails until the first of the next month. On Pro and Max nothing stops: every extra 1,000 emails cost $0.70 on Pro and $0.45 on Max, counted by the email.

**Do marketing emails cost extra?**

No. One plan covers the emails your app sends, the broadcasts you send to an audience and the mail you receive. Each has its own count for the month, and all three are in the price.

**Can I pay by the year?**

Yes, and 2 months of the year are free: Pro costs $200 a year and Max costs $900.

**Who takes the payment?**

Polar. Cards are taken by Polar at checkout.

**When do the counts start again?**

Emails and API requests are counted by calendar month, in UTC, and start again on the first. Contacts, domains and team members are counted as they stand.

### Hosting and help

**Can I host it myself?**

Yes. The dashboard, the API and the MCP server are one program, and a server of your own runs the same code as our cloud.

**What does it cost to run?**

Nothing to us. You pay your host for the server, and Nextmail for what you send.

**Where is my data stored?**

On our cloud, in one Cloudflare D1 database, which the API reads and writes. When you host OpenSend yourself, it is a SQLite file in one folder on your own server. An email you send is handed to Nextmail to be delivered.

**I use Resend today. How do I move?**

Point the Resend SDK at OpenSend with one setting and keep your code. An import then brings over your domains, contacts, templates and broadcast drafts.

**Can I get my data out?**

Yes. The console exports contacts, the suppression list and the logs as CSV files, and the API lists everything a page at a time.

**How do I reach you?**

With the contact form on the Support page. A person reads the message and answers by email. A bug that others should see belongs in the issues of the repository.

## Send your first email in a few minutes.

Create a key and send, or clone the repository and run it yourself.

[Get started](https://opensend.sh/sign-in) [Star on GitHub 0](https://github.com/opensendhq/opensend)
