Deploy Code Server
Run VS Code in your browser, anywhere. It's Official code-server by Coder.
code-server
Just deployed
Deploy and Host Code Server Official on Railway
Code Server Official is the official open-source project by Coder that runs Visual Studio Code in the browser. Deploy a full-featured IDE on any machine and access it from anywhere — no local install required. Edit code, use the terminal, install extensions, and develop remotely with the same VS Code experience you already know.
About Hosting Code Server Official
This template deploys the official codercom/code-server image on Railway with password authentication. Before deploying, you set your own password in the template form. A persistent volume is mounted at /home/coder so your projects, settings, and extensions survive restarts. After deploy, open the public URL, enter the password you chose, and start coding immediately in a full VS Code environment running in the cloud. Ideal for remote development, demos, teaching, or when you need a consistent IDE without managing a local setup.
Login
- Password: the one you set before clicking Deploy
- No username required — password only

Common Use Cases
- Remote development from any device (laptop, tablet, or phone)
- Consistent cloud IDE for freelancers and small teams
- Teaching / workshops without requiring local VS Code installs
- Quick throwaway environments for testing or demos
Dependencies for Code Server Official Hosting
- None beyond this template
- Optional: Git repositories you want to clone into the workspace
Deployment Dependencies
- code-server (official): https://github.com/coder/code-server
- Docker image: https://hub.docker.com/r/codercom/code-server
- Documentation: https://coder.com/docs/code-server
- Railway Templates: https://docs.railway.com/templates
Implementation Details
Service
| Setting | Value |
|---|---|
| Image | codercom/code-server:latest |
| Port | 8080 |
| Volume | /home/coder |
| Start Command | (default / empty) |
Environment variables
PASSWORD= # required — set this before deploy
Why choose this template?
| Feature | This Template (Railway) | GitHub Codespaces / Other paid platforms |
|---|---|---|
| Free tier available | ✅ | ❌ Paid after limited free hours |
| Official code-server image | ✅ | ❌ Often proprietary or restricted |
| One-click deploy | ✅ | ❌ More setup / account linking |
| Persistent workspace volume | ✅ | ✅ |
| You choose your own password | ✅ | ❌ Manual or complex auth setup |
| Full VS Code experience in browser | ✅ | ✅ |
| No vendor lock-in | ✅ | ❌ Tied to GitHub / cloud account |
| Simple password auth | ✅ | ❌ SSO / complex auth often required |
| Runs on your own Railway project | ✅ | ❌ Hosted only on their platform |
Why Deploy Code Server Official 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 Code Server Official 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
code-server
codercom/code-server:latestPASSWORD
