Configuration
Context profiles
~/.vagaris/context.json (or an explicit context/home override, or a repository-local .vagris/context.json/legacy project context) holds named profiles with apiBase, companyId, apiKeyEnvVarName and an optional link (organization, project, repository, branch). Managed by vagaris context set|show|list|use|link; see First Session.
The CLI keeps its own state (sign-ins, contexts, update history) in ~/.vagaris. VAGARIS_HOME and --data-dir still select an explicit root; VAGARIS_CONTEXT, VAGARIS_AUTH_STORE and command path overrides remain supported. Existing default CLI files under ~/.vagris require the one-time local migration, which preserves every profile and its selection. ~/.paperclip is no longer read: a machine that still keeps its sign-in there signs in again.
Credential stores
| File | Written by | Contents |
|---|---|---|
~/.vagaris/auth.json | vagaris auth login | Per-API-base access/refresh credentials and metadata; private file mode 0600, directory mode 0700 |
<node data folder>/node-identity.json | vagary node enroll | Machine fingerprint and Ed25519 key pair; the folder is per machine, not per CLI home (where) |
~/.vagaris/update-history.json | vagaris update / vagaris rollback | previousVersion, lastUpdatedAt, lastUpdatedTo |
Routines
vagaris routines disable-all --company-id <company-id> pauses every non-archived routine for an organization on the service your context targets — useful during an incident. It goes through the service like every other command, so each pause is authorized, recorded in the activity log and versioned as a routine revision.
Precedence summary
Flag → environment variable (VAGARIS_*, then VAGRIS_*) → project manifest → context profile → built-in default. Environment Variables lists every variable the CLI reads.
The API endpoint has its own order (operator ruling 2026-10-04): --api-base → the profile's apiBase, then its serviceRoot → VAGARIS_API_URL (compatibility) → the project manifest → Vagaris Cloud, https://vagaris.org, resolved to its API through the /.well-known/vagary discovery document on the first request.