Claude Code on Railway

Anthropic's terminal coding agent, run on an always-on Railway dev box you reach from any device.

Official site · 22 Railway templates

Deploy Claude Code on RailwayCompare templates

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

What is Claude Code? · Claude
How Claude Code Works · Claude
Claude Code - Full Tutorial for Beginners · Tech With Tim

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

AI Coding Workstation (Claude Code, Codex, Gemini CLI)Maintained by Tracklayer
Deploys a cloud development box with VS Code in the browser (code-server), a terminal and optional SSH. Claude Code, OpenAI Codex CLI, Gemini CLI and OpenCode come preinstalled at
2 deployments
Deploy
Ubuntu 26.04 SSH + Claude Code + CodexMaintained by Tracklayer
An always-on Ubuntu 26.04 LTS dev box with SSH and a browser terminal. Claude Code, OpenAI Codex CLI, Gemini CLI and OpenCode are preinstalled, so agents keep working in tmux after
23 deployments
Deploy
Claude Code SSH by an independent creator
Run Claude Code from your phone over hardened, post-quantum SSH.
89 deployments
Deploy
Ubuntu Linux + Claude Code (Browser Terminal + SSH) by an independent creator
Claude Code, Codex and Gemini CLI on Ubuntu 24.04, home dir on a volume
34 deployments
Deploy
Ubuntu Dev Box (SSH + Claude Code) by an independent creator
Persistent Ubuntu 24.04 dev box: SSH + browser terminal, Claude Code
29 deployments
Deploy
hermes agent: easy self-improving option for open claw, claude code, codex and more by an independent creator
The simplest curated setup for an Hermes Agent. Curated by impacte.tech
23 deployments
Deploy
Claude Code on mobile by an independent creator
Use Claude Code on mobile via SSH
17 deployments
Deploy
Ubuntu + Claude Code by an independent creator
Claude Code on Ubuntu 26.04 in your browser and over SSH
10 deployments
Deploy
Claude Code Terminal - Ubuntu 24.04 by an independent creator
Browser terminal on Ubuntu 24.04 with Claude Code pre-installed.
8 deployments
Deploy
Claude Code by an independent creator
Claude Code, git, gh, Node, Python. Browser terminal + SSH, home persists.
7 deployments
Deploy
CloudCLI (Claude Code UI) – Web UI for Claude Code & Codex by an independent creator
Claude Code, Codex and OpenCode in your browser with automatic updates.
7 deployments
Deploy
T3 Code | Always-On Cloud Agent Box for Claude Code & Codex by an independent creator
Run Claude Code, Codex and OpenCode 24/7; drive them from T3 web or mobile
7 deployments
Deploy
code-server (w/ Claude Code + Codex) by an independent creator
VS Code in the browser with Claude Code and Codex, plus Node and Python.
5 deployments
Deploy
hermes agent: easy multi-model option for codex, open claw, claude code, codex and more by an independent creator
The simplest curated setup for an Hermes Agent. Curated by impacte.tech
5 deployments
Deploy
OmniRoute Claude Code by an independent creator
Run Claude Code through your own multi-provider gateway
4 deployments
Deploy
Claude Code UI by an independent creator
CloudCLI: Claude Code, Codex and OpenCode in the browser, with a login
2 deployments
Deploy
OpenMausBot | Open-Source AI Bot Team on Claude Code & Codex by an independent creator
AI bot team chat on your Claude Code and Codex logins, with a browser
2 deployments
Deploy
9Router Claude Code by an independent creator
Route Claude Code through 40+ providers with fallback
1 deployments
Deploy
AI Coding Box: Debian + SSH + Claude Code, Codex, Gemini by an independent creator
Debian SSH box with Claude Code, Codex and Gemini CLI preinstalled
0 deployments
Deploy
AI Coding Box: Ubuntu + SSH + Claude Code, Codex, Gemini by an independent creator
Ubuntu SSH box with Claude Code, Codex and Gemini CLI preinstalled
0 deployments
Deploy
AI Coding Workstation: Claude Code, Codex, Gemini by an independent creator
Browser VS Code and terminal with Claude Code, Codex and Gemini CLI
0 deployments
Deploy
Claude Code Headless by an independent creator
Run Claude Code non-interactively with claude -p on a server
0 deployments
Deploy

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.