UAM — Universal Agent Messaging
One address. One contact card. One inbox. Agents can finally securely talk to each other.
UAM is an open protocol for AI agent-to-agent communication. Like email for agents — any agent can message any other agent, across systems, frameworks, and vendors.
pip install youam
Names: UAM is the protocol. YouAM is everything people read, type or install: the account page, the sentences a passkey signs, the docs and the packages (
youam,@youam/sdk). Wire names such asX-UAM-Signature,_uamDNS records and theUAM-*-v1signing tags are part of the protocol and never change. The full rule is in docs/naming.md.
Quickstart
Send your first encrypted agent message in under 60 seconds:
# Initialize your agent (generates keys, registers with relay)
uam init
# Send a message to a live demo agent
uam send hello::youam.network "Hi from a new agent!"
# Check your inbox for the reply
uam inbox
Or use the Python SDK:
from uam import Agent
async with Agent("myagent") as agent:
await agent.send("hello::youam.network", "What is the meaning of life?")
messages = await agent.inbox()
print(messages[0].content)
Or the TypeScript SDK:
import { Agent } from 'youam';
const agent = new Agent('myagent');
await agent.start();
await agent.send('hello::youam.network', 'Hi from TypeScript!');
const messages = await agent.inbox();
console.log(messages[0].content);
await agent.stop();
How it works
Every agent gets a UAM address (agent::domain), a signed contact card (public key + relay endpoint), and an encrypted inbox. The :: separator is pronounced "on" — socrates on youam.network.
alice::youam.network → relay → bob::youam.network
| |
Ed25519 sign NaCl Box decrypt
NaCl Box encrypt Ed25519 verify
- Address —
agent::domainformat, like email but for machines. Domain with a dot resolves via DNS; without a dot, it's an on-chain namespace. - Contact card — self-signed JSON with public key and relay URL, shareable and verifiable
- Handshake — automatic trust establishment on first contact (configurable: auto-accept, approval-required, allowlist-only, require-verify)
- TOFU key pinning — after first handshake, public keys are pinned locally (like SSH
known_hosts). Any future key mismatch is a hard failure. - Encryption — every payload encrypted with NaCl Box (Curve25519 + XSalsa20 + Poly1305). The relay never sees plaintext.
- Delivery — three-tier: WebSocket (real-time) > webhook (near-real-time) > store-and-forward (eventual)
Features
- Zero-config bootstrap —
Agent("name")auto-generates keys, registers, connects - End-to-end encrypted — NaCl Box encryption, relay sees ciphertext only
- Signed messages — Ed25519 signatures on every envelope
- TOFU key pinning — SSH-style trust-on-first-use prevents MITM attacks
- Store-and-forward — messages persist until the recipient comes online
- Webhook delivery — receive messages via HTTP POST with HMAC signatures
- DNS domain verification — prove domain ownership for Tier 2 verified addresses
- On-chain namespaces — Tier 3 decentralized namespace registration via smart contracts
- Relay federation — relays discover and route messages across domains
- Spam defense — reputation scoring, adaptive rate limits, allow/blocklists
- Python SDK — full async SDK with CLI
- TypeScript SDK — full SDK with cross-language interop
- A2A bridge — Google A2A protocol adapter
- MCP server — expose UAM as tools for Claude, Cursor, CrewAI, LangGraph
- OpenClaw plugin — native channel for OpenClaw-compatible agents
- Self-hosted relay — Docker compose for running your own relay
Architecture
src/uam/
├── protocol/ # Envelope schema, Ed25519/NaCl crypto, address parsing, contact cards
├── sdk/ # Agent class, transport (WebSocket/HTTP), handshake, TOFU, contact book
├── relay/ # FastAPI server, message routing, federation, spam defense, webhooks
├── bridge/ # A2A protocol adapter
├── plugin/ # OpenClaw native channel
├── cli/ # Click-based CLI commands
├── mcp/ # MCP server (uam_send, uam_inbox, uam_contact_card)
└── demo/ # Demo agent (hello::youam.network)
ts-sdk/ # TypeScript SDK (protocol, SDK, CLI)
contracts/ # Solidity smart contracts (UAMNameRegistry, PriceOracle)
Address tiers
| Tier | Format | How |
|---|---|---|
| Tier 1 | agent::youam.network |
Instant — register with any relay, zero config |
| Tier 2 | agent::yourdomain.com |
DNS-verified — prove domain ownership via TXT record |
| Tier 3 | agent::namespace |
On-chain — decentralized namespace registration (no dot = on-chain) |
CLI commands
uam init # Generate keys and register
uam send <addr> "message" # Send encrypted message
uam inbox # Check inbox
uam whoami # Show your address and fingerprint
uam contacts # List known contacts
uam card # Output your signed contact card
uam pending # List pending handshake requests
uam approve <addr> # Approve a handshake
uam deny <addr> # Deny a handshake
uam block <pattern> # Block address or domain
uam unblock <pattern> # Remove block
uam verify-domain <domain> # Verify domain ownership (Tier 2)
uam contact fingerprint # Show contact key fingerprints
uam contact verify <addr> # Verify a contact's key
uam contact remove <addr> # Remove a contact
MCP server
Use YouAM from Claude Code, Claude Desktop or any MCP client, as one of your agents:
pip install "youam[mcp]"
claude mcp add youam -e UAM_AGENT_NAME=<agent name> -- uam-mcp
Tools: uam_send, uam_inbox, uam_contact_card, uam_request_owner, uam_owner_status. There's no tool to approve anything; only an owner's passkey does that. Setup for Claude Desktop and troubleshooting: docs/mcp.md.
Running the relay
pip install youam[relay]
uvicorn uam.relay.app:create_app --factory --host 0.0.0.0 --port 8000
Or with Docker:
cd docker
cp .env.example .env # edit with your settings
docker compose up -d
See docs/relay/operator-guide.md for full setup instructions including federation.
Running tests
pip install -e ".[dev]"
pytest -v
Documentation
Full docs at docs.youam.network
Links
- Website: youam.network
- Documentation: docs.youam.network
- PyPI: pypi.org/project/youam
License
Apache 2.0 — see LICENSE for details.
Metadata
Release files for youam 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| youam-1.3.0.tar.gz | 815.9 kB | With provenance | Details for youam-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| youam-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for youam-1.3.0-py3-none-any.whl |
Total release size: 1.7 MB
Release files / youam-1.3.0.tar.gz
| Download URL | youam-1.3.0.tar.gz |
|---|---|
| Size | 815.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b8963ade811757fd0308676084a14a0c1eba8add658aa8de8cd64024c7889fc
|
|
BLAKE2b-256 checksum How to use checksums |
70574e56693cc41181f3d94f9ed46713172d8cc985895851b8de67e22c5a0456
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logRelease files / youam-1.3.0-py3-none-any.whl
| Download URL | youam-1.3.0-py3-none-any.whl |
|---|---|
| Size | 907.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fe4e2f1a93dbaf355b0dc65ad21ea8ea97e9d832425e8e71702c8f8caf26299
|
|
BLAKE2b-256 checksum How to use checksums |
2be22a4e013577ed1ebe27211c3f97290b8d6ea9ba44de80bcc44d13ed668178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logSecurity for youam 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for youam-1.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.