---
title: "Deploy Code Server"
description: "Run VS Code in your browser, anywhere. It's Official code-server by Coder."
category: "Other"
url: https://railway.com/deploy/code-server-official
---

# Deploy Code Server

Run VS Code in your browser, anywhere. It's Official code-server by Coder.

**[Deploy Code Server on Railway](https://railway.com/template/code-server-official)**

- **Creator:** codestorm
- **Category:** Other
- **Total deploys:** 3

## Template content

### code-server https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Visual_Studio_Code_1.35_icon.svg/960px-Visual_Studio_Code_1.35_icon.svg.png

- **Image:** codercom/code-server:latest
- **Public domain:** Yes

## Documentation

# 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.

![Code Server](https://opengraph.githubassets.com/027231e34679f13d043884e2d69bd69e052e500e3bf7b5b03c72101eda21b724/codercom/code-server)

## 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

![VS Code Server](https://imgur.com/dThqAYW.png)

## 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**

```env
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.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/code-server-official
