
Deploy Archon
Archon AI coding workflows: Claude Code/Codex runs with login and Postgres
Just deployed
/.archon
Just deployed
/var/lib/postgresql/data
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 and its v0.14.0 release
- Archon documentation and Docker deployment guide
- Template source repo
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.
Template Content
CLAUDE_API_KEY
Anthropic API key (sk-ant-api..., console.anthropic.com) or Claude Pro/Max token from claude setup-token (sk-ant-oat...)

