Deploy T3 Code
Web UI for Claude Code, Codex and OpenCode agents, with pairing auth
Just deployed
/data
Deploy and Host T3 Code on Railway
T3 Code is an open-source (MIT) web interface for coding agents such as Claude Code, Codex and OpenCode. It gives you one place to start agent threads on your repos, review their diffs, use git worktrees and a terminal, and keep agents running while your laptop is closed.
About Hosting T3 Code
This template runs the headless T3 Code 0.1.11 server with its web app, built from a public GitHub repo with every version pinned: the T3 release archive by SHA-256 and the Node base image by digest. Claude Code, Codex, OpenCode, git and the GitHub CLI come preinstalled. One volume at /data holds your repos, agent logins and T3's threads, so everything survives redeploys. T3 Code's own pairing auth protects every request: open /railway-pair with the generated password to get a one-time link for each device. You bring your own agent login or API key. Plan for at least 1 GB of RAM (Hobby plan or higher).
Common Use Cases
- Run Claude Code, Codex or OpenCode on a cloud box and check in from any browser, the T3 Code desktop app or the mobile app
- Keep long agent tasks running on your repos while your own computer is off
- Review agent diffs, manage git worktrees and open pull requests from one web UI
Dependencies for T3 Code Hosting
- An account or API key for at least one coding agent (Anthropic, OpenAI/ChatGPT, or OpenCode's free models)
- At least 1 GB of RAM for the service (Railway Hobby plan or higher)
Deployment Dependencies
- T3 Code: https://github.com/pingdotgg/t3code
- Template source and changelog: https://github.com/aalfath/t3-code-railway-template
- Claude Code setup token: https://docs.anthropic.com/en/docs/claude-code
- OpenAI API keys: https://platform.openai.com/api-keys
Implementation Details
Services: one T3 Code service (public, health check /healthz) with a volume at /data (/data/workspace for repos, /data/home for logins and T3 state). No database is needed.
After deploy:
- Copy
T3_SETUP_PASSWORDfrom the service's Variables tab. - Open
https://YOUR-DOMAIN/railway-pair, enter the password and click "Pair this browser". Reload the page for a new one-time link for each extra device (links expire after 15 minutes). - Sign an agent in: set
ANTHROPIC_API_KEY,CLAUDE_CODE_OAUTH_TOKENorOPENAI_API_KEY, or runclaude auth login/codex login --device-authin T3's terminal. SetGH_TOKENto let agents push and open pull requests. - Clone a repo into
~/workspaceand start a thread.
Memory: T3 Code idles at about 320 MB and each agent turn adds 100 MB or more, so the Free plan's 0.5 GB is not enough for real use. Agents run as a normal user with passwordless sudo for apt-get; Docker-in-Docker is not available on Railway. T3 Connect (upstream's hosted relay) stays off unless you turn it on yourself.
Updates: versions are pinned in the repo's Dockerfile. When we publish a new version, Railway shows an "update available" notice in your project; read CHANGELOG.md and apply it. Data on the volume is kept.
Why Deploy T3 Code 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 T3 Code 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

