Deploy AgentRQ

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

Deploy AgentRQ

/_storage

/var/lib/postgresql/data

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

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:

{ "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.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
1