Deploy AgentConnect
Multi-agent workspace: @-mention Claude Code, Codex & more in team threads
Control Plane
Just deployed
Just deployed
/var/lib/postgresql/data
Just deployed
Just deployed
Just deployed
Deploy and Host AgentConnect on Railway
AgentConnect is an open-source (Apache-2.0) multi-agent workspace. You give AI coding agents such as Claude Code, Codex, DeepSeek or any ACP runtime a role, then @-mention them in shared threads in its web console, Slack, Microsoft Teams, Discord, Telegram, GitHub, GitLab or Linear, where your team already works.
About Hosting AgentConnect
AgentConnect's server is a Control Plane (API and daemon gateway), a Relay (webhooks and chat-platform ingress), a Next.js web console and PostgreSQL. The agents themselves run in a daemon on a machine you choose, using that machine's own Claude Code or Codex login, so the server never needs an LLM API key. This template deploys v2.18.0 as separate services on Railway's private network. It runs database migrations on start, generates every secret, and puts a login-protected gateway on one public HTTPS URL. After deploy, sign in, open Daemons → Add daemon, and run the command it shows on your machine.
Common Use Cases
- Let a team @-mention coding agents in Slack, Discord or Telegram threads and follow their work together
- Run code review agents on GitHub or GitLab pull requests with their own instructions
- Start agent work from webhooks or schedules and keep the human decision in a shared thread
Dependencies for AgentConnect Hosting
- PostgreSQL (included, Railway Postgres 18 on a volume)
- A machine for the agent daemon (Node.js 22+) with your Claude Code, Codex or other agent CLI signed in
Deployment Dependencies
- AgentConnect source and docs: https://github.com/agentconnect-md/agentconnect
- Release v2.18.0: https://github.com/agentconnect-md/agentconnect/releases/tag/v2.18.0
- Self-hosting docs: https://www.agentconnect.md/docs
- Template repository: https://github.com/aalfath/agentconnect-railway-template
Implementation Details
Services in this template:
- Gateway (Caddy): the only public URL. It asks for the login (
adminand the generatedAGENTCONNECT_PASSWORD, shown in the Gateway's Variables tab) and routes/cpto the API and/relayto the Relay. Daemon sockets, API keys (Authorization: Bearer KEY) and signed webhooks pass with their own credentials. - Control Plane: API and daemon WebSocket gateway. Runs migrations on every start.
- Relay: webhooks, chat platforms and live chat.
- Web: the console.
- Postgres: all data, on a volume.
Connect your first daemon from Daemons → Add daemon. The command looks like npx -y @agentconnect.md/daemon@2.18.0 run --api-url wss://YOUR-DOMAIN/cp/daemon/ws --api-key KEY.
Without an OIDC provider, AgentConnect runs as one owner account, so the gateway login protects it. For several users with their own accounts, add Logto later (see the upstream sign-in guide). Left out on purpose: Logto, the optional Open Connector catalogue (no auth of its own, and a second volume), TURN/STUN (needs UDP), and the setup server. Every service fits 0.5 GB RAM (measured: Control Plane about 250 MB, Relay and Web about 85 MB each).
Updates: the services build from the template repository with upstream images pinned by version and digest. When a new release is tested there, Railway shows "update available" on your project. Read CHANGELOG.md first, then apply it. Migrations run automatically, and API_KEY_PEPPER must never change.
Why Deploy AgentConnect 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 AgentConnect 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

