---
title: "Deploy AgentRQ"
description: "Human-in-the-loop task manager for AI coding agents, with MCP"
category: "AI/ML"
url: https://railway.com/deploy/agentrq-1
---

# Deploy AgentRQ

Human-in-the-loop task manager for AI coding agents, with MCP

**[Deploy AgentRQ on Railway](https://railway.com/template/agentrq-1)**

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

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

## Template content

### AgentRQ https://raw.githubusercontent.com/agentrq/agentrq/v0.17.4/frontend/public/agentrq.png

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

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

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

## Documentation

# Deploy and Host AgentRQ on Railway

AgentRQ is an open-source (AGPL-3.0) task manager for working with AI coding agents. You create tasks in a web app, your agents (Claude Code, Codex, Gemini CLI, Cursor and others) pick them up over MCP, and when an agent needs a decision or a permission it asks you in the app, in real time.

## About Hosting AgentRQ

AgentRQ is one Go binary that serves the web app, its API and the MCP endpoints your agents connect to. This template builds it from the official 0.17.4 image, pinned by digest, and runs it next to a Railway PostgreSQL database. Attachments, skills, Pano docs and hooks are kept on a Railway volume at `/_storage`. The JWT secret, the 32-byte encryption key and the root access token are generated at deploy time, so nothing needs to be typed in. Railway terminates HTTPS, and agents reach their workspaces at `https://YOUR-DOMAIN/mcp/WORKSPACE-ID`. It runs comfortably within 0.5 GB of RAM.

## Common Use Cases

* Hand coding tasks to Claude Code, Codex or Gemini CLI and answer their questions and permission requests from your browser or phone
* Keep one shared queue of agent work across several repositories and machines
* Give a small team a self-hosted inbox for human-in-the-loop approvals, with data in your own database

## Dependencies for AgentRQ Hosting

* AgentRQ server (built from `aalfath/agentrq-railway-template`, which pins `agentrq/agentrq:0.17.4`)
* PostgreSQL (Railway's managed Postgres service)

### Deployment Dependencies

* [AgentRQ on GitHub](https://github.com/agentrq/agentrq) and its [0.17.4 release](https://github.com/agentrq/agentrq/releases/tag/v0.17.4)
* [Production setup guide](https://github.com/agentrq/agentrq/blob/v0.17.4/docs/SETUP_PRODUCTION.md)
* [Template source](https://github.com/aalfath/agentrq-railway-template)

### Implementation Details

**Services:** `AgentRQ` (web app, API and MCP server on port 2026, health check `/readyz`, volume `/_storage`) and `Postgres` (database, own volume). AgentRQ waits for the database on start and migrates its schema itself.

**First sign-in:** open the service's **Variables** tab, copy `AGENTRQ_AUTH_ROOT_ACCESS_TOKEN`, open your Railway URL and sign in with it. The same token opens the admin pages at `/admin`, where you can add Google, GitHub or any OAuth2 sign-in for more users, SMTP and Slack. On first start AgentRQ copies its settings into the database, and from then on `/admin/config` is where they change. Keep `AGENTRQ_AUTH_WORKSPACE_TOKEN_KEY` as it is: the stored settings are encrypted with it.

**Connect an agent:** create a workspace, open its settings and copy the ready-made MCP config, or add it by hand:

```json
{ "mcpServers": { "agentrq": { "type": "http", "url": "https://YOUR-DOMAIN/mcp/WORKSPACE-ID?token=WORKSPACE-TOKEN" } } }
```

**Not included:** the built-in Let's Encrypt TLS (Railway provides HTTPS) and upstream's `WORKSPACE.mcp.DOMAIN` sub-domain URLs, which need wildcard DNS; this template uses path-based MCP URLs that work on any Railway or custom domain. The `agentrqd` machine daemon and the desktop app run on your own computer, not on Railway.

**Updates:** the service builds from a public GitHub repo. When a new AgentRQ version is pinned there, Railway shows an update notice in your project; read the repo's `CHANGELOG.md`, then apply it.

## Why Deploy AgentRQ 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 AgentRQ 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/agentrq-1
