Skip to content

PyPI version PyPI Downloads npm version npm Downloads Smithery Status License: MIT

Commune — Email & SMS Infrastructure for AI Agents

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.com or @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

Get started in 60 seconds

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

Integration matrix

Framework Python TypeScript MCP Cookbook
LangChain
CrewAI
OpenAI Agents SDK
Claude (tool_use)
Cursor
Windsurf
n8n

Get your API key →


commune.email · Docs · Status

Pinned Loading

  1. commune-python commune-python Public

    Python SDK for email & SMS in AI agents. Give your agent an inbox in 4 lines. LangChain, CrewAI, OpenAI Agents SDK, Claude — powered by Commune.

    Python 3

  2. commune-cookbook commune-cookbook Public

    Code recipes for email & SMS in AI agents — LangChain, CrewAI, OpenAI Agents SDK, Claude, n8n. Inbox, threading, webhooks, phone numbers. commune.email

    Jupyter Notebook 2 2

  3. commune-mcp commune-mcp Public

    Email & SMS for Claude Desktop, Cursor, and Windsurf. 13 tools: create inboxes, send email, read threads, provision phone numbers, send SMS. Install in 30s.

    Python 1

  4. commune-js commune-js Public

    JavaScript/TypeScript SDK for email & SMS in AI agents. Send email, receive webhooks, manage threads — give your agent an inbox in 4 lines. Powered by Commune.

    TypeScript 1

  5. commune-skill commune-skill Public

    Commune — agent-native email API skill. Give your AI agent its own @commune.ai email address via REST API.

    Python 1

  6. commune-cli commune-cli Public

    CLI for Commune email & SMS API. Manage domains, inboxes, messages, threads, webhooks, and DMARC from the terminal.

    Python

Repositories

Showing 10 of 15 repositories
  • commune-js Public

    JavaScript/TypeScript SDK for email & SMS in AI agents. Send email, receive webhooks, manage threads — give your agent an inbox in 4 lines. Powered by Commune.

    commune-dev/commune-js's past year of commit activity
    TypeScript 1 Apache-2.0 0 0 0 Updated Jun 26, 2026
  • commune-mcp Public

    Email & SMS for Claude Desktop, Cursor, and Windsurf. 13 tools: create inboxes, send email, read threads, provision phone numbers, send SMS. Install in 30s.

    commune-dev/commune-mcp's past year of commit activity
    Python 1 Apache-2.0 0 0 0 Updated Jun 26, 2026
  • commune-python Public

    Python SDK for email & SMS in AI agents. Give your agent an inbox in 4 lines. LangChain, CrewAI, OpenAI Agents SDK, Claude — powered by Commune.

    commune-dev/commune-python's past year of commit activity
    Python 3 Apache-2.0 0 0 0 Updated Jun 26, 2026
  • commune-cli Public

    CLI for Commune email & SMS API. Manage domains, inboxes, messages, threads, webhooks, and DMARC from the terminal.

    commune-dev/commune-cli's past year of commit activity
    Python 0 Apache-2.0 0 0 0 Updated Jun 26, 2026
  • commune-docs Public

    Commune documentation — agent-native email & SMS API docs. Powered by Mintlify.

    commune-dev/commune-docs's past year of commit activity
    MDX 0 0 0 0 Updated Jun 26, 2026
  • awesome-email-agents Public

    Curated list of email and SMS infrastructure, tools, and patterns for AI agents — SDKs, MCP servers, frameworks, and production examples

    commune-dev/awesome-email-agents's past year of commit activity
    0 3 0 2 Updated Jun 26, 2026
  • awesome-agent-protocols Public

    Curated list of protocols for AI agent communication — email, SMS, MCP, webhooks, inter-agent messaging, message queues, notification routing.

    commune-dev/awesome-agent-protocols's past year of commit activity
    1 MIT 6 1 5 Updated Jun 26, 2026
  • commune-openclaw-email-quickstart Public

    Quickstart: add email to OpenClaw agents with Commune — real inboxes, threading, and webhooks. Installable skills for OpenClaw.

    commune-dev/commune-openclaw-email-quickstart's past year of commit activity
    JavaScript 0 MIT 0 1 0 Updated Jun 26, 2026
  • commune-cookbook Public

    Code recipes for email & SMS in AI agents — LangChain, CrewAI, OpenAI Agents SDK, Claude, n8n. Inbox, threading, webhooks, phone numbers. commune.email

    commune-dev/commune-cookbook's past year of commit activity
    Jupyter Notebook 2 MIT 2 0 41 Updated Jun 26, 2026
  • commune-skill Public

    Commune — agent-native email API skill. Give your AI agent its own @commune.ai email address via REST API.

    commune-dev/commune-skill's past year of commit activity
    Python 1 0 0 0 Updated Jun 26, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…