Codevisor Docs

Installation

Install Codevisor Server and its command-line tools on macOS or Linux.

Installer behavior

curl -fsSL https://www.codevisor.dev/install.sh | sh

Each run resolves the latest stable version from the same release feed used by the server updater. If the feed cannot be fetched or does not contain a valid stable version, installation stops with an error. The installer does not fall back to an older release.

To install a specific release, set CODEVISOR_VERSION on the shell running the installer:

curl -fsSL https://www.codevisor.dev/install.sh | CODEVISOR_VERSION=0.1.99 sh

On Linux, the installer downloads the matching linux-x64 or linux-arm64 archive, verifies its SHA-256 checksum when sha256sum is available, and links codevisor, codevisor-server, and codevisor-terminal-proxy into a bin directory.

On an Apple silicon Mac, the installer copies the Codevisor app into /Applications and links the same CLI commands from the bundled server runtime into ~/.local/bin (override with CODEVISOR_BIN_DIR). The Homebrew cask links them into Homebrew's bin directory, and the app also repairs the ~/.local/bin links on launch — so a plain DMG drag-install gets the CLI the first time the app opens. If ~/.local/bin is not on your PATH, add it in your shell profile:

export PATH="$HOME/.local/bin:$PATH"

The Codevisor app is not available for Intel Macs. On an Intel Mac, the installer explains this and asks whether to install the standalone darwin-x64 server instead. When you confirm, it installs and links the server the same way as on Linux, then runs codevisor setup to sign it into your Codevisor account. macOS has no systemd, so the server runs as a background process that you start with codevisor start, including after a reboot. It appears in the Codevisor app on your other machines once signed in. Set CODEVISOR_INSTALL_SERVER=1 to skip the confirmation, for example when no terminal is attached. Homebrew users can instead run brew install 851-labs/tap/codevisor-server.

VariablePurposeDefault
CODEVISOR_VERSIONInstall a specific releaseLatest stable
CODEVISOR_USERAccount the server runs as (same as --user)See Installing with sudo
CODEVISOR_INSTALL_DIRRuntime installation directory~/.codevisor/server
CODEVISOR_BIN_DIRCommand symlink directory~/.local/bin
CODEVISOR_PORTListening port, pinned49361
CODEVISOR_DATA_DIRServer database and data dir~/.codevisor/data
CODEVISOR_NO_SERVICE=1Skip systemd setupsystemd enabled when available
CODEVISOR_NO_SETUP=1Skip signing in during installationsetup runs when a terminal is available
CODEVISOR_INSTALL_SERVER=1Install the server on an Intel Mac without askingasks for confirmation

Git

Codevisor needs Git on every machine it runs on. codevisor setup and codevisor auth login stop before connecting a machine that has no Git and print the command that installs it. On a Mac, the Codevisor app asks to install Apple's developer tools, which include Git, before it starts.

Installing with sudo

The server never runs as root on Linux: agents such as Claude Code refuse to run with root privileges. When the installer runs as root, it picks an account and installs everything into that account's home, as if the account had run the installer itself:

Installer runsServer runs as
As a regular userThat user
Through sudoThe account that ran sudo
In a root shellA codevisor account it creates, with passwordless sudo
With --user alicealice
curl -fsSL https://www.codevisor.dev/install.sh | sudo sh -s -- --user alice

It enables lingering for that account so the systemd user service keeps running without a login. Manage the server as that account, for example su - codevisor -c 'codevisor status'.

Rerunning the installer as root on a machine that ran an older root installation removes the codevisor-server system service and /opt/codevisor. The old data stays in root's ~/.codevisor; sign the machine in again with the new account.

Without systemd

curl -fsSL https://www.codevisor.dev/install.sh | CODEVISOR_NO_SERVICE=1 sh
codevisor start

codevisor start runs a detached background process when no systemd unit exists. Use codevisor stop, codevisor restart, codevisor status, and codevisor logs --follow to manage it. Run codevisor setup after the first start to sign the machine into your Codevisor account.

To use another supervisor, run the foreground command and give the service user a persistent home directory:

codevisor-server serve --host 0.0.0.0 --port 49361 --auth token

User service persistence

A systemd user service normally stops after its user logs out. Enable lingering if this machine should remain available:

sudo loginctl enable-linger "$USER"

On this page