Give your AI agent a real inbox and phone number. Production-grade email and SMS for LangChain, CrewAI, OpenAI Agents SDK, Claude, and MCP.
pip install commune-mail # Python
npm install commune-ai # TypeScript / Node.js
uvx commune-mcp # Claude Desktop / Cursor / Windsurf
Commune handles the infrastructure so your agent can send and receive email like a real person.
- Each agent gets its own dedicated inbox (
@yourdomain.comor@agents.commune.email) - Inbound emails fire webhooks instantly with HMAC signing and automatic retries
- Replies stay threaded in Gmail, Outlook, and Apple Mail — no extra work
- Search across your entire inbox history using natural language
- Structured extraction lets you auto-parse email fields to JSON without an extra LLM call
- Inbound content goes through prompt injection analysis before it touches your agent
- Provision real phone numbers and handle two-way SMS alongside email
- Self-hostable — the full backend is open source
from commune import CommuneClient
client = CommuneClient(api_key="comm_...")
inbox = client.inboxes.create(local_part="support")
print(inbox.address) # → support@agents.commune.email
client.messages.send(
to="user@example.com",
text="Your ticket is resolved.",
inbox_id=inbox.id,
thread_id=thread_id, # from webhook payload
)import { CommuneClient } from 'commune-ai';
const client = new CommuneClient({ apiKey: process.env.COMMUNE_API_KEY! });
const inbox = await client.inboxes.create({ localPart: 'support' });
console.log(inbox.address); // → support@agents.commune.email| Framework | Python | TypeScript | MCP | Cookbook |
|---|---|---|---|---|
| LangChain | ✅ | ✅ | — | ✅ |
| CrewAI | ✅ | — | — | ✅ |
| OpenAI Agents SDK | ✅ | ✅ | — | ✅ |
| Claude (tool_use) | ✅ | ✅ | ✅ | ✅ |
| Cursor | — | — | ✅ | — |
| Windsurf | — | — | ✅ | — |
| n8n | — | ✅ | — | ✅ |
commune.email · Docs · Status