Claude Code on Railway
Anthropic's terminal coding agent, run on an always-on Railway dev box you reach from any device.
Claude Code is Anthropic's agentic coding tool. It runs in your terminal, reads a codebase, edits files, runs commands and works through multi-step tasks, and you sign in with a Claude account or an Anthropic API key.
Because it is most useful on a machine that stays online, many people run it on a remote box inside tmux so long tasks keep going after the laptop is closed. It is commonly used next to other coding agents such as OpenAI Codex CLI, Gemini CLI and OpenCode.
Claude Code is proprietary software under Anthropic's terms, not open source. The Railway templates install it unmodified from Anthropic's official npm package and use it with your own subscription or API key.
What Claude Code can do
- Terminal agent that reads code, edits files and runs commands
- Sign in with a Claude account or an Anthropic API key
- Works alongside Codex CLI, Gemini CLI and OpenCode
- Persistent home directory for projects and CLI logins
- Browser IDE or web terminal plus SSH access
- tmux sessions that outlive your connection
What people use it for
- Long refactors that keep running while your laptop is offline
- A consistent dev environment reachable from a tablet or locked-down laptop
- Remote Claude Code sessions over SSH or VS Code Remote-SSH
- Trying several coding agents on the same repository
Videos
Running Claude Code on Railway
Two templates cover Claude Code. The AI Coding Workstation runs a code-server (VS Code in the browser) image on Ubuntu 24.04 with Claude Code, Codex CLI, Gemini CLI and OpenCode preinstalled and optional SSH through a TCP proxy. The Ubuntu 26.04 dev box runs OpenSSH plus a password-protected status page and browser terminal with the same CLIs. Each is a single service with a volume at /home, so cost follows the CPU and memory it uses; idle, the dev box uses about 130 MB of RAM.
Claude Code templates on Railway
Tracklayer templates are listed first. Other Claude Code templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about Claude Code
Is Claude Code open source?
No. It is proprietary and used under Anthropic's terms. The templates install the official package unmodified and do not include any subscription or key.
Which template should I choose?
Choose the AI Coding Workstation if you want VS Code in the browser. Choose the Ubuntu 26.04 dev box if you prefer SSH, VS Code Remote-SSH or a browser terminal and a lighter footprint.
How do I sign in to Claude Code?
Run claude in the terminal and follow the login URL, or set ANTHROPIC_API_KEY as a variable. You bring your own Claude subscription or API key.
What persists across redeploys?
Everything under the home directory on the volume, including projects and CLI logins. Packages installed with sudo apt reset on redeploy unless you list them for reinstall.
Can a team share one box?
Both templates are single-user machines. For a team, deploy one box per person. Railway's Fair Use Policy applies, for example no shared shell access.
Guides
Similar apps
Tracklayer maintains the templates marked as such; Claude Code is a trademark of its owners and this site is not affiliated with them.