How to run VS Code in the browser with code-server
Updated 7/20/2026
code-server runs the VS Code editor on your server and you access it from a browser. You code from any device, and the environment stays on the server.
1. Install with one click
Pick code-server from the app catalog when creating the server.
Or manually
curl -fsSL https://code-server.dev/install.sh | sh
systemctl enable --now code-server@root
2. Access the editor
code-server listens on port 8080 by default. The password is in ~/.config/code-server/config.yaml.
3. Securing it, mandatory
- Serve only over HTTPS through a reverse proxy.
- Use a strong password, the editor has full access to the server.
- Restrict access with the firewall.
Why it is useful
- The same dev environment from any device, even a tablet.
- The server's resources do the builds, not your laptop.
- You run and test next to the databases and services on the same server.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
Dev environments
How to create a systemd service for your app
Make your app start automatically and restart itself if it stops, with a systemd service.
Updated 7/20/2026Dev environmentsHow to keep sessions running after disconnect with tmux
tmux keeps your terminal sessions alive even after you close SSH, ideal for long-running tasks.
Updated 7/20/2026Dev environmentsHow to manage environment variables and secrets
Keep passwords and keys out of your code, in environment variables, safely and correctly.
Updated 7/20/2026