# Install code-server with Homebrew, Nix

Access VS Code through the browser. Version 4.112.0 via Homebrew; verified 2026-06-15.

## 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
- **Package manager page:** <https://formulae.brew.sh/formula/code-server>
- **Version:** 4.112.0
- **Source summary:** Access VS Code through the browser
- **Homepage:** <https://coder.com>
- **Repository:** <https://github.com/coder/code-server>
- **Upstream docs:** <https://coder.com/docs/code-server/FAQ>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/code-server/-/code-server-4.112.0.tgz>
- **Last updated:** 2026-06-15T10:20:13-04:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- code-server (cli)
- code-server (alias)

## Dependencies

- node@22

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Service: declared
- Caveats: The launchd service runs on http://127.0.0.1:8080. Logs are located at $HOMEBREW_PREFIX/var/log/code-server.log.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.112.0
- Package-manager updated: 2026-06-15
- Local data: ok
- Upstream repository: https://coder.com
- info: Release/tag comparison is only available for GitHub repositories.
## 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** code-server
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [coder](https://www.automicvault.com/pkg/brew/coder/) - Shares the same upstream homepage.
- [xxh](https://www.automicvault.com/pkg/brew/xxh/) - Shares av.db curated category or tags: cli, developer-tools, remote-development.
- [soft-serve](https://www.automicvault.com/pkg/brew/soft-serve/) - Shares av.db curated category or tags: cli, developer-tools, self-hosted, server.
- [airtable-mcp-server](https://www.automicvault.com/pkg/brew/airtable-mcp-server/) - Shares av.db curated category or tags: cli, developer-tools, server.
- [atuin-server](https://www.automicvault.com/pkg/brew/atuin-server/) - Shares av.db curated category or tags: cli, developer-tools, server.
- [code-cli](https://www.automicvault.com/pkg/brew/code-cli/) - Shares av.db curated category or tags: cli, developer-tools, vscode.
- [docker-compose-langserver](https://www.automicvault.com/pkg/brew/docker-compose-langserver/) - Shares av.db curated category or tags: cli, developer-tools, vscode.
- [forgejo](https://www.automicvault.com/pkg/brew/forgejo/) - Shares av.db curated category or tags: cli, developer-tools, self-hosted.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
