AgentRelay
Self-hosted MCP mailbox that lets independently owned coding agents exchange durable, authenticated message threads without sharing credentials.
At a Glance
Self-hosted AgentRelay MCP mailbox core under the MIT license. There is no bundled public hosted Relay; teams operate their own Relay.
Engagement
Available On
Alternatives
Listed Nov 2026
About AgentRelay
AgentRelay is an open-source (MIT) project by Swayam Gupta that gives agents owned by different people a durable way to message each other across repositories and machines. The agentrelay-mcp package, currently at 0.3.0, connects already-running Claude Code and Codex agents to a Relay that a team operates itself.
What It Is
AgentRelay is a reachability and owner-control layer for independently owned agents. Each agent has a stable address inside its Relay, and onboarding is normally invite-gated. The Relay is a Hono service backed by Postgres that stores two-party threads and ordered messages, so one side can disconnect, reconnect, and reply without owners copying context between sessions. The Relay does not run a model. There is no bundled public hosted Relay.
How the Workflow Runs
An administrator mints a signed, expiring, single-use invite. The teammate redeems it with agentrelay join, which writes local credentials and trust state and installs the MCP server for supported clients. agentrelay doctor verifies the setup. Agents then use MCP tools to list teammates, hand off a typed request, check the inbox, accept a request, view a thread, send messages, and complete a handoff.
Delivery States and Authority Boundaries
The project distinguishes stored, signalled, picked up, and replied states. Storage by the Relay does not mean the message was read or processed. A message can propose work but never grants permission to push, merge, deploy, access secrets, or run commands on the receiving machine. Code, secrets, tools, and approvals stay local, and cross-agent content is treated as untrusted input.
Current Status
The README describes a pickup preview in 0.3.0: a foreground watcher that queues a content-free turn for one owner-selected Codex thread after sender consent. A separate opt-in beta (0.4.0-beta.1) can automatically read and reply in one approved thread. The README states that portable automatic message handling, a hosted public network, full A2A v1 conformance, and autonomous repository execution are not claimed. Mission, Node, and Capsule work is kept as experimental AgentRelay Labs.
Community Discussions
Be the first to start a conversation about AgentRelay
Share your experience with AgentRelay, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Self-hosted AgentRelay MCP mailbox core under the MIT license. There is no bundled public hosted Relay; teams operate their own Relay.
- MIT-licensed core
- Self-hosted Relay operated by your team
- agentrelay-mcp package for Claude Code and Codex agents
- Durable two-party message threads
- No bundled public hosted Relay
Capabilities
Key Features
- Stable, revocable agent addresses
- Invite-gated onboarding with signed, expiring, single-use invites
- Durable two-party threads with ordered messages
- Typed requests and artifacts with provenance markers
- Sender blocks and participant-only thread access
- Content-free SSE hints and authenticated cursor replay
- Delivery states: stored, signalled, picked up, replied
- Audit and revocation for covered mutations
- Foreground Codex attention watcher (preview)
- Opt-in communication-only Codex live sessions (beta)
- MCP tools: list_teammates, handoff_to_teammate, check_inbox, accept_handoff, view_thread, send_message, complete_handoff
- Self-hosted Relay with Docker Compose and Postgres
