
Deploy T3 Code
Run Claude Code and Codex on an always-on server you steer from your phone
T3 Code
Just deployed
/data
Deploy and Host T3 Code on Railway
T3 Code is an open-source app for controlling coding agents such as Claude Code and Codex from any computer or phone. The agents work on a server; you follow and steer their threads from the web app, the desktop app or the iOS and Android apps. This template runs that server on Railway, so your agents keep working when your laptop is closed.
About Hosting T3 Code
This template runs one service from the official node:24-bookworm image:
- T3 Code (
t3 serve) on port 3773 with a public HTTPS domain, installed by the official installer, which picks up the newest release on each start - The Claude Code and Codex CLIs, installed or updated from npm on each start (
T3CODE_AGENT_CLIS) - A volume at
/data, used as the home folder: T3 Code's database, paired devices, agent sign-ins and your repositories in/data/workspacessurvive redeploys Access is protected by T3 Code's own pairing: only a device that presents a one-time pairing token gets a session. After deploy:
- Open the service's Deploy Logs and find the lines
Token:andPairing URL:. The token is valid for a few minutes. - Open
https://YOUR-RAILWAY-DOMAIN/pair#token=THE-TOKEN(or open your domain and paste the token). In the mobile or desktop app, add an environment withhttps://YOUR-RAILWAY-DOMAINand the token. - Sign in to Claude or set up Codex on the welcome screen. The sign-ins are kept on the volume.
- Clone a repository into
/data/workspacesand open it as a project. Need another device later, or the token expired? Restart the service and use the new token from the Deploy Logs, or runt3 pairin arailway sshsession.
Common Use Cases
- An always-on server for Claude Code and Codex threads you start and review from your phone
- Long agent runs that keep going after you close your laptop
- One place for agent threads shared by your desktop, browser and mobile apps
- A clean cloud workspace for side projects, separate from your own machine
Dependencies for T3 Code Hosting
- A Claude or ChatGPT subscription, or API keys, for the agents you use
- The T3 Code web, desktop or mobile app to connect with
Deployment Dependencies
- T3 Code: https://github.com/pingdotgg/t3code (MIT)
- Remote access guide: https://github.com/pingdotgg/t3code/blob/main/docs/user/remote-access.md
Implementation Details
- The start command runs the official installer (
https://t3.codes/install.sh), which downloads a release only when a newer one exists, thennpm install -gfor the agent CLIs into/data/.local, thent3 servein/data/workspaces. T3CODE_HOST=0.0.0.0andT3CODE_PORT=3773make the server reachable through Railway's proxy, which adds HTTPS.- Set
T3CODE_AGENT_CLISto the npm packages you want (empty skips the step). A restart updates T3 Code and the CLIs. - Anyone with a paired device can run commands in the container through the agents and terminal. Revoke devices in Settings, Sharing & access.
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
T3 Code
node:24-bookworm
