Back to services

code-server

VS Code in the browser, hosted on a remote server.

View alternatives to code-server
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: Fetching the official website was unsuccessful this time. The content below is based on publicly known information about the project, so please refer to the GitHub repository for details.

Overview

code-server is an open-source project maintained by Coder. It runs VS Code on a remote server, so you can use the full VS Code editing experience in your browser. Your code, terminal, and builds and other computation all run on the server, while your local device only displays the interface.

Key Features

  • VS Code in the browser: The interface and workflow are essentially the same as desktop VS Code, with support for code editing, an integrated terminal, Git, debugging, and more.
  • Extension support: You can install VS Code extensions, using the Open VSX marketplace by default.
  • A consistent development environment: Whether you use a laptop, a tablet, or a Chromebook, you connect to the same development environment.
  • Borrow the server's computing power: Resource-intensive tasks such as builds and tests run on a more powerful cloud server, which reduces the load on your local device and saves battery.
  • Access control: Built-in password authentication is included, and you can also combine it with a reverse proxy and HTTPS to provide secure external access.

Target Users and Use Cases

  • Developers who need to switch seamlessly between multiple devices
  • Users whose local devices lack the necessary performance (such as tablets and Chromebooks) and who need to borrow remote computing power
  • Organizations and educational institutions that want to give teams or students a consistent, ready-to-use development environment
  • Operations staff who need to edit code and debug directly on a server

Core Advantages

  • Free and open source, under the MIT license
  • Built on VS Code, so there is almost nothing new to learn
  • Easy to deploy, with multiple installation options including a one-line script, packages, and Docker
  • An active project with a large community

Installation and Deployment

One-line install script (Linux / macOS):

curl -fsSL https://code-server.dev/install.sh | sh

Docker deployment:

docker run -it --name code-server -p 127.0.0.1:8080:8080 \
  -v "$HOME/.config:/home/coder/.config" \
  -v "$PWD:/home/coder/project" \
  codercom/code-server:latest

After it starts, open http://127.0.0.1:8080 in your browser. The login password is stored in ~/.config/code-server/config.yaml. You can also install it through npm or the packages of various distributions.

Technical Requirements

  • A Linux machine that supports WebSockets (it can also run on systems such as macOS)
  • The official recommendation is at least 1 GB of RAM and 2 vCPUs

Notable Points

  • When exposing it to the public internet, it is recommended to use HTTPS, a reverse proxy, or SSH port forwarding to keep it secure.
  • Because of licensing restrictions, Microsoft's official extension marketplace cannot be used by default, and some proprietary Microsoft extensions may not be installable.
  • Coder also offers Coder, an enterprise remote development environment management platform, which suits teams that need to manage development environments at scale.