Host VS Code Server on a VPS

Access VS Code from your browser and find a persistent cloud development environment, ready to use on an OVHcloud VPS. Your projects, extensions and terminals remain available between each session.
OVHcloud_Hosted_Private_Cloud_Photo4_600x400-100.jpg

Code in VS Code from your VPS

VS Code ServerVPSDocker
With Visual Studio Code Server, you get the VS Code experience directly from your browser: file explorer, integrated terminal, extensions, shortcuts and language servers remain available in a familiar interface. The difference lies in the execution: your environment runs on a persistent remote instance hosted on a VPS, accessible from different workstations without reinstalling your entire development chain. One-click deployment allows you to get started quickly with a pre-prepared foundation, while maintaining control over your configuration. You can then adapt the environment to your needs, manage your dependencies and consult the manual installation steps to understand the deployed components, size the necessary resources and scale your workspace according to your projects.
OVHcloud_Modernize_Your_App_White_1200x800.png

VPS-1

From

£3.31

ex. VAT/month

£3.97 incl. VAT/month

Specifications:

2 vCores

4 GB RAM

40 GB SSD NVMe

Daily backup of the previous 24 hours

VPS-2

From

£6.29

ex. VAT/month

£7.55 incl. VAT/month

Specifications:

4 vCores

8 GB RAM

75 GB SSD NVMe

Daily backup of the previous 24 hours

VPS-3

From

£9.01

ex. VAT/month

£10.81 incl. VAT/month

Specifications:

6 vCores

12 GB RAM

100 GB SSD NVMe

Daily backup of the previous 24 hours

VPS-4

From

£17.34

ex. VAT/month

£20.81 incl. VAT/month

Specifications:

8 vCores

24 GB RAM

200 GB SSD NVMe

Daily backup of the previous 24 hours

Installing VS Code Server on a VPS

Manually installing VS Code Server or code-server on a VPS consists of transforming a remote machine into a browser-accessible development environment. The first step is to connect to the server via SSH, with a user having the necessary rights, then update the system in order to start from a clean base and limit package incompatibilities. Depending on the chosen approach, you can install code-server directly on the host or run it in a container. With Docker, you must first install the containerisation engine if the VPS does not have it, then launch a code-server image by mounting a persistent volume to keep projects, extensions and settings. The container then listens on an internal port, which is exposed to the VPS in order to make the interface available from the outside. This exposure must always be secured. In practice, access is limited by a firewall, the service is ideally placed behind an HTTPS reverse proxy, and then strong authentication or access via an SSH/VPN tunnel is enabled. You thus obtain a remote, reproducible and persistent development space, while keeping control of the installation, open ports and the level of security applied.

Precisely control the technical components of your environment

A controlled Docker base on a VPS

VS Code Server runs in a Docker container deployed on a VPS. This approach isolates the editor, its extensions and dependencies from the host system, while facilitating updates or redeployments. The VPS remains the main infrastructure layer: you control its resources, its system, its firewall and the exposed services.

SSH and persistent volumes to maintain control

SSH access retains a central role for administration. It allows you to check the server status, consult logs, manage permissions, restart containers and diagnose open ports. Persistent volumes, for their part, ensure the preservation of projects, configurations and useful data, even after the container is recreated.

A clear configuration using environment variables

Environment variables allow you to configure the instance without modifying the Docker image: password, working path, user, time zone or options specific to the associated services. This declarative configuration simplifies changes, limits manual errors and integrates easily into a versioned Docker Compose file.

Reverse proxy, HTTPS and port exposure

A reverse proxy can be placed in front of VS Code Server in order to route traffic, manage HTTPS and centralise certificates. You expose only the necessary ports, redirect HTTP traffic to HTTPS and maintain a clear separation between the application service and the public access layer. This organisation strengthens the readability of the architecture and facilitates day-to-day operation.

A VS Code Server environment ready to evolve

Code-server runs in an isolated container on your VPS, with dedicated resources and the ability to scale according to your needs.
Accuracy.svg
Persistent environment between each session
Counter.svg
Dedicated VPS resources for your projects
Bare Metal Pod.svg
Clean isolation thanks to the Docker container
CDN Infrastructure.svg
Secure remote access, scalable on demand

Industrialise your VS Code Server environment

Standardise DevOps workflows

For a DevOps team, a remote VS Code server can become a standardised workspace, close to the execution environments. Git repositories, extensions, diagnostic tools, linters, runtimes and CLI clients remain installed on the VPS side. Developers thus access a common base, limit discrepancies between local workstations and can intervene more quickly on automation scripts, manifests or infrastructure configurations.

Isolate projects, clients and training courses

For freelancers, agencies or training organisations, the benefit lies in the isolation of contexts. Each project can have its own dependencies, environment variables, language versions, build scripts and command sets without polluting the personal machine. A learner can access the same environment from several locations, while a service provider can clearly separate clients and archive a workspace at the end of a mission.

Make environments reproducible

A reproducible environment facilitates project maintenance over time. Dependencies can be documented in the repository, installed on the server and used by VS Code tasks, shell scripts, Makefiles or npm, Composer, Maven, Python or Go commands depending on the stack. This approach reduces problems linked to local paths, divergent versions and implicit configurations that are difficult to share.

Run builds and lightweight CI/CD

The VPS carries the resources necessary for development: CPU to compile or analyse code, RAM to run local services, storage for Git repositories, dependencies and artefacts, network to clone, push and query APIs. It can also host a lightweight CI/CD: tests triggered by script, manual builds, Git hooks, validations before deployment or scheduled tasks, without replacing a complete CI platform when needs become more complex.

Technical questions about VS Code Server on VPS

Can I install code-server manually?

A manual installation is possible if you want to master every step: choice of distribution, systemd service management, reverse proxy configuration, HTTPS certificates or authentication options. It does, however, require more checks, particularly regarding file permissions, exposed ports and updates.

What VPS resources should I plan for?

Resources depend primarily on your projects: repository size, number of extensions, language used, indexing, compilation and tests launched from the terminal. For comfortable usage, plan for a VPS capable of keeping the editor, shell and your development tools active without saturation. If you compile often or run containers, choose a more generous configuration and monitor CPU, RAM and disk after initial usage.

Can Docker be used with code-server?

Yes, code-server can be run in Docker if you wish to isolate the environment, simplify updates or standardise a configuration. You must then consider persistent volumes for projects and settings, the user used in the container, published ports and potential integration with an HTTPS reverse proxy. Docker is useful, but does not replace a correct security configuration on the VPS side.

Do I still need SSH?

SSH remains useful for administering the VPS, even if the editor is accessible from the browser. It allows you to diagnose a network problem, modify a configuration, consult logs, restart a service or intervene if the web interface is no longer available. For greater security, favour SSH keys, limit unnecessary access and keep a backup administration method.

Should HTTPS be enabled?

Yes, HTTPS is strongly recommended as soon as the interface is accessible online. It encrypts the connection between your browser and the VPS, protects credentials and avoids exposing the session in plain text. In practice, a reverse proxy is often used in front of code-server to manage the certificate, renewal and redirects. Direct access without HTTPS should be reserved for very limited tests.

How do I secure my environment?

Security relies on several layers: robust authentication, HTTPS, firewall, regular updates, limitation of exposed ports and adapted system permissions. Avoid running the environment with excessive privileges and do not publish unnecessary development services on the Internet. If several people access the VPS, clearly separate the accounts, permissions and work repositories.

Does my data remain persistent?

Yes, provided that the projects and configuration are stored in a persistent space on the VPS or in correctly mounted volumes if you use Docker. Closing the browser does not delete the files, but a reinstallation, volume deletion or an incorrect command can affect them. It is therefore recommended to version control the code with Git and to plan an appropriate backup strategy.