Skip to main content

Give your agent an email inbox

Commune gives AI agents real email addresses. Your agent can send emails, receive replies, extract structured data from inbound messages, and track deliverability. Everything runs through a single API, SDKs for TypeScript and Python, or an MCP server for Claude/Cursor/Windsurf.

Quickstart

Get your agent connected in minutes.

TypeScript

npm install commune-ai

Python

pip install commune-mail

MCP Server

Claude Desktop, Cursor, Windsurf

REST API

Any language via HTTP

Source available

The entire platform is on GitHub: backend API, SDKs, MCP server, and dashboard. Licensed under BSL 1.1 (converts to Apache 2.0 after 4 years). See the contributing guide for details.

Ultra-quick start

Send your first email in under 30 seconds.
That’s it. Your agent now has an email address and can send messages.

What happens to every email

Commune sits between your agent and the outside world. Every email passes through security, validation, and enrichment before it reaches the other side.

Outbound

Rate-limited, validated, and checked against suppression lists before anything leaves. After delivery, Commune tracks the outcome: bounced addresses get suppressed, complaint rates are monitored, sending pauses if thresholds are breached.

Inbound

By the time an email reaches your webhook, it’s been parsed, threaded, scanned for threats and prompt injection, scored for spam, and extracted against your schema. Your agent gets a clean payload ready to act on.

Core concepts

Inboxes

Each agent gets one or more inboxes. An inbox is an email address like support@yourdomain.com that can send and receive email.

Threads

Related emails are automatically grouped into threads. Your agent can list threads, read messages, set status, add tags, and assign threads.

Domains

Use Commune’s shared domain to get started instantly, or add a custom domain with full DKIM/SPF/DMARC authentication.

Webhooks

Get notified instantly when emails arrive. Webhooks deliver the full parsed email, extracted data, and security context to your server.

SDKs

Every feature works through all four. The docs show examples for each.

Next steps

Get API Key

Create your API key and start sending emails immediately.

Quickstart

Build a complete email agent in 5 minutes — send, receive, extract data, and handle attachments.

Authentication

Understand API authentication and security best practices.

SDKs

Install and configure the SDK for your language.

Security

Learn how Commune handles DKIM, encryption, spam prevention, and more.
Last modified on March 19, 2026