2026-01-30 01:10:38 +08:00
2024-10-17 20:32:21 -08:00
2026-01-12 17:24:19 -09:00
2026-01-26 11:46:38 -09:00
2026-01-09 10:42:24 -09:00
2026-01-29 19:48:08 +08:00
2025-12-11 16:23:09 -09:00
2026-01-27 19:15:10 +08:00
2021-12-16 15:30:07 -06:00
2022-03-22 15:07:14 -05:00
2025-12-11 16:02:11 -09:00
2024-10-17 20:32:21 -08:00
2026-01-30 01:10:38 +08:00
2025-02-12 14:34:05 -09:00
2025-06-25 10:32:43 -08:00
2026-01-29 18:25:02 +08:00
2026-01-29 19:48:08 +08:00
2026-01-29 20:28:48 +08:00
2026-01-29 19:48:08 +08:00

Deploy and Host Claude Code Server on Railway

Claude Code Server Logo

Browser-based VS Code with Claude Code pre-installed. YOLO mode ready.

Deploy on Railway


Claude Code Server is a cloud-based VS Code environment with Claude Code CLI pre-installed. Deploy in 60 seconds and start AI-assisted coding directly in your browser. Runs as non-root clauder user with persistent storage for extensions, authentication, and workspace files.

About Hosting Claude Code Server

Hosting Claude Code Server on Railway provides a fully configured development environment accessible from any browser. The template handles user permissions, volume persistence, and Claude Code installation automatically. On first deploy, set your PASSWORD environment variable and attach a volume to /home/clauder. The entrypoint script manages permission fixes, user switching via gosu, and shell configuration. Your Claude authentication tokens, VS Code extensions, and workspace files persist across redeploys via the mounted volume.

Common Use Cases

  • Remote AI-assisted development Code with Claude from any device with a browser
  • Ephemeral dev environments Spin up isolated workspaces for experiments or client projects
  • Team onboarding Pre-configured environments for new developers with tools ready to go
  • CI/CD integration Use as a hosted development server for automated workflows

Dependencies for Claude Code Server Hosting

  • Railway account Free tier available
  • Anthropic API access For Claude Code authentication

Deployment Dependencies

Implementation Details

# YOLO mode - skip permission prompts
claude --dangerously-skip-permissions

# Or use the alias
claude-auto

# Interactive mode
claude

Environment Variables

Variable Required Default Description
PASSWORD Yes - Login password for code-server
CLAUDER_HOME Yes /home/clauder Volume mount path
CLAUDER_UID No 1000 User ID
CLAUDER_GID No 1000 Group ID
RUN_AS_USER No clauder Set to root if needed

Volume Configuration

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

Setting Value
Mount Path /home/clauder
Size 5GB+ recommended

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.


Credits

License: MIT

Languages
TypeScript 81.4%
Shell 14.5%
HTML 1%
CSS 0.8%
HCL 0.7%
Other 1.6%