# Install code-server with Homebrew, Nix

Access VS Code through the browser. Version 4.112.0 via Homebrew; verified 2026-06-15. Also installable with nix: nix profile install nixpkgs#code-server.

## Install

```sh
sudo av install brew:code-server
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install code-server
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#code-server
```

  Evidence: nixpkgs package indexes: pkgs/by-name/co/code-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:code-server
- **Package manager:** Homebrew
- **Version:** 4.112.0
- **Source summary:** Access VS Code through the browser
- **Homepage:** <https://coder.com>
- **Last updated:** 2026-06-15T10:20:13-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- code-server (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 4.112.0
## Project history and usage

code-server is Coder's project for running VS Code on a remote machine and accessing it through a browser. It packages the VS Code editing experience as a self-hosted web IDE with a `code-server` CLI, install script, service setup, and browser login flow.

### Project history

The GitHub repository was created in 2019. The official contributing docs describe the early v1 architecture as a Code submodule plus a large patch that split the UI into a browser front-end and a server process. As VS Code's web architecture matured, code-server v2 and later used the Code front-end while implementing the server side, later reducing its patch set as upstream Code opened more server pieces.

### Adoption history

code-server became a standard self-hosted way to get VS Code in a browser, especially for remote Linux machines and cloud development boxes. Official docs support install scripts, Debian and RPM packages, AUR, Homebrew, Docker, Helm, Raspberry Pi, Termux, and cloud-provider guides; the input also records Homebrew and Nix distribution.

### How it is used

Typical use is installing `code-server`, starting it as a user service or container, then visiting localhost or a secured remote URL in a browser. The default config is created at `~/.config/code-server/config.yaml`, stores bind address, auth mode, password or hashed password, and TLS settings, and can be overridden by flags or environment variables.

### Why package nerds care

For package nerds, code-server is significant because it turns a large desktop editor into a service-oriented CLI package. Its packaging story spans native packages, Homebrew, Nix, Docker images, Helm charts, AUR recipes, install scripts, and upstream VS Code version tracking, which makes it a useful case study in repackaging a fast-moving Electron editor for headless and server environments.

### Timeline

- 2019: GitHub repository for coder/code-server created.
- 2019: v1 architecture split Code into browser front-end and server pieces, according to official contributing docs.
- 2022: v4 releases tracked upstream VS Code versions in the changelog.
- 2026: Recent releases continued tracking current VS Code versions.

### Related projects

- Related projects and comparators include Visual Studio Code, Code OSS, Coder, Theia, OpenVSCode Server, GitHub Codespaces, VS Code web, devcontainers, and remote development tooling.

### Sources

- <https://github.com/coder/code-server>
- <https://coder.com/docs/code-server/FAQ>
- <https://coder.com/docs/code-server/install>
- <https://coder.com/docs/code-server/CONTRIBUTING>
- <https://github.com/coder/code-server/releases>


## Security Notes

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/code-server/config.yaml

## Credential files

- Unix: ~/.config/code-server/config.yaml
## Other Package-Manager Records

- Nix - code-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/code-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/code-server.yml](https://github.com/mxcl/pkgdb/blob/main/combined/code-server.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
