A browser IDE lets you code from any device: a Chromebook, a tablet with a keyboard, a borrowed computer or a locked-down work laptop. code-server gives you the familiar VS Code interface with the files, terminals and tools running on your VPS. Because it is open source, it can also be self-hosted for a team, which Microsoft's own VS Code Server licence does not allow.
Installation
- Use the official install script (read it first), a release package for your distribution, or the official Docker image.
- Run it as a systemd service for your user (the packages include a service template) so it starts on boot.
- Edit
~/.config/code-server/config.yamlto set the bind address, authentication and password.
Keep bind-addr at 127.0.0.1:8080 so it is only reachable through your reverse proxy.
HTTPS Reverse Proxy
Serve code-server on a subdomain with a valid certificate. With Nginx, pass the Upgrade and Connection headers for WebSockets and set the Host header; Caddy handles this automatically. Without WebSocket support, the editor will not load properly. HTTPS is essential, because browser features the IDE relies on, such as clipboard access and service workers, need a secure context.
Authentication
code-server's built-in authentication is a single password. For anything beyond personal use, strengthen it:
- Use a long random password stored in a password manager, or a hashed password in the config.
- Put an authenticating proxy in front, such as OAuth2 Proxy or Authelia, for SSO and two-factor authentication.
- Or restrict access to a VPN or trusted IP addresses.
- Add rate limiting on the login path at the proxy.
The IDE includes a terminal with your user's permissions: access to code-server is shell access to the server.
Extensions
code-server uses the Open VSX registry rather than Microsoft's marketplace, because Microsoft's marketplace terms restrict use to Microsoft products. Most popular open-source extensions are available on Open VSX; some proprietary ones are not. You can also install extensions from VSIX files where their licences allow.
Previewing Apps
code-server includes a proxy that serves apps running on local ports at paths like /proxy/3000/ or, with a wildcard domain configured, at port subdomains. The proxied apps sit behind code-server's authentication, so you do not need to open ports in the firewall.
Multiple Users
code-server is designed for one user per instance. For a team, run one instance per developer (each as its own Linux user or container, on its own subdomain), or use a platform such as Coder that provisions workspaces on demand. Avoid sharing one instance between people, since everyone would share the same user, files and terminal.
Persistence and Environment
In Docker, mount volumes for the project directory and code-server's configuration and extensions, so nothing is lost when the container is recreated. Install language toolchains in the image or on the host, and keep editor settings in a dotfiles repository.
Security
- HTTPS only, with strong authentication in front.
- Run as a non-root user; avoid adding that user to the docker group unless necessary.
- Keep code-server updated; it tracks VS Code releases and security fixes.
- Do not store production secrets on the server.
- Monitor logins at the proxy and alert on unusual activity.
Alternatives
OpenVSCode Server from Gitpod is another open-source build of VS Code for the browser. If you prefer the desktop VS Code app with a remote server, use Remote-SSH (see our VS Code Server guide). For the broader picture, see our remote development servers guide.
Performance Tips
Pick a server region close to your users for responsive typing, exclude large folders such as node_modules from file watching, and keep dependency caches on the server's NVMe. Browsers can hold many tabs and terminals open; close unused ones so the server does not keep idle processes running.
Sizing
| Use | Suggested plan |
|---|---|
| Scripting, notes, small web projects | 2 vCores / 8 GB |
| Full-stack development with Docker | 4 vCores / 16 GB |
| Several developers, one instance each | 8 vCores / 32 GB with per-user limits |
Example: A Coding Bootcamp
A bootcamp gives each student a code-server instance in a container with Node.js, Python and Git preinstalled, on an 8 vCore / 32 GB VPS. Each instance has its own subdomain behind OAuth2 Proxy with the bootcamp's accounts, per-container CPU and memory limits keep things fair, and students push their work to the bootcamp's Gitea server (see our Gitea guide).
Common Mistakes
- Binding code-server to all interfaces without HTTPS.
- Relying on a weak single password.
- Reverse proxy without WebSocket headers.
- Sharing one instance between several people.
- Expecting every Microsoft marketplace extension to be available.
In Short
code-server brings VS Code to your browser from a VPS. Bind it to localhost, publish it over HTTPS with WebSockets, add strong authentication, use Open VSX extensions, preview apps through its proxy, run one instance per user and keep work in Git.
Keeping Work Safe
Treat the server as a workspace, not the only copy of your code. Push branches to your Git server several times a day, back up the home directory or take snapshots to protect unpushed changes and local databases, and keep the setup in scripts so a replacement instance can be ready quickly if the server fails.
ServoMix Plans for This Workload
code-server itself is light; your projects decide the size. 2 vCores / 8 GB suits scripting and small web projects; 4 vCores / 16 GB for full-stack development with Docker.
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| SMX vPro XS (AMD EPYC) | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹420/mo | Websites, small APIs, bots, staging and VPN servers | Order |
| SMX vPro S (AMD EPYC) | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹560/mo | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| SMX vPro M (AMD EPYC) | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹840/mo | Production databases, high-traffic sites, multi-container apps | Order |
| SMX vPro L (AMD EPYC) | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹1,120/mo | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Intel Xeon Platinum 8269CY VPS
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| SMX vCore XS (Intel Xeon) | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹270/mo | Business websites, small apps, scheduled jobs and bots | Order |
| SMX vCore S (Intel Xeon) | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| SMX vCore M (Intel Xeon) | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| SMX vCore L (Intel Xeon) | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,248/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the ServoMix store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.
Frequently Asked Questions
What is code-server?
Which port does code-server use?
Why does code-server not load behind Nginx?
Is code-server's password enough?
Can I use Microsoft marketplace extensions?
Can several people share one code-server?
How do I preview a web app?
Is code-server the same as VS Code Server?
Can code-server run in Docker?
Which plan suits code-server?
Related Guides
Frequently Asked Questions
What is code-server?
An open-source project from Coder that runs VS Code on a server and serves it in your browser.
Which port does code-server use?
8080 by default; bind it to localhost and publish it through a reverse proxy with HTTPS.
Why does code-server not load behind Nginx?
WebSocket upgrade headers are probably missing from the proxy configuration.
Is code-server's password enough?
For personal use with a strong password, possibly; for teams add an authenticating proxy, SSO or VPN.
Can I use Microsoft marketplace extensions?
code-server uses Open VSX; most open-source extensions are available, some proprietary ones are not.
Can several people share one code-server?
It is designed for one user per instance; run separate instances or use a platform like Coder.
How do I preview a web app?
Use code-server's built-in proxy at /proxy/PORT/ or port subdomains, behind its authentication.
Is code-server the same as VS Code Server?
No. code-server is open source by Coder; VS Code Server is Microsoft's remote backend with its own licence.
Can code-server run in Docker?
Yes, with volumes for projects, configuration and extensions.
Which plan suits code-server?
2 vCores / 8 GB for small projects; 4 vCores / 16 GB for full-stack development.
Your feedback helps us continuously improve ServoMix guides.
Know someone who may find this guide useful?
