code-server
is VS Code running on a remote server, accessible through the browser.
Try it out:
docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server:1.621 --allow-http --no-auth
- Code on your Chromebook, tablet, and laptop with a consistent dev environment.
- If you have a Windows or Mac workstation, more easily develop for Linux.
- Take advantage of large cloud servers to speed up tests, compilations, downloads, and more.
- Preserve battery life when you're on the go.
- All intensive computation runs on your server.
- You're no longer running excess instances of Chrome.
See docker oneliner mentioned above. Dockerfile is at /Dockerfile.
-
Download a binary (Linux and OS X supported. Windows coming soon)
-
Start the binary with the project directory as the first argument
code-server <initial directory to open>
You will be prompted to enter the password shown in the CLI
code-server
should now be running at https://localhost:8443.code-server uses a self-signed SSL certificate that may prompt your browser to ask you some additional questions before you proceed. Please read here for more information.
For detailed instructions and troubleshooting, see the self-hosted quick start guide.
Quickstart guides for Google Cloud, AWS, and Digital Ocean.
How to secure your setup.
- Creating custom VS Code extensions and debugging them doesn't work.
- Stay up to date! Get notified about new releases of code-server.
- Windows support.
- Electron and Chrome OS applications to bridge the gap between local<->remote.
- Run VS Code unit tests against our builds to ensure features work as expected.
At the moment we can't use the official VSCode Marketplace. We've created a custom extension marketplace focused around open-sourced extensions. However, if you have access to the .vsix
file, you can manually install the extension.
There are two ways to build code-server
from source. You can either build the Docker image using docker
or build natively for your platform. You can not cross-build for a different platform.
We recommend you build the docker image as this is less error prone and easier than building natively.
To build a docker image clone the code-server repository and run
docker build -t codercom/code-server:development .
# to build the image, then run
docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server:development --allow-http --no-auth
# to start the development server. to shut it down press CTRL + C (or CMD + C on macOS)
To build natively clone the code-server repository and run
node --version # make sure you have v10.15.1
npm install -g [email protected]
yarn
yarn task build:server:binary # depending on your system this can take up to 15 minutes
your binary can be found in packages/server and is in the format cli-OS-ARCH (cli-linux-x64)
Building natively only works on macOS and Linux (Ubuntu 18.04 is validated to work). Windows is currently not supported (see issue #259).
If you want to test with the service-worker and PWA enabled during development, please run export NODE_ENV=production
before building. Use Chrome 72+, go to and enable chrome://flags/#allow-insecure-localhost and go to and enable chrome://flags/#unsafely-treat-insecure-origin-as-secure and enter localhost:8443
in its textbox.
Visit our enterprise page for more information about our enterprise offering.
If you would like to commercialize code-server, please contact [email protected].