code-server enables running Microsoft's Visual Studio Code on a remote server, accessible via a web browser. This facilitates a consistent development environment across various devices, leveraging cloud server resources for computationally intensive tasks like compilation, testing, and downloads, thereby preserving local device battery life. The current stable version is 4.116.0, which updates to VS Code 1.116.0. The project maintains a frequent release cadence, generally updating monthly to align with new VS Code versions. Key differentiators include its ability to centralize development environments, utilize server-side processing power, and offer a web-based IDE experience without direct client-side VS Code installation. It requires a Linux machine with WebSockets enabled, at least 1GB RAM, and 2 vCPUs, and is built for Node.js 22.
npm install code-serverNo compatibility data collected yet for this library.
This quickstart demonstrates how to install `code-server` using its recommended `install.sh` script and provides basic command-line examples for running the server, setting authentication, binding to an address, and specifying a project directory.
Ensure your system's Node.js version matches the `engines.node` requirement (currently 22). Use a Node Version Manager (e.g., nvm) to easily switch versions: `nvm install 22 && nvm use 22`.
Upgrade immediately to `code-server v4.113.1` or newer if running on `arm64` or `armv7l` architectures.
If encountering `glibc` related errors on older Linux systems, upgrade to `code-server v4.114.1` or a newer version to benefit from the reduced `glibc` requirement (2.28).
Review your `--trusted-origins` configuration. If you intend to allow subdomains, use `*.domain.com`. If strict matching is desired, ensure no `*` is present and list each origin explicitly.
If you experience sessions being terminated too quickly after a disconnection, configure `--reconnection-grace-time` with a higher value (in seconds) suitable for your network conditions, e.g., `code-server --reconnection-grace-time 300`.
Install and use the required Node.js version. If using nvm, run `nvm install 22 && nvm use 22`. Otherwise, ensure your system's default `node` executable is version 22.
Upgrade `code-server` to v4.114.1 or newer, which explicitly lowered the `glibc` requirement to 2.28. If the issue persists, consider upgrading your OS or running `code-server` in a more modern environment like a Docker container.
Ensure `code-server` is running with the correct `--bind-addr` (e.g., `0.0.0.0:8080` for external access), check server firewall rules, and verify your `--trusted-origins` setting if accessing via a custom domain or reverse proxy.
Increase the `--reconnection-grace-time` value when starting `code-server` to allow for longer disconnections, for example: `code-server --reconnection-grace-time 300` (for 5 minutes).
No dependency data recorded yet.