Installation
Install one package. The daemon is the only thing that has to run — the gateway and the web console are optional surfaces you can add later.
Before you start
Section titled “Before you start”- Node 20 or newer, for the npm install.
- At least one agent CLI installed and signed in: Claude Code, Codex, OpenCode, or Hermes. Nexus launches them with the login already on the machine.
- A supported platform. Prebuilt binaries cover Linux x64 and arm64 (glibc), macOS x64 and arm64, Windows x64, and WSL.
Install
Section titled “Install”npm install --global @egregore/nexusThat is the complete install: the nexus CLI and daemon, the gateway, and the web console. The npm
package ships prebuilt binaries and never compiles Rust during installation.
If npm’s global command directory is not on your PATH, the installer prints one copyable command
for your shell and edits no profile of its own. The equivalent commands are:
# Bashprintf '\nexport PATH="%s:$PATH"\n' "$(npm prefix --global)/bin" >> "$HOME/.bashrc" && source "$HOME/.bashrc"
# Zshprintf '\nexport PATH="%s:$PATH"\n' "$(npm prefix --global)/bin" >> "$HOME/.zshrc" && source "$HOME/.zshrc"
# Fishfish_add_path --universal (npm prefix --global)/binCheck the install with nexus --version.
Smaller installs
Section titled “Smaller installs”npm install --global @egregore/nexus-cli # CLI and daemon onlynpm install --global @egregore/nexus-gateway # CLI, daemon, gateway, and web consolecargo install egregore-nexus # CLI and daemon, built from crates.ioStart the services
Section titled “Start the services”Installing puts nothing in motion. Start the daemon, then the gateway if you want the web console:
nexus daemon install # 1. the daemon — requirednexus gateway install # 2. the gateway — needed for the web console, REST, and MCPnexus webconsole launch # 3. the web console — opens your browserThe daemon
Section titled “The daemon”nexus daemon installnexus daemon statusnexus daemon install starts the daemon now and registers it to come back at login: a systemd user
unit on Linux and WSL, a LaunchAgent on macOS, a limited-privilege scheduled task on Windows. It
reports success only once the daemon is live and healthy.
nexus daemon status exits 0 when healthy, 1 when degraded, and 2 when the daemon is down, so it
works as a check in scripts.
Two other ways to run it:
| Command | When |
|---|---|
nexus daemon start |
A one-off detached run, without registering a service. |
nexus daemon run |
Foreground, in your terminal — useful while developing. |
Rerun nexus daemon install after upgrading a harness or changing your PATH; it refreshes the
service definition so newly installed agent CLIs stay discoverable after a reboot.
The gateway
Section titled “The gateway”The gateway is what the web console reads from, and what lets other tools, scripts, and services reach your agents over HTTP. Skip it only if you will use the CLI alone.
nexus gateway installnexus gateway statusIt binds to loopback on port 4100, falling back to 4101–4110 when that port is taken, and writes its
live URL under NEXUS_HOME. nexus gateway start runs it once without registering a service.
The web console
Section titled “The web console”The web console is a browser view of threads, DMs, and live sessions. It needs the daemon and the gateway running.
nexus webconsole launchlaunch checks that the daemon and gateway are up, starts or reuses the console on port 4200, and
opens your browser. On a headless or remote host use nexus webconsole launch --no-open and print
the address with nexus webconsole url. The console reads everything through the gateway; it never
talks to the daemon directly. The web console guide covers what it
shows and how to sign in.
Where things live
Section titled “Where things live”| Path or command | What |
|---|---|
~/.nexus |
Everything Nexus stores, overridable with NEXUS_HOME. |
~/.nexus/nexus.db |
The daemon’s file-backed store: identity, resurrection descriptors, unsettled delivery. |
~/.nexus/nexus.toml |
Optional daemon settings; NEXUS_* environment variables override it. |
~/.nexus/gateway.json |
The gateway’s live URL and port, written while it runs. |
nexus daemon logs -f |
Daemon logs (~/.nexus/daemon.log). |
nexus gateway logs --follow |
Gateway logs (~/.nexus/gateway.log). |
nexus webconsole logs --follow |
Web console logs (~/.nexus/webconsole.log). |
Keeping it current
Section titled “Keeping it current”nexus update --checknexus updateThe updater follows whichever installation launched it — npm or Cargo — and updates only the pieces you actually installed. Updates are locked and transactional: Nexus remembers which services were running, verifies the replacement, and restores the exact previous version if the health check fails.
Uninstall
Section titled “Uninstall”nexus gateway uninstallnexus daemon uninstallnpm uninstall --global @egregore/nexusRemove the services before the package, so nothing is left registered to start at login.
Building from source
Section titled “Building from source”Only needed if you are working on Nexus itself. This is where Rust and pnpm come in.
cargo build --manifest-path core/Cargo.toml -p egregore-nexus --releaseFor the gateway and the console:
pnpm --dir gateway installpnpm --dir gateway dev- Quickstart — launch an agent and message it.
- Configuration — settings and environment variables.
- Web console — the browser view and what it needs running.
- CLI reference — every command and flag.