For the complete documentation index, see llms.txt. A markdown version of this page is at /reference/tools/tool-configuration/vscode-web/index.md.

vscode-web

VS Code in your browser, running on the workstation: its authentication, port, bind address and editor settings.

This toolconfig tells code-server, VS Code in a browser tab, how to run on your workstation. The vscode-web devtool installs it; this configures it.

Set up VS Code in your browser shows the few lines that make it work, and how to require a password or change the port. The rest of this page covers editor settings, the fields and how the files are written.

Editor settings

You do not need this section to use the editor. code-server has the same settings as desktop VS Code. To set editor settings for everyone who uses the workstation, put them under settings.

Ringleader also writes three settings for the Claude Code extension, so that if you use it, its panel opens without permission prompts or onboarding. They have no effect on any other tool:

{
  "claudeCode.allowDangerouslySkipPermissions": true,
  "claudeCode.initialPermissionMode": "bypassPermissions",
  "claudeCode.hideOnboarding": true
}

Anything you set wins over Ringleader’s three, and any setting you do not name is left exactly as it is, so a preference someone changes in the editor itself is not undone the next time the workstation applies its configuration:

config:
  auth: none
  settings:
    workbench.colorTheme: Default Dark Modern
    editor.fontSize: 14

When the workstation declares trusted folders, the workspace-trust prompt is turned off as well, again unless you set that key yourself.

config fields

FieldTypeDefaultDescription
authstringpasswordnone or password.
passwordstringnoneThe password, as a ${secret:NAME} reference.
portint8080The port code-server listens on.
bindAddrstring127.0.0.1The address code-server listens on: a bare IP or localhost, with no port. Leave it alone unless you know why you are changing it.
certbool or stringnonetrue for a self-signed certificate, or a path to one.
settingsobjectnoneEditor settings, as described above.

Setting the port alone leaves nobody able to log in

Whenever you set port, bindAddr or cert, set auth in the same block. A field you leave out takes its default. The default for auth is password, so port: 8081 on its own gives you password authentication with no password. Set auth: none (safe on the default loopback bind) or auth: password with a password.

Ringleader refuses auth: none on any bindAddr other than loopback, and the workstation stops setting up. An unauthenticated browser IDE has a terminal in it, and on a public interface that is remote code execution for anyone who can reach the port.

File writing

Ringleader writes code-server’s own configuration file (~/.config/code-server/config.yaml) only when you set at least one of auth, password, port, bindAddr or cert. With none of those, code-server keeps the file it generates for itself, with its own random password, and Ringleader touches only the editor settings.

Both files (config.yaml and ~/.local/share/code-server/User/settings.json) belong to the login user and are readable by nobody else on the workstation, so a password or a resolved secret in them is not exposed.

The port you declare is checked every time the workstation applies its configuration, not only the first time. If code-server is not serving it, because it started before the configuration landed, crashed, or was restarted by hand, Ringleader restarts the service so it comes back on the declared port. A workstation already serving the right port is left alone.

A higher-priority layer that sets auth replaces the whole vscode-web entry, so declare port there too if you moved it. Override a tool configuration from another layer shows how.