---
title: "Deploy Archon"
description: "Archon AI coding workflows: Claude Code/Codex runs with login and Postgres"
category: "AI/ML"
url: https://railway.com/deploy/archon-2
---

# Deploy Archon

Archon AI coding workflows: Claude Code/Codex runs with login and Postgres

**[Deploy Archon on Railway](https://railway.com/template/archon-2)**

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

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

## Template content

### Archon https://raw.githubusercontent.com/coleam00/Archon/v0.14.0/assets/logo.png

- **Source:** https://github.com/aalfath/archon-railway-template
- **Health check:** /api/health
- **Public domain:** Yes

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

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

## Documentation

# Deploy and Host Archon on Railway

Archon is an open-source harness builder for AI coding. It runs coding agents (Claude Code, Codex, Pi) through workflows you define in YAML, such as plan, implement, validate, review and open a pull request, so the same steps happen every time. A web UI shows chats, workflow runs, approvals and their logs.

## About Hosting Archon

This template deploys two services. **Archon** runs the web UI and API on the public URL, built from a public GitHub repo that pins the official Archon 0.14.0 image by digest; its volume at `/.archon` keeps workspaces, worktrees, the credential key and the agents' settings. **Postgres** stores conversations, runs and logins; Archon creates and upgrades its schema on start. Archon's login is on from the first deploy: the owner account is created from `ARCHON_ADMIN_EMAIL` and a generated `ARCHON_ADMIN_PASSWORD`, signup is closed, and the API answers only signed-in users. You supply one value: your Claude API key or subscription token.

## Common Use Cases

* Fix GitHub issues end to end: investigate, implement, validate and open a pull request with one workflow
* Run repeatable plan, implement and review loops with Claude Code or Codex on your own repositories
* Give a team a shared, logged-in web console for AI coding runs, with approvals and history

## Dependencies for Archon Hosting

* An Anthropic API key or a Claude Pro/Max token (`claude setup-token`) for the default Claude Code agent
* A GitHub token (`GH_TOKEN`, optional) to clone private repositories and open pull requests

### Deployment Dependencies

* [Archon on GitHub](https://github.com/coleam00/Archon) and its [v0.14.0 release](https://github.com/coleam00/Archon/releases/tag/v0.14.0)
* [Archon documentation](https://archon.diy) and [Docker deployment guide](https://archon.diy/deployment/docker/)
* [Template source repo](https://github.com/aalfath/archon-railway-template)

### Implementation Details

After deploy, open the Archon service's URL and sign in with `ARCHON_ADMIN_EMAIL` and `ARCHON_ADMIN_PASSWORD` (Archon service, Variables tab). To reset the password, change the variable and redeploy. Add a project under Settings, Projects (set `GH_TOKEN` for private repos), then start a chat or a bundled workflow.

Optional variables on the Archon service: `GH_TOKEN`, `CODEX_API_KEY` (Codex on an OpenAI key), `OPENROUTER_API_KEY` or `OPENAI_API_KEY` (Pi agent), `DEFAULT_AI_ASSISTANT` (`claude`, `codex`, `pi`), `ARCHON_AUTH_ALLOWED_EMAILS` (invite teammates), Slack, Telegram or Discord bot tokens, and `BETTER_AUTH_URL=https://YOUR-DOMAIN` for a custom domain.

Archon idles at about 180 MB of RAM and fits a 0.5 GB service; each running agent adds a few hundred MB, so use 1 to 2 GB for parallel workflows. The image is about 1.3 GB, so the first build takes a few minutes. Agents run in git worktrees inside the container; there is no Docker-in-Docker sandbox. Updates: Archon follows this template's GitHub repo, so Railway offers each new pinned version as an update, and Archon migrates its schema on start.

## Why Deploy Archon 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 Archon 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/archon-2
