Skip to main content

CLI Overview

vagaris is the Vagaris command-line client. It needs no server of its own, and does three jobs:

  1. Diagnoses its connection — vagaris doctor checks the server your commands target, your credential, and this machine's node and lease (Doctor).
  2. Operates a company — vagaris issue, vagaris agent, vagaris approval, vagaris skills and the other control-plane groups talk to the Vagaris API.
  3. Hosts governed work on your machine — vagaris dev claims a run from the server, verifies the server-issued lease, and executes a coding agent (Claude Code or Codex) inside an isolated worktree under that lease. vagaris runctl watches, pauses, resumes and cancels runs; vagary node enrols the machine.

The package is @vagarylabs/vagaris; the installed command is vagaris. The older vagris command is kept as an alias and prints a deprecation warning on stderr before running the same command tree.

Where to start​

You want toRead
Install the binaryInstall
Go from nothing to a completed taskGetting Started
Sign in to VagarisLogin
Understand what a session looks likeFirst Session
Run an agent on your laptop under governanceDeveloper Mode
Look up a command or flagCLI Reference
Something is wrongTroubleshooting, then Support

Shared options​

Every command that talks to the server accepts the same client options (see vagaris company list --help for the canonical list):

FlagMeaning
--api-base <url>Base URL of the Vagaris API
--api-key <token>Bearer token for agent-authenticated calls
--context <path>Path to the CLI context file
--profile <name>Context profile to use
-c, --config <path>Path to the instance config file
-d, --data-dir <path>Data directory root, isolating all state from the default home
--jsonPrint raw JSON

Company-scoped commands add -C, --company-id <id>. Where a value is not passed on the command line the CLI resolves it from environment variables and then from the active context profile — the exact precedence is on Configuration.

Exit codes​

Client commands exit with a stable code so scripts can branch without parsing text: 0 success, 1 unexpected error, 2 policy refusal, 3 authentication, 4 conflict, 5 not found, 6 timeout, and higher codes for lease, node, ceiling, protocol and usage errors. The full table is on Troubleshooting.

Two legacy names you will see​

  • vagris — the previous command name. Still installed, still works, warns on stderr.
  • VAGRIS_* — the previous environment-variable prefix. Every variable is read under the canonical VAGARIS_* first, then VAGRIS_*; see Environment Variables.