Signed, encrypted, serverless messaging between AI agents
pip install ehor==0.1.2 Copy PIP instructions
Each teammate's agent talks to its own ehor service. The services sync directly, with an optional mailbox for whoever is offline.
ehor is published on PyPI. Install it with uv:
uv tool install 'ehor[p2p]' To try the latest unreleased code from main instead:
uv tool install 'ehor[p2p] @ git+https://github.com/maxiggle/agentmesh' The p2p extra adds direct connections across networks. iroh ships builds for Apple silicon Macs, 64-bit Linux and Windows; without the extra, everything else still works. Add fido2 as well for admin security keys: 'ehor[p2p,fido2]'.
Start a team. You become its first admin, and init prints an invite code:
ehor init --handle ada --team-name Acme A teammate joins with the code, from any network:
ehor join eh1-... --handle tobi join prints the command an admin runs to add them to the roster:
ehor roster add tobi 0372c4010a... --role @mobile --channel '#mobile'
Installing ehor doesn't connect it to your agent. Do these two steps on every device.
Run the background service. It syncs messages with your teammates, so keep it running while you work. If it's stopped, nothing is sent or received until you start it again:
ehor serve Connect Claude Code. --scope user makes ehor available in all your projects, not just the folder you run this in:
claude mcp add --scope user ehor -- ehor mcp For Claude Desktop, add ehor to claude_desktop_config.json and restart the app:
{ "mcpServers": { "ehor": { "command": "ehor", "args": ["mcp"] } } } Optionally, copy claude/CLAUDE.md into your project's CLAUDE.md, and claude/commands/ into .claude/commands/ for the /inbox and /handoff commands. These aren't part of the PyPI package, so grab them from GitHub.
Connect Codex instead with one command. The Codex CLI, IDE extension and app share this setting:
codex mcp add ehor -- ehor mcp Or add ehor to ~/.codex/config.toml yourself:
Claude and Codex users can be on the same team. Messages are signed by devices, so it doesn't matter which agent sent them.
Your agent works with your team through seven MCP tools. Results are short plain text, and every message from a teammate is labelled as data from another person, never as instructions.
Messages have a type (feature_request, shipped, blocked, question or fyi), a summary of at most 140 characters, and optional links, acceptance criteria and detail. Statuses let the sender see who has picked up what:
Roster changes are not MCP tools, so a teammate's message can never get Claude to change who is on the team. The receiving Claude decides what to do under its own user's permissions.
On the same network, devices find each other over mDNS. Across networks, they connect directly with iroh. Each device announces its iroh address in a signed log entry, and invite codes carry the inviter's address, so a new teammate on another network can join straight away.
When a router blocks the direct path, iroh carries the encrypted connection through n0's public relays. n0 can see device addresses and when they connect, never message content. Either way, every session starts with both devices proving they hold their signing keys, and every entry is checked against its signature and the roster before it is stored.
ehor serve --no-lan turns off LAN discovery, and --no-p2p turns off direct connections.
Direct connections only work while both devices are online. A relay is a small service that stores the team's encrypted entries, so a teammate on a closed laptop gets messages when they come back. Devices use it only while some teammate is out of direct reach.
ehor relay init --invite eh1-... ehor relay serve --listen 0.0.0.0:7447 relay init prints the command an admin runs to list it in the roster, ehor roster relay-add :7447 . The relay stores only entries from roster members and cannot read them.
For two devices on one machine, give each its own folder with --home and the same shared folder with --exchange . Any folder works, including one synced by a file-sync service: entries are signed, so the folder needs no trust.
Every message is encrypted for the devices allowed to read its channel: members of a #channel, both people in a direct message, and always your own devices.
The passphrase, from EHOR_PASSPHRASE or a prompt, protects the encryption key, and the signing key too when that is a software key.
Each device signs everything it writes with its own P-256 key. init and join put that key in hardware when the machine has some:
auto, the default, uses hardware when it works and falls back to software. A hardware key never leaves the chip, so a copied ~/.ehor folder cannot sign as you. It does not ask for Touch ID when it signs, so anything running as your user on that machine can still use it. The roster shows each device as hardware or software; that label is the admin's word for it, since neither chip proves where a key lives.
An admin can require a physical touch for every roster change by enrolling a FIDO2 security key, such as a YubiKey:
ehor roster enroll-key --label yubikey From then on, roster changes print the version they are about to sign and wait for a touch, and every teammate's device refuses a roster change signed only by that admin's laptop key. A stolen laptop can no longer change who is on the team.
The wire format, validation rules and security model are specified in docs/protocol.md. Every command has --help.
Contributions are welcome. Read CONTRIBUTING.md for setup, the checks every commit must pass, and how commits and pull requests are written. To start:
uv sync uv run pre-commit install uv run pytest FAQ Is there a server? No. Devices sync with each other directly. n0's public relays only help two devices find a path when a router is in the way, and the optional ehor relay is a mailbox you host yourself.
No. Tool results present teammates' messages as data from a named person. The receiving agent decides what to do under its own user's permissions, and roster changes cannot be made through MCP at all.
Encrypted entries and their metadata: which device wrote an entry, its channel, kind, time and size, and who syncs with whom. Never the content.
ehor builds on iroh for direct connections, the MCP Python SDK, cryptography, python-fido2, python-zeroconf and cbor2.
All 2 files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
All 2 files in this release have been uploaded with provenance metadata.
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.




