# code-server (code-server) VS Code in the browser ([code-server](https://github.com/coder/code-server)) ## Example Usage ```json "features": { "ghcr.io/coder/devcontainer-features/code-server:2": {} } ``` ## Options | Options Id | Description | Type | Default Value | |-----|-----|-----|-----| | absProxyBasePath | The base path to prefix to all absproxy requests | string | - | | appName | The name to use in branding. Will be shown in titlebar and welcome message. | string | - | | auth | The type of authentication to use. When 'password' is selected, code-server will auto-generate a password. 'none' disables authentication entirely. | string | password | | cert | Path to certificate. A self signed certificate is generated if none is provided. | string | - | | certHost | Hostname to use when generating a self signed certificate. | string | - | | certKey | Path to certificate key when using non-generated cert. | string | - | | disableFileDownloads | Disable file downloads from Code. When enabled, users will not be able to download files from the editor. | boolean | false | | disableFileUploads | Disable file uploads to Code. When enabled, users will not be able to upload files to the editor. | boolean | false | | disableGettingStartedOverride | Disable the coder/coder override in the Help: Getting Started page. | boolean | false | | disableProxy | Disable domain and path proxy routes. | boolean | false | | disableTelemetry | Disable telemetry reporting. | boolean | false | | disableUpdateCheck | Disable update check. Without this flag, code-server checks every 6 hours against the latest GitHub release and notifies once a week when updates are available. | boolean | false | | disableWorkspaceTrust | Disable Workspace Trust feature. This only affects the current session. | boolean | false | | enableProposedAPI | Comma-separated list of VS Code extension IDs to enable proposed API features for. | string | - | | extensions | Comma-separated list of VS Code extensions to install. Format: 'publisher.extension[@version]' (e.g., 'ms-python.python,ms-azuretools.vscode-docker'). | string | - | | githubAuthTokenFile | Path to a file containing your GitHub auth token. | string | - | | hashedPasswordFile | Path to a file containing the hashed password used for authentication. The password should be hashed with argon2 and be in the encoded form. This takes priority over `passwordFile`. | string | - | | host | The address to bind to for the code-server. Use '0.0.0.0' to listen on all interfaces. | string | 127.0.0.1 | | locale | Set VS Code display language and language shown on the login page. Format should be an IETF language tag (e.g., 'en', 'fr', 'zh-CN'). | string | - | | logFile | Path to a file to send stdout and stderr logs to from code-server. | string | /tmp/code-server.log | | passwordFile | Path to a file containing the password used for authentication. | string | - | | port | The port to bind to for the code-server. | string | 8080 | | proxyDomain | Domain used for proxying ports. | string | - | | socket | Path to a socket. When specified, host and port will be ignored. | string | - | | socketMode | File mode of the socket when using the socket option. | string | - | | trustedOrigins | Comma-separated list of trusted-origins to disable origin check for. Useful if not able to access reverse proxy configuration. | string | - | | verbose | Enable verbose logging. | boolean | false | | version | The version of code-server to install. If empty, installs the latest version. | string | - | | welcomeText | Text to show on login page. | string | - | | workspace | Path to the workspace or folder to open on startup. Can be a directory or a .code-workspace file. | string | - | | appOpenIn | The way to open the app in Coder. Defaults to 'slim-window'. | string | slim-window | | appShare | The group to use for the app in Coder. Defaults to 'owner'. | string | owner | | appGroup | The group to use for the app in Coder. Defaults to 'Web Editors'. | string | Web Editors | --- _Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/coder/devcontainer-features/blob/main/src/code-server/devcontainer-feature.json). Add additional notes to a `NOTES.md`._