2020-05-14 15:17:17 +08:00
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE - RUN doctoc TO UPDATE -->
2020-02-19 08:07:01 +08:00
# FAQ
2021-06-04 07:37:46 +08:00
- [Questions? ](#questions )
- [How should I expose code-server to the internet? ](#how-should-i-expose-code-server-to-the-internet )
2021-07-08 00:00:51 +08:00
- [Can I use code-server on the iPad? ](#can-i-use-code-server-on-the-ipad )
2021-06-04 07:37:46 +08:00
- [How does the config file work? ](#how-does-the-config-file-work )
- [How do I make my keyboard shortcuts work? ](#how-do-i-make-my-keyboard-shortcuts-work )
2021-07-08 00:00:51 +08:00
- [Why can't code-server use Microsoft's extension marketplace? ](#why-cant-code-server-use-microsofts-extension-marketplace )
- [How can I request an extension that's missing from the marketplace? ](#how-can-i-request-an-extension-thats-missing-from-the-marketplace )
- [How do I install an extension? ](#how-do-i-install-an-extension )
- [How do I install an extension manually? ](#how-do-i-install-an-extension-manually )
- [How do I use my own extensions marketplace? ](#how-do-i-use-my-own-extensions-marketplace )
- [Where are extensions stored? ](#where-are-extensions-stored )
- [How can I reuse my VS Code configuration? ](#how-can-i-reuse-my-vs-code-configuration )
- [How does code-server decide what workspace or folder to open? ](#how-does-code-server-decide-what-workspace-or-folder-to-open )
- [How do I access my Documents/Downloads/Desktop folders in code-server on macOS? ](#how-do-i-access-my-documentsdownloadsdesktop-folders-in-code-server-on-macos )
- [How do I direct server-side requests through a proxy? ](#how-do-i-direct-server-side-requests-through-a-proxy )
- [How do I debug issues with code-server? ](#how-do-i-debug-issues-with-code-server )
- [What is the healthz endpoint? ](#what-is-the-healthz-endpoint )
- [What is the heartbeat file? ](#what-is-the-heartbeat-file )
- [How do I change the password? ](#how-do-i-change-the-password )
- [Can I store my password hashed? ](#can-i-store-my-password-hashed )
- [Is multi-tenancy possible? ](#is-multi-tenancy-possible )
- [Can I use Docker in a code-server container? ](#can-i-use-docker-in-a-code-server-container )
- [How do I disable telemetry? ](#how-do-i-disable-telemetry )
- [What's the difference between code-server and Theia? ](#whats-the-difference-between-code-server-and-theia )
2021-10-05 03:57:58 +08:00
- [What's the difference between code-server and OpenVSCode-Server? ](#whats-the-difference-between-code-server-and-openvscode-server )
2021-10-06 00:40:57 +08:00
- [What's the difference between code-server and GitHub Codespaces? ](#whats-the-difference-between-code-server-and-github-codespaces )
2021-07-10 03:16:53 +08:00
- [Does code-server have any security login validation? ](#does-code-server-have-any-security-login-validation )
2021-07-08 00:00:51 +08:00
- [Are there community projects involving code-server? ](#are-there-community-projects-involving-code-server )
2021-08-25 06:16:01 +08:00
- [How do I change the port? ](#how-do-i-change-the-port )
2020-05-14 15:17:17 +08:00
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2020-02-19 13:27:02 +08:00
## Questions?
2021-07-08 00:00:51 +08:00
Please file all questions and support requests at
2022-02-02 00:45:19 +08:00
< https: / / github . com / coder / code-server / discussions > .
2020-05-28 08:44:49 +08:00
2021-07-08 00:00:51 +08:00
## How should I expose code-server to the internet?
2020-05-28 09:28:43 +08:00
2021-07-08 00:00:51 +08:00
Please see [our instructions on exposing code-server safely to the
internet](./guide.md).
2020-02-19 12:31:48 +08:00
2021-07-08 00:00:51 +08:00
## Can I use code-server on the iPad?
2020-02-19 12:31:48 +08:00
2021-07-08 00:00:51 +08:00
See [iPad ](./ipad.md ) for information on using code-server on the iPad.
2020-02-19 12:31:48 +08:00
2021-07-08 00:00:51 +08:00
## How does the config file work?
2020-05-28 09:28:43 +08:00
2021-07-08 00:00:51 +08:00
When `code-server` starts up, it creates a default config file in `~/.config/code-server/config.yaml` :
2020-02-19 12:31:48 +08:00
2021-07-08 00:00:51 +08:00
```yaml
bind-addr: 127.0.0.1:8080
auth: password
password: mew...22 # Randomly generated for each config.yaml
cert: false
```
2020-05-28 09:28:43 +08:00
2021-07-08 00:00:51 +08:00
The default config defines the following behavior:
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
- Listen on the loopback IP port 8080
- Enable password authorization
- Do not use TLS
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
Each key in the file maps directly to a `code-server` flag (run `code-server --help` to see a listing of all the flags). Any flags passed to `code-server`
will take priority over the config file.
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
You can change the config file's location using the `--config` flag or
`$CODE_SERVER_CONFIG` environment variable.
2020-05-28 09:28:43 +08:00
2021-07-08 00:00:51 +08:00
The default location respects `$XDG_CONFIG_HOME` .
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
## How do I make my keyboard shortcuts work?
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
Many shortcuts will not work by default, since they'll be "caught" by the browser.
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
If you use Chrome, you can work around this by installing the progressive web
app (PWA):
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
1. Start the editor
2. Click the **plus** icon in the URL toolbar to install the PWA
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
For other browsers, you'll have to remap keybindings for shortcuts to work.
2021-03-31 23:28:55 +08:00
2021-07-08 00:00:51 +08:00
## Why can't code-server use Microsoft's extension marketplace?
2020-05-22 11:53:02 +08:00
2021-07-08 00:00:51 +08:00
Though code-server takes the open-source core of VS Code and allows you to run
it in the browser, it is not entirely equivalent to Microsoft's VS Code.
2020-05-15 07:53:15 +08:00
2021-07-08 00:00:51 +08:00
One major difference is in regards to extensions and the marketplace. The core
of VS code is open source, while the marketplace and many published Microsoft
extensions are not. Furthermore, Microsoft prohibits the use of any
non-Microsoft VS Code from accessing their marketplace. Per the [Terms of
Service](https://cdn.vsassets.io/v/M146_20190123.39/_content/Microsoft-Visual-Studio-Marketplace-Terms-of-Use.pdf):
2020-02-19 08:07:01 +08:00
2021-07-08 00:00:51 +08:00
> Marketplace Offerings are intended for use only with Visual Studio Products
> and Services, and you may only install and use Marketplace Offerings with
> Visual Studio Products and Services.
2020-06-04 19:15:56 +08:00
2021-07-08 00:00:51 +08:00
Because of this, we can't offer any extensions on Microsoft's marketplace.
2021-11-10 23:00:59 +08:00
Instead, we use the [Open-VSX extension gallery ](https://open-vsx.org ), which is also used by various other forks.
It isn't perfect, but its getting better by the day with more and more extensions.
We also offer our own marketplace for open source extensions, but plan to
deprecate it at a future date and completely migrate to Open-VSX.
2020-06-04 19:15:56 +08:00
2021-07-08 00:00:51 +08:00
These are the closed-source extensions that are presently unavailable:
2020-08-04 22:11:11 +08:00
2021-07-08 00:00:51 +08:00
1. [Live Share ](https://visualstudio.microsoft.com/services/live-share ). We may
implement something similar (see
2022-02-02 00:45:19 +08:00
[#33 ](https://github.com/coder/code-server/issues/33 ))
2021-07-08 00:00:51 +08:00
1. [Remote Extensions (SSH, Containers,
WSL)](https://github.com/microsoft/vscode-remote-release). We may implement
these again at some point, see
2022-02-02 00:45:19 +08:00
([#1315](https://github.com/coder/code-server/issues/1315)).
2020-08-04 22:11:11 +08:00
2021-07-08 00:00:51 +08:00
For more about the closed source portions of VS Code, see [vscodium/vscodium ](https://github.com/VSCodium/vscodium#why-does-this-exist ).
2020-08-04 22:11:11 +08:00
2021-07-08 00:00:51 +08:00
## How can I request an extension that's missing from the marketplace?
2020-08-04 22:11:11 +08:00
2021-11-10 23:00:59 +08:00
To add an extension to Open-VSX, please see [open-vsx/publish-extensions ](https://github.com/open-vsx/publish-extensions ).
We no longer plan to add new extensions to our legacy extension gallery.
2020-02-19 08:07:01 +08:00
2021-07-08 00:00:51 +08:00
## How do I install an extension?
2020-02-19 08:07:01 +08:00
2021-07-08 00:00:51 +08:00
You can install extensions from the marketplace using the extensions sidebar in
code-server or from the command line:
2020-05-14 15:17:17 +08:00
2021-07-08 00:00:51 +08:00
```console
code-server --install-extension < extension id >
# example: code-server --install-extension wesbos.theme-cobalt2
2020-02-19 08:07:01 +08:00
2020-05-14 15:17:17 +08:00
# From the Coder extension marketplace
code-server --install-extension ms-python.python
2020-02-19 08:07:01 +08:00
2020-05-14 15:17:17 +08:00
# From a downloaded VSIX on the file system
code-server --install-extension downloaded-ms-python.python.vsix
```
2021-07-08 00:00:51 +08:00
## How do I install an extension manually?
2020-05-14 15:17:17 +08:00
2021-07-08 00:00:51 +08:00
If there's an extension unavailable in the marketplace or an extension that
doesn't work, you can download the VSIX from its GitHub releases or build it
yourself.
2020-02-27 02:42:01 +08:00
2021-07-08 00:00:51 +08:00
Once you have downloaded the VSIX to the remote machine, you can either:
2020-02-19 08:07:01 +08:00
2021-07-08 00:00:51 +08:00
- Run the **Extensions: Install from VSIX** command in the Command Palette.
- Run `code-server --install-extension <path to vsix>` in the terminal
2020-10-30 16:13:22 +08:00
2021-07-08 00:00:51 +08:00
You can also download extensions using the command line. For instance,
downloading from OpenVSX can be done like this:
2020-12-15 01:11:10 +08:00
2021-06-04 02:27:59 +08:00
```shell
2021-11-10 23:00:59 +08:00
code-server --install-extension < extension id >
2021-01-15 03:00:52 +08:00
```
2020-12-15 01:11:10 +08:00
2021-07-08 00:00:51 +08:00
## How do I use my own extensions marketplace?
2020-05-22 11:53:02 +08:00
2021-07-08 00:00:51 +08:00
If you own a marketplace that implements the VS Code Extension Gallery API, you
2021-11-10 23:00:59 +08:00
can point code-server to it by setting `$EXTENSIONS_GALLERY` .
This corresponds directly with the `extensionsGallery` entry in in VS Code's `product.json` .
2020-04-01 02:11:35 +08:00
2021-11-10 23:00:59 +08:00
For example, to use the legacy Coder extensions marketplace:
2020-04-03 02:40:01 +08:00
2021-07-08 00:00:51 +08:00
```bash
2021-11-10 23:00:59 +08:00
export EXTENSIONS_GALLERY='{"serviceUrl": "https://extensions.coder.com/api"}'
2021-07-08 00:00:51 +08:00
```
2020-03-31 07:59:29 +08:00
2021-07-08 00:00:51 +08:00
Though you can technically use Microsoft's marketplace in this manner, we
strongly discourage you from doing so since this is [against their Terms of Use ](#why-cant-code-server-use-microsofts-extension-marketplace ).
2020-03-31 07:59:29 +08:00
2021-07-08 00:00:51 +08:00
For further information, see [this
discussion](https://github.com/microsoft/vscode/issues/31168#issue-244533026)
regarding the use of the Microsoft URLs in forks, as well as [VSCodium's
docs](https://github.com/VSCodium/vscodium/blob/master/DOCS.md#extensions--marketplace).
2020-03-31 07:59:29 +08:00
2021-07-08 00:00:51 +08:00
## Where are extensions stored?
2020-03-31 07:59:29 +08:00
2021-07-08 00:00:51 +08:00
Extensions are store, by default, to `~/.local/share/code-server/extensions` .
2021-01-12 02:18:07 +08:00
2021-07-08 00:00:51 +08:00
If you set the `XDG_DATA_HOME` environment variable, the data directory will be
`$XDG_DATA_HOME/code-server/extensions` . In general, we try to follow the XDG directory spec.
2021-01-12 02:18:07 +08:00
2021-07-08 00:00:51 +08:00
## How can I reuse my VS Code configuration?
2021-01-12 02:18:07 +08:00
2021-07-08 00:00:51 +08:00
You can use the [Settings
Sync](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync)
extension for this purpose.
2021-01-12 02:18:07 +08:00
2021-07-08 00:00:51 +08:00
Alternatively, you can also pass `--user-data-dir ~/.vscode` or copy `~/.vscode`
into `~/.local/share/code-server` to reuse your existing VS Code extensions and
configuration.
2021-01-12 02:18:07 +08:00
2021-07-08 00:00:51 +08:00
## How does code-server decide what workspace or folder to open?
2021-02-05 15:31:18 +08:00
2021-07-08 00:00:51 +08:00
code-server tries the following in this order:
2021-02-05 15:31:18 +08:00
2021-07-08 00:00:51 +08:00
1. The `workspace` query parameter
2. The `folder` query parameter
3. The workspace or directory passed via the command line
4. The last opened workspace or directory
2021-01-12 02:18:07 +08:00
2021-07-08 00:00:51 +08:00
## How do I access my Documents/Downloads/Desktop folders in code-server on macOS?
2021-01-12 02:18:07 +08:00
2021-07-08 00:00:51 +08:00
Newer versions of macOS require permission through a non-UNIX mechanism for
code-server to access the Desktop, Documents, Pictures, Downloads, and other folders.
2021-01-12 02:18:07 +08:00
2021-07-08 00:00:51 +08:00
You may have to give Node.js full disk access, since it doesn't implement any of the macOS permission request features natively:
2021-01-12 03:36:34 +08:00
2021-07-08 00:00:51 +08:00
1. Find where Node.js is installed on your machine
2020-02-19 08:07:01 +08:00
2021-07-08 00:00:51 +08:00
```console
$ which node
/usr/local/bin/node
```
2020-02-19 12:31:48 +08:00
2021-07-08 00:00:51 +08:00
2. Grant Node.js full disk access. Open **System Preferences** > **Security &
Privacy** > **Privacy** > **Full Disk Access** . Then, click the 🔒 to unlock,
click ** +**, and select the Node.js binary you located in the previous step.
2020-02-19 12:31:48 +08:00
2022-02-02 00:45:19 +08:00
See [#2794 ](https://github.com/coder/code-server/issues/2794 ) for additional context.
2020-02-19 12:31:48 +08:00
2021-07-08 00:00:51 +08:00
## How do I direct server-side requests through a proxy?
2020-02-19 12:31:48 +08:00
2021-07-08 00:00:51 +08:00
> code-server proxies only server-side requests.
2020-02-19 08:07:01 +08:00
2021-07-08 00:00:51 +08:00
To direct server-side requests through a proxy, code-server supports the
following environment variables:
2020-02-19 12:31:48 +08:00
2021-07-08 00:00:51 +08:00
- `$HTTP_PROXY`
- `$HTTPS_PROXY`
- `$NO_PROXY`
2020-04-08 06:49:50 +08:00
2021-07-08 00:00:51 +08:00
```sh
export HTTP_PROXY=https://134.8.5.4
export HTTPS_PROXY=https://134.8.5.4
# Now all of code-server's server side requests will go through
# https://134.8.5.4 first.
code-server
```
2020-04-08 06:49:50 +08:00
2021-07-08 00:00:51 +08:00
- See
[proxy-from-env ](https://www.npmjs.com/package/proxy-from-env#environment-variables )
for a detailed reference on these environment variables and their syntax (note
that code-server only uses the `http` and `https` protocols).
- See [proxy-agent ](https://www.npmjs.com/package/proxy-agent ) for information
on on the supported proxy protocols.
2020-04-08 06:49:50 +08:00
2020-04-21 07:45:04 +08:00
## How do I debug issues with code-server?
2021-07-08 00:00:51 +08:00
First, run code-server with the `debug` logging (or `trace` to be really
2020-04-21 07:45:04 +08:00
thorough) by setting the `--log` flag or the `LOG_LEVEL` environment variable.
`-vvv` and `--verbose` are aliases for `--log trace` .
2021-07-08 00:00:51 +08:00
First, run code-server with `debug` logging (or `trace` logging for more
thorough messages) by setting the `--log` flag or the `LOG_LEVEL` environment
variable.
```text
2020-04-21 07:45:04 +08:00
code-server --log debug
```
2021-07-08 00:00:51 +08:00
> Note that the `-vvv` and `--verbose` flags are aliases for `--log trace`.
Next, replicate the issue you're having so that you can collect logging
2020-04-21 07:45:04 +08:00
information from the following places:
2021-07-08 00:00:51 +08:00
1. The most recent files from `~/.local/share/code-server/coder-logs`
2. The browser console
3. The browser network tab
2020-04-21 07:45:04 +08:00
Additionally, collecting core dumps (you may need to enable them first) if
code-server crashes can be helpful.
2021-07-08 00:00:51 +08:00
## What is the healthz endpoint?
2020-05-10 16:15:29 +08:00
2021-07-08 00:00:51 +08:00
You can use the `/healthz` endpoint exposed by code-server to check whether
code-server is running without triggering a heartbeat. The response includes a
status (e.g., `alive` or `expired` ) and a timestamp for the last heartbeat
(the default is `0` ).
2020-09-09 02:59:01 +08:00
```json
{
"status": "alive",
"lastHeartbeat": 1599166210566
}
```
2021-07-08 00:00:51 +08:00
This endpoint doesn't require authentication.
2020-05-15 06:35:35 +08:00
2021-07-08 00:00:51 +08:00
## What is the heartbeat file?
2020-05-15 06:35:35 +08:00
2021-07-08 00:00:51 +08:00
As long as there is an active browser connection, code-server touches
`~/.local/share/code-server/heartbeat` once a minute.
2020-05-15 06:35:35 +08:00
2021-07-08 00:00:51 +08:00
If you want to shutdown code-server if there hasn't been an active connection
after a predetermined amount of time, you can do so by checking continuously for
the last modified time on the heartbeat file. If it is older than X minutes (or
whatever amount of time you'd like), you can kill code-server.
2020-05-15 06:35:35 +08:00
2022-02-02 00:45:19 +08:00
Eventually, [#1636 ](https://github.com/coder/code-server/issues/1636 ) will make
2021-07-08 00:00:51 +08:00
this process better.
2020-05-15 06:35:35 +08:00
2021-07-08 00:00:51 +08:00
## How do I change the password?
2020-05-15 06:35:35 +08:00
2021-07-08 00:00:51 +08:00
Edit the `password` field in the code-server config file at
`~/.config/code-server/config.yaml` , then restart code-server:
2020-05-18 08:27:45 +08:00
2021-07-08 00:00:51 +08:00
```bash
sudo systemctl restart code-server@$USER
```
2020-05-22 10:16:16 +08:00
2021-07-08 00:00:51 +08:00
## Can I store my password hashed?
2020-05-22 10:16:16 +08:00
2021-07-08 00:00:51 +08:00
Yes, you can do so by setting the value of `hashed-password` instead of `password` . Generate the hash with:
2020-05-27 11:23:09 +08:00
2021-07-08 00:00:51 +08:00
```shell
echo -n "thisismypassword" | npx argon2-cli -e
$argon2i$v=19$m=4096,t=3,p=1$wst5qhbgk2lu1ih4dmuxvg$ls1alrvdiwtvzhwnzcm1dugg+5dto3dt1d5v9xtlws4
```
2020-05-27 11:23:09 +08:00
2021-07-08 00:00:51 +08:00
Replace `thisismypassword` with your actual password and **remember to put it
inside quotes**! For example:
2020-05-27 11:23:09 +08:00
2021-07-08 00:00:51 +08:00
```yaml
auth: password
hashed-password: "$argon2i$v=19$m=4096,t=3,p=1$wST5QhBgk2lu1ih4DMuxvg$LS1alrVdIWtvZHwnzCM1DUGg+5DTO3Dt1d5v9XtLws4"
```
2020-05-27 11:23:09 +08:00
2021-07-08 00:00:51 +08:00
The `hashed-password` field takes precedence over `password` .
2020-05-27 11:23:09 +08:00
2021-07-08 00:00:51 +08:00
## Is multi-tenancy possible?
2021-04-28 08:36:45 +08:00
2021-07-08 00:00:51 +08:00
If you want to run multiple code-servers on shared infrastructure, we recommend
using virtual machines (provide one VM per user). This will easily allow users
to run a Docker daemon. If you want to use Kubernetes, you'll want to
use [kubevirt ](https://kubevirt.io ) or
[sysbox ](https://github.com/nestybox/sysbox ) to give each user a VM-like
experience instead of just a container.
2021-04-28 08:36:45 +08:00
2021-07-08 00:00:51 +08:00
## Can I use Docker in a code-server container?
2021-04-28 08:36:45 +08:00
2021-07-08 00:00:51 +08:00
If you'd like to access Docker inside of code-server, mount the Docker socket in
from `/var/run/docker.sock` . Then, install the Docker CLI in the code-server
container, and you should be able to access the daemon.
2021-04-28 08:36:45 +08:00
2021-07-08 00:00:51 +08:00
You can even make volume mounts work. Let's say you want to run a container and
mount into `/home/coder/myproject` from inside the `code-server` container. You
need to make sure the Docker daemon's `/home/coder/myproject` is the same as the
one mounted inside the `code-server` container, and the mount will work.
2021-04-28 08:36:45 +08:00
2021-07-08 00:00:51 +08:00
## How do I disable telemetry?
2021-04-28 08:36:45 +08:00
2021-07-08 00:00:51 +08:00
Use the `--disable-telemetry` flag to disable telemetry.
2021-04-28 08:36:45 +08:00
2021-07-08 00:00:51 +08:00
> We use the data collected only to improve code-server.
2021-04-28 08:36:45 +08:00
2021-07-08 00:00:51 +08:00
## What's the difference between code-server and Theia?
2020-06-04 19:23:44 +08:00
2021-07-08 00:00:51 +08:00
At a high level, code-server is a patched fork of VS Code that runs in the
browser whereas Theia takes some parts of VS Code but is an entirely different
editor.
2020-06-04 19:23:44 +08:00
2021-07-08 00:00:51 +08:00
[Theia ](https://github.com/eclipse-theia/theia ) is a browser IDE loosely based
on VS Code. It uses the same text editor library
([Monaco](https://github.com/Microsoft/monaco-editor)) and extension API, but
everything else is different. Theia also uses [Open VSX ](https://open-vsx.org )
for extensions.
2020-06-04 19:23:44 +08:00
2021-07-08 00:00:51 +08:00
Theia doesn't allow you to reuse your existing VS Code config.
2020-06-04 19:23:44 +08:00
2021-10-05 03:48:31 +08:00
## What's the difference between code-server and OpenVSCode-Server?
2021-10-05 06:41:36 +08:00
code-server and OpenVSCode-Server both allow you to access VS Code via a
2022-02-02 00:45:19 +08:00
browser. The two projects also use their own [forks of VS Code ](https://github.com/coder/vscode ) to
2021-10-05 03:48:31 +08:00
leverage modern VS Code APIs and stay up to date with the upsteam version.
2021-10-06 00:31:17 +08:00
However, OpenVSCode-Server is scoped at only making VS Code available in the web browser.
2021-10-05 03:48:31 +08:00
code-server includes some other features:
- password auth
- proxy web ports
- certificate support
- plugin API
- settings sync (coming soon)
2022-02-02 00:45:19 +08:00
For more details, see [this discussion post ](https://github.com/coder/code-server/discussions/4267#discussioncomment-1411583 ).
2021-10-05 03:48:31 +08:00
2021-10-06 00:31:24 +08:00
## What's the difference between code-server and GitHub Codespaces?
2020-12-18 18:18:30 +08:00
2021-10-06 00:31:29 +08:00
Both code-server and GitHub Codespaces allow you to access VS Code via a
2021-10-06 00:31:40 +08:00
browser. GitHub Codespaces, however, is a closed-source, paid service offered by
2021-10-06 00:31:34 +08:00
GitHub and Microsoft.
2020-12-18 18:18:30 +08:00
2021-10-05 03:48:31 +08:00
On the other hand, code-server is self-hosted, free, open-source, and
can be run on any machine with few limitations.
2020-12-18 18:18:30 +08:00
2021-07-10 03:16:53 +08:00
## Does code-server have any security login validation?
2021-07-19 23:15:09 +08:00
code-server supports setting a single password and limits logins to two per
minute plus an additional twelve per hour.
2021-07-08 00:00:51 +08:00
## Are there community projects involving code-server?
2022-02-02 00:45:19 +08:00
Visit the [awesome-code-server ](https://github.com/coder/awesome-code-server )
2021-07-08 00:00:51 +08:00
repository to view community projects and guides with code-server! Feel free to
add your own!
2021-08-25 06:16:01 +08:00
## How do I change the port?
There are two ways to change the port on which code-server runs:
1. with an environment variable e.g. `PORT=3000 code-server`
2. using the flag `--bind-addr` e.g. `code-server --bind-addr localhost:3000`