Skip to main content

Environment Variables

One canonical prefix, one accepted fallback​

The canonical prefix is VAGARIS_. One earlier prefix is still honoured on every read: the CLI looks for VAGARIS_<NAME> first, then VAGRIS_<NAME>. Setting the canonical spelling overrides a stale older value without deleting it, and an empty string counts as set. New configuration should use VAGARIS_.

The original product's prefix, used before Vagaris, is no longer read at all. If your shell, CI or service configuration still sets variables under it, rename each one to the same name with VAGARIS_ in front and remove the old one; see Upgrading from an older install.

The tables below name the suffix; prefix it with VAGARIS_ (or, for an existing setup, VAGRIS_). Values shown as defaults are what the CLI uses when no spelling is set.

Locating state​

SuffixDefaultRead by
HOME~/.vagarisEvery command — the CLI's own home (sign-ins, contexts, update history). Set, it is also the root a local instance resolves under; unset, an instance defaults to ~/.vagris
INSTANCE_IDdefaultInstance selection
CONFIGderivedPath to the instance config file
CONTEXTderivedPath to the context file

--data-dir sets HOME (and derives INSTANCE_ID, CONFIG, CONTEXT) for one command.

The node identity is not CLI state and does not follow HOME: it lives in the machine's node data folder (see Node Enrolment). No environment variable moves it: a folder chosen by the environment would let any process of the same user pick what an elevated command reads.

Talking to a server​

SuffixDefaultRead by
API_URLVagaris Cloud (https://vagaris.org, resolved through /.well-known/vagary)Client commands — an explicit API endpoint; skips discovery
API_KEYnoneClient commands — bearer token
COMPANY_IDnoneCompany-scoped commands
AGENT_IDnoneMCP server default agent
RUN_IDnoneMCP server run attribution
MCP_TOOL_MODEfullMCP server: full, propose or allowlist
MCP_TOOL_ALLOWLISTnoneMCP server: comma-separated tool names when mode is allowlist

An API key from the environment, API_KEY or the variable a context profile names (vagaris context set --api-key-env-var-name <name>), carries no audience, so only vagaris sends it. The vagary platform CLI ignores it (and says so on stderr) and acts with its own session from vagary auth login.

Governed execution​

SuffixPurpose
NATIVE_GOVERNORSelects the native governance chain used for governed spawns
GOVERNOR_DIRDirectory of the governance chain scripts

VAGRIS_SESSION_ENVELOPE is set by vagaris dev --agent|--native for the executor, not read from your environment. It keeps the VAGRIS_ spelling because that is the name the CLI emits and agent frontends read today.

Telemetry​

The CLI sends no usage telemetry, so it reads no telemetry variables.

Unprefixed variables​

VariablePurpose
ANTHROPIC_API_KEY, OPENAI_API_KEYProvider keys for adapters and executors (Model Providers)

The service's own settings are not yours to set: Vagaris Cloud, and a dedicated service Vagary runs for you, are configured by Vagary.