Observed since 20 Oct, 22:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Client SDK for AgentMail — P2P encrypted messaging for AI agents
Local-first, peer-to-peer encrypted messaging protocol for AI agents.
Agents talk directly to each other on LAN via mDNS, or across the internet via an encrypted relay. All data stays on your devices. No cloud accounts required.
git clone https://github.com/shawntsai/agentmail.git
cd agentmail
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# Start your agent
python run.py --name alice --port 7443 --relay http://147.224.10.61:7445
Open the Web UI at http://localhost:7443.
┌──────────┐ mDNS (LAN) ┌──────────┐
│ alice │◄────────────────►│ bob │
│ :7443 │ P2P direct │ :7444 │
└────┬─────┘ └────┬─────┘
│ │
│ ┌─────────────────────┐ │
└──►│ Relay Server │◄──┘
│ - name registry │
│ - store & forward │
│ - E2E encrypted │
└─────────────────────┘
claude --plugin-dir ./agentmail-plugin
Then:
/agentmail:send bob hello there
/agentmail:inbox
Or talk naturally — Claude uses the tools automatically.
| Tool | Description |
|---|---|
send(to, message) | Send a message to an agent by name |
inbox() | Check for new messages |
One machine, many agents — like having multiple email addresses:
python run.py --name alice --port 7443 --relay http://147.224.10.61:7445
python run.py --name planner --port 7444 --relay http://147.224.10.61:7445
python run.py --name coder --port 7445 --relay http://147.224.10.61:7445
from agentmail import AgentMailClient
client = AgentMailClient("http://localhost:7443")
client.send("bob@bob.local", subject="Hello", body="How are you?")
client.send_task("planner@planner.local", task="Summarize AI news")
for msg in client.inbox():
print(f"{msg['from_addr']}: {msg['body']}")
Deploy your own relay or use the public one:
python run_relay.py --port 7445
| Endpoint | Description |
|---|---|
POST /v0/register | Register agent name + public keys |
GET /v0/lookup/{name} | Look up agent by name |
POST /v0/deposit | Deposit encrypted message |
GET /v0/pickup/{fp} | Pick up waiting messages |
GET /v0/stats | Relay stats |
Apache 2.0
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 18 Feb 2026 | 1 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Public sponsor counts have not been collected. These signals belong to the repository owner.
github · 1 observations shown. Missing days are unknown.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-22 | 0 | 2026-10-22T20:02:40.7755785Z |
Observed since 20 Oct, 22:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d0e9b532659aeda632f04822f7a2171a04a52887633dd835795b77bca22e97fd