---
title: "Deploy AgentConnect"
description: "Multi-agent workspace: @-mention Claude Code, Codex & more in team threads"
category: "AI/ML"
url: https://railway.com/deploy/agentconnect
---

# Deploy AgentConnect

Multi-agent workspace: @-mention Claude Code, Codex & more in team threads

**[Deploy AgentConnect on Railway](https://railway.com/template/agentconnect)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/agentconnect/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### Control Plane https://raw.githubusercontent.com/agentconnect-md/agentconnect/v2.18.0/packages/web/src/app/apple-icon.png

- **Source:** https://github.com/aalfath/agentconnect-railway-template
- **Health check:** /readyz

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### Relay https://raw.githubusercontent.com/agentconnect-md/agentconnect/v2.18.0/packages/web/src/app/apple-icon.png

- **Source:** https://github.com/aalfath/agentconnect-railway-template
- **Health check:** /readyz

### Web https://raw.githubusercontent.com/agentconnect-md/agentconnect/v2.18.0/packages/web/src/app/apple-icon.png

- **Source:** https://github.com/aalfath/agentconnect-railway-template
- **Health check:** /

### Gateway https://raw.githubusercontent.com/agentconnect-md/agentconnect/v2.18.0/packages/web/src/app/apple-icon.png

- **Source:** https://github.com/aalfath/agentconnect-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# 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 (`admin` and the generated `AGENTCONNECT_PASSWORD`, shown in the Gateway's Variables tab) and routes `/cp` to the API and `/relay` to 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.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/agentconnect
