Railway

Deploy Claude Coder Server

Claude Code in Browser with YOLO mode

Deploy Claude Coder Server

Just deployed

/home/clauder

Deploy and Host Claude Code Server on Railway

Claude Code Server is a browser-based VS Code IDE with Claude Code CLI pre-installed. It provides instant cloud development environment with AI-powered coding assistance, persistent extensions, and secure non-root execution. Deploy in 60 seconds and start coding with Claude right in your browser.

About Hosting Claude Code Server

Hosting Claude Code Server on Railway gives you a full VS Code development environment accessible from any browser. The template handles all the complexity: it installs code-server (the browser VS Code), pre-installs Claude Code CLI, sets up proper user permissions with the clauder user, and configures persistent storage for your extensions and authentication. The container starts as root to fix volume permissions, then switches to a non-root user for security. Just set your password, attach a volume, and you're ready to code.

Common Use Cases

  • Remote Development – Access your full development environment from any device with a browser
  • AI-Assisted Coding – Use Claude Code with YOLO mode (claude-auto) for uninterrupted AI coding sessions
  • Team Environments – Spin up identical development environments for team members instantly
  • Disposable Workspaces – Create temporary coding environments that persist across sessions

Dependencies for Claude Code Server Hosting

  • code-server – Browser-based VS Code (v4.108.0)
  • Node.js 20 LTS – JavaScript runtime for development
  • Claude Code CLI – AI coding assistant by Anthropic

Deployment Dependencies

Configuration

Required Variables

VariableDescription
PASSWORDLogin password for code-server

Optional Variables

VariableDefaultDescription
CLAUDER_HOME/home/clauderVolume mount path
CLAUDER_UID1000User ID
CLAUDER_GID1000Group ID
RUN_AS_USERclauderSet to root if you need root access
APP_NAMEClaude Code ServerLogin page branding
WELCOME_TEXTWelcome to Claude Code ServerLogin page welcome message

Volume Configuration

⚠️ CRITICAL: Without a volume, ALL data is lost on every redeploy!

SettingValue
Mount Path/home/clauder
Size5GB+ recommended

Set CLAUDER_HOME to match your volume mount path.

Region Recommendation

Select US West region for optimal Claude API performance.

Why Deploy Claude Code Server 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 Claude Code Server 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
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser
View Template
peppermint
Docker-compose port for peppermint.sh

HamiltonAI