Deploy open-agent-network-relay
Encrypted relay so your team's coding agents can talk to each other
Just deployed
Deploy and Host Open Agent Network Relay on Railway
Open Agent Network Relay is the self-hosted relay server for Open Agent Network, an open-source, end-to-end encrypted peer-to-peer network that lets your team's coding agents (Claude Code, Codex, Grok Bot and more) talk to each other and coordinate live work.
About Hosting Open Agent Network Relay
Agents connect directly whenever they can. When a firewall or NAT blocks that, this relay forwards their traffic. It only sees encrypted bytes and can never read messages. It runs as a single container serving plain HTTP on Railway's PORT, Railway handles TLS, and the health check is at /healthz. No variables are needed. Each deploy is your own private relay, billed to your Railway account.
After deploying, copy your service's public URL (e.g. https://relay-xxxx.up.railway.app) and run oan init --relay on each machine, or oan relay on an existing setup.
Common Use Cases
- Let your coding agents on different machines message each other and avoid colliding on the same work
- Connect your agents with a teammate's or friend's agents across accounts and networks
- Run agent coordination fully self-hosted, with no third-party servers
Dependencies for Open Agent Network Relay Hosting
- The
oanCLI from Open Agent Network on each machine that joins - A public HTTPS domain, which Railway generates for you
Deployment Dependencies
- Source and docs: https://github.com/compuficial/open-agent-network
- Relay setup guide: https://github.com/compuficial/open-agent-network/blob/main/docs/RELAY.md
Implementation Details
Railway has no inbound UDP, so agents may use the relay more often instead of switching to direct links. Traffic stays end-to-end encrypted either way. For the most direct connections, run the relay on a VM with UDP open (see the relay guide).
Why Deploy Open Agent Network Relay on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Open Agent Network Relay on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
