alphasecio/agentgateway
An open source agentic proxy for AI agents and MCP servers.
Platform-specific configuration:
{
"mcpServers": {
"agentgateway": {
"command": "npx",
"args": [
"-y",
"agentgateway"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
agentgateway is an open source agentic proxy for AI agents and MCP servers. This template deploys agentgateway on Railway with the admin UI accessible via a single public port, using Caddy as a reverse proxy to route MCP traffic and the admin interface.
Caddy listens on Railway's $PORT and routes:
/ → agentgateway MCP endpoint (port 3000)This works around Railway's single public port constraint while keeping both the MCP endpoint and admin UI accessible.
Deploy on Railway using the one-click starter template below.
[](https://railway.com/deploy/zJkIuB?referralCode=alphasec)
Once deployed, open https://your-app.up.railway.app/ui to access the admin UI. Configure listeners, routes, and backends from there — changes are written back to config.yaml automatically.
To connect an MCP client, point it at https://your-app.up.railway.app/.
The template starts with a blank slate — no listeners, routes, or backends. Everything is configured via the UI after deployment.
To make static changes, fork this repo, edit config.yaml and redeploy. See the agentgateway configuration docs for the full schema.
Loading reviews...