Install
Requirements
- Node.js 20 or newer (the package runs on Node; the Homebrew formula depends on
node). - macOS or Linux.
vagary node doctorreports other platforms as untested. gitif you intend to usevagaris dev, which creates a git worktree per run.
npm
npm install -g @vagarylabs/vagaris
vagaris --version
npm install -g is also what vagaris update and vagaris rollback run under the hood, so keeping the global install on npm keeps those commands working.
To try a command without installing globally:
npx @vagarylabs/vagaris doctor --help
Homebrew
The formula is Vagaris, published from the vagarylabs/homebrew-vagaris tap. It installs the same npm tarball and links two commands, vagaris and the legacy alias vagris:
brew tap vagarylabs/vagaris
brew install vagaris
vagaris --version
Verify
vagaris --version
vagaris --help
vagaris doctor --json
Before you sign in, vagaris doctor reports the missing credential as a warning — that is expected before Getting Started; the JSON shape is documented on Doctor.
Where files go
The CLI keeps its state under one home directory:
| Path | Contents |
|---|---|
~/.vagaris/ | Default CLI credential and context home. |
~/.vagaris/context.json | CLI context profiles |
~/.vagaris/auth.json | Private file-backed access/refresh credentials (0600, inside a 0700 directory) |
~/.vagris/node-identity.json | This machine's node attestation key, written by vagary node enroll |
~/.vagaris/update-history.json | The previous version recorded by vagaris update, used by vagaris rollback |
Set VAGARIS_HOME to move the whole tree, or pass --data-dir <path> on any command to isolate a run completely. Details on Configuration.
Existing default CLI auth/context files can be moved with vagaris auth migrate-state --dry-run, then vagaris auth migrate-state. This preserves sign-in and profiles without moving runtime data or node keys; see Login.
Upgrading from an older install
This release no longer reads anything named after the product Vagaris was before. For an install that still uses those names:
- Environment variables. Variables under the original product's prefix are ignored. Rename each one to the same name with
VAGARIS_in front (same value), for example in your shell profile, CI secrets or service configuration, and remove the old one.VAGRIS_*names are still read. - The old state folder. Sign-ins, profiles and instance data left in the original product's folder in your home directory are not read or moved. Run
vagaris loginto sign in again. To keep using an old local instance, move its folder to~/.vagrisor pointVAGARIS_HOMEat it. - Company packages.
vagaris company importfrom a local folder reads the package sidecar only as.vagaris.yaml. A package exported by an older release names it after the previous product: rename that file before importing. - Installed agent skills. Skills installed by an older release (
vagaris agent local-cli --install-skills) read the old variable names. Reinstall them with the same command after upgrading.
Upgrade a self-hosted server before the CLI on its executors: an older server injects only the old names into agent runs, and this CLI no longer reads them. Agent runs started before your server was upgraded keep the old variable names they were started with; let them finish, or restart them, after the upgrade.
The legacy command
vagris remains installed beside vagaris. It runs identical code and writes one line to stderr:
Warning: 'vagris' is deprecated and will be removed in the next release; use 'vagaris' instead.
Scripts that parse stdout are unaffected; update them to vagaris at your convenience.
Uninstall
vagaris uninstall removes the CLI's own files and revokes its stored credential; it deliberately leaves other tools' directories alone. See Updates.