Deploy T3 Code

Web UI for Claude Code, Codex and OpenCode agents, with pairing auth

Deploy T3 Code

/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

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:

  1. Copy T3_SETUP_PASSWORD from the service's Variables tab.
  2. 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).
  3. Sign an agent in: set ANTHROPIC_API_KEY, CLAUDE_CODE_OAUTH_TOKEN or OPENAI_API_KEY, or run claude auth login / codex login --device-auth in T3's terminal. Set GH_TOKEN to let agents push and open pull requests.
  4. Clone a repo into ~/workspace and 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

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