Environment variables
Every environment variable agb reads, generated from env-docs.json and checked against the source.
This list is generated from website/env-docs.json. The generator scans every AGB_*, ADLC_* and ANTIGRAVITY_* token in lib/, bin/, mcp/, hooks/, sidecars/ and root scripts/, and fails when a token in the code is undocumented or a documented name is no longer in the code. Variables that are only read under test are tracked but not shown.
The Bundled column says whether the published plugin honours the variable. The bundled build (__AGB_BUNDLED__ set by esbuild) ignores developer overrides so a stray .envrc cannot redirect plugin or CLI resolution.
Core
| Name | Default | Description | Bundled |
|---|---|---|---|
| AGB_ACP_POOL | 1 | Set to 0 to disable the persistent warm agy acp JSON-RPC daemon pool in lib/acp-pool.mjs and force per-invocation agy --print fallback. | honoured |
| AGB_AGY_BIN | agy | Path or name of the agy executable used for builds, quota telemetry, doctor checks and bootstrap. | honoured |
| AGB_ALLOW_DIRTY | unset | Set to 1 to let agb run start against a repository with uncommitted changes (otherwise the run refuses to start). | honoured |
| AGB_ALLOW_REPO_KEV_URL | unset | Set to 1 to permit a non-loopback accelerators.decision.baseUrl from repository .adlc/config.json for the kev provider (host API keys are still never attached to repo-configured URLs). | honoured |
| AGB_BUILD_MAX_TIMEOUT | 30m | Hard ceiling on a single agy invocation, applied even when AGB_BUILD_TIMEOUT is 0. | honoured |
| AGB_BUILD_TIMEOUT | 15m | Per-ticket builder timeout passed to agy. For stream-json output, 0 (or empty) means no wall-clock limit; the ceiling and no-progress watchdog still apply. | honoured |
| AGB_CODEGRAPH | auto when .codegraph/ exists | Set to 0 to disable opt-in CodeGraph (.codegraph/) context slicing, blast-radius scoring, and impacted-test resolution, falling back to zero-dependency static-AST mode. | honoured |
| AGB_DECISION_ENGINE | auto when GEMINI_API_KEY is set | Set to 0 to disable the System-1 Decision Engine (lens gating, typed Arbiter triage, coldstart screening, and low-risk fast-ship), including GEMINI_API_KEY auto-detection and .adlc/config.json settings. | honoured |
| AGB_DECISION_PROVIDER | gemini-decisions (auto-detected via GEMINI_API_KEY) | Explicitly selects the System-1 Decision Engine provider (gemini-decisions, jev, or kev) used by lib/decision-engine.mjs, overriding GEMINI_API_KEY auto-detection. | honoured |
| AGB_DEFAULT_EFFORT | unset | Optional Strike-0 effort level override (low, medium, high, xhigh, max) passed as --effort to agy when ticket.effort is unset. | honoured |
| AGB_EVENT_PROGRESS_TIMEOUT | 5m | No-progress watchdog: an agy stream that emits no events for this long is terminated. | honoured |
| AGB_GATE_TIMEOUT_MS | 1800000 | Per-gate execution timeout in milliseconds for deterministic build/test gates in lib/scheduler.mjs. | honoured |
| AGB_HUD | auto on TTY | Set to 0 to disable the inline ANSI status bar during agb run, or 1 to force-enable it. | honoured |
| AGB_KEV_API_KEY | unset | Optional Bearer API key for the kev System-1 Decision Engine provider (falls back to OPENROUTER_API_KEY if unset). Scrubbed from error output. | honoured |
| AGB_KEV_BASE_URL | unset | Base HTTPS (or loopback HTTP) endpoint URL for a local or self-hosted Kev / OpenRouter-compatible System-1 Decision Engine provider. | honoured |
| AGB_KILL_GRACE_MS | 15000 | Milliseconds to wait between SIGTERM and SIGKILL when stopping an agy process tree. | honoured |
| AGB_MODEL_STATS_FILE | <plugin_data>/model_stats.jsonl | Unbundled override path for the BanditModelRouter empirical model outcome ledger recorded by agb run and read by agb plan; ignored in bundled plugin builds. | ignored |
| AGB_PROVIDER | unset | Only the value jetski is meaningful: bootstrap then installs plugins through the jetski runner. | honoured |
| AGB_REMOTE_SDK_BIN | unset | Optional executable wrapper for agb run --driver remote-sdk overriding the default python3 google-antigravity SDK bridge in lib/remote-sdk-worker.mjs. | honoured |
| AGB_RESCUE_TICKET | set by agb rescue | Set by agb rescue on interactive agy -i sessions to protect .booster IPC tokens and rescue locks via PreToolUse while preserving interactive operator prompts. | honoured |
| AGB_ROUTER_STATIC | unset | Set to 1 to bypass empirical BanditModelRouter candidate re-ranking and preserve static TIER_CANDIDATES order. | honoured |
| AGB_SESSION_ID | unset | Fallback session id used to locate the active brain when ANTIGRAVITY_CONVERSATION_ID is unset; forwarded to builder agy processes. | honoured |
| AGB_SYNC_MODELS_OFFLINE | unset | Set to 1 to use the built-in static model catalog instead of invoking agy models during doctor or sync-models. | honoured |
| AGB_TARGET_REPO | unset | Target repository path checked by bin/node-launcher.sh; any candidate Node binary whose realpath resolves inside AGB_TARGET_REPO (or the current working directory) is rejected to prevent repo-planted binary execution. | honoured |
| AGB_WARM_STRIKES | 1 | Set to 0 to disable warm second-strike builder resumption via agy --conversation <id> when a ticket fails its first attempt on the same model. | honoured |
| AGB_WORKER_BUILD_CMD | set by agb on builders | Set by agb on ticketed builder agy processes when plan.gate.build is a valid npm run script; permits the PreToolUse shell guard to allow that exact build gate command. | honoured |
| AGB_WORKER_MODE | set by agb | Set by agb on read-only worker agy processes (value readonly). The PreToolUse guard denies mutations and never prompts while it is set. | honoured |
| AGB_WORKER_TICKET | set by agb | Set by agb on builder agy processes to the ticket id; the PreToolUse guard scopes writes to that ticket and never prompts. | honoured |
| AGY_BIN | agy | Override path for the agy CLI executable used by scripts/stage-marketplace-plugin.mjs when validating staged plugin bundles. | honoured |
| ANTIGRAVITY_CONVERSATION_ID | set by Antigravity | Current Antigravity conversation id. Used to locate the active brain and artifact directory, and forwarded to builder agy processes. | honoured |
| ANTIGRAVITY_REMOTE_CONTROL | unset | Set to 1 by agb remote-control (or Antigravity Web Remote Control) to render compact vertical mobile status and P6 sign-off cards instead of wide ASCII tables. | honoured |
| ANTIGRAVITY_RESOLVING_ENVIRONMENT | set by Antigravity SSH | Set to 1 by Antigravity Desktop when probing a remote host's login shell over SSH; causes agb bootstrap to return immediately without running plugin installation. | honoured |
| ANTIGRAVITY_WORKSPACE | set by agb on builders | Set by agb on builder agy processes (alongside AGY_WORKSPACE and PWD) to the isolated ticket worktree path so headless companion hooks always resolve the worktree root. | honoured |
| GEMINI_API_KEY | unset | API key for the Google Gemini Decisions API System-1 provider (gemini-decision-1 at v1beta/decisions, zero output tokens). Auto-detected and prioritized by default unless AGB_DECISION_ENGINE=0 or another provider is explicitly configured. Treated as a secret and scrubbed from error output. | honoured |
| TYPESAFE_API_KEY | unset | API key for the TypeSafe Jev System-1 Decision Engine provider (jev-latest). Treated as a secret and scrubbed from error output. | honoured |
Plugin resolution
| Name | Default | Description | Bundled |
|---|---|---|---|
| ADLC_ANTIGRAVITY_PLUGIN_NAME | adlc-antigravity | Not read from the environment: a source constant in lib/plugin-paths.mjs naming the companion plugin's directory under the agy plugins folder. | honoured |
| ADLC_ANTIGRAVITY_PLUGIN_PATH | unset | Source checkout of the adlc-antigravity plugin to install from. Honoured by bootstrap only in unbundled runs and only together with AGB_DEV_ALLOW_UNVERIFIED_PLUGIN=1. | ignored |
| ADLC_GEMINI_PLUGIN_NAME | adlc-gemini | Not read from the environment: a source constant in lib/plugin-paths.mjs naming the adlc-gemini companion plugin directory snapshotted for run integrity and checked when adlc-antigravity is absent. | honoured |
| AGB_DEV_ALLOW_UNVERIFIED_PLUGIN | unset | Set to 1 (unbundled runs only) to let bootstrap install an unverified companion plugin from ADLC_ANTIGRAVITY_PLUGIN_PATH. | ignored |
| AGB_PLUGIN_DIR | ~/.gemini/config/plugins/adlc-antigravity | Override directory for the companion-plugin handshake manifest in lib/adlc-bridge.mjs (honoured in unbundled source runs only). | ignored |
| AGB_PLUGIN_ROOT | the booster plugin root | Plugin root holding vendor/adlc, used to find the vendored adlc CLI. Unbundled runs only. | ignored |
| PLUGIN_ROOT | set by Antigravity | Plugin root directory exported by Antigravity (via ${PLUGIN_ROOT} in hooks.json and mcp_config.json) and resolved by bin/hook-runner.sh and bin/node-launcher.sh. | honoured |
Sandbox and gates
| Name | Default | Description | Bundled |
|---|---|---|---|
| AGB_ALLOW_CODEGRAPH_MCP | unset | Set to 1 to allow CodeGraph MCP queries (codegraph_explore) in headless or read-only agb worker sessions (still restricted to paths inside the declared workspace and outside boosterDataRoots). | honoured |
| AGB_BROWSER_CHECK_CMD | unset | Optional shell command executed by lib/browser-gate.mjs during P5 verification to inspect rendered routes, capture console/server errors, and emit JSON screenshot telemetry. | honoured |
| AGB_BROWSER_ROUTES | set by agb on browserGate checkCmd | Exported by lib/browser-gate.mjs as a JSON array of normalized route paths when running a browserGate checkCmd. | honoured |
| AGB_BROWSER_URL | set by agb on browserGate checkCmd | Exported by lib/browser-gate.mjs to the loopback preview URL when running a browserGate checkCmd. | honoured |
| AGB_CANDIDATE_ROOT | set by agb on holdout runners | Exported by lib/holdout.mjs to the isolated candidate worktree path during P5 holdout verification so out-of-tree holdout scenarios can dynamically import candidate modules. | honoured |
| AGB_HOOK_DISABLE | unset | Any non-empty value bypasses the PreToolUse rails guard. Each bypass is logged to hooks.log and agb doctor warns about it. | honoured |
| AGB_LIFECYCLE_HOOKS | 1 | Set to 0 to bypass the advisory in-session lifecycle hooks (PostToolUse, PreInvocation, PostInvocation, Stop) in hooks/lifecycle.mjs. | honoured |
| AGB_LINUX_CONTAINER_ATTESTATION | unset | Set to 1 on restricted Docker/Kubernetes Linux CI runners without unprivileged userns to permit an ADLC_ADMIN_KEY-signed Linux container sandboxBypassAttestation in prepareBuilderContainment. | honoured |
| AGB_REQUIRE_DRIVER_SIGNATURE | unset | Set to 1 to make the Windows doctor sandbox check require a signed driver attestation in the probe output. | honoured |
| AGB_SANDBOX_GATES | on | Set to 0 to run gate commands without the OS sandbox (an explicit acknowledgement of host risk). | honoured |
| AGB_SANDBOX_PROBE_CMD | unset | Doctor sandbox-probe command override. Restricted to test execution; otherwise the check fails. | honoured |
| AGB_SANDBOX_PROBE_HELPER | unset | Helper script passed to the doctor sandbox probe. Honoured only during test execution. | honoured |
| AGB_STRICT_GATES | on in plan; off in run unless the repo has package.json | Plan compilation uses strict gates unless set to 0. At run time, 1 forces gate commands to match the npm pattern even without a package.json. | honoured |
| AGB_TICKET_ID | set by agb on browserGate checkCmd | Exported by lib/browser-gate.mjs to the candidate ticket ID when running a browserGate checkCmd. | honoured |
| AGB_WORKTREE_ROOT | unset | Absolute worktree directory path enforced by PreToolUse (hooks/policy/evaluate.mjs) for Workspace='inherit' cloud/Remote Agent builders; denies file mutations, redirects, destructive shell commands, and run_command Cwd outside the assigned worktree. | honoured |
Pools and quota
| Name | Default | Description | Bundled |
|---|---|---|---|
| AGB_ARBITER_MODEL | gemini-4-argon-high | Override the model slug used by the neutral arbiter during 5-lens Adversarial Review Loop triage. | honoured |
| AGB_BRAIN_MODEL | gemini-4-argon-high | Override the frontier model slug used for Stage A brain-to-plan conversion. | honoured |
| AGB_BRAIN_REPAIR_MODEL | gemini-4-argon-high | Override the fallback model slug used when repairing invalid Stage A plan JSON. | honoured |
| AGB_COLDSTART_MODEL | gemini-3.8-flash-low | Override the model slug used by the coldstart self-sufficiency gate. | honoured |
| AGB_DISABLE_ORCHESTRATOR | unset | Set to 1 to disable routing frontier tickets to gemini-pro-orchestrator and gemini-pro-orchestrator-argon, falling back to FRONTIER_NO_ORCHESTRATOR. | honoured |
| AGB_IGNORE_STATUS_QUOTA_CACHE | unset | Set to 1 to force PoolSet.refreshQuota to bypass agb_statusline_quota.json and spawn agy -p /quota directly. | honoured |
| AGB_PARALLAX_JUDGE_MODEL | gemini-4-argon-high | Override the model slug used by the parallax contract judge. | honoured |
| AGB_PARALLAX_READER_MODEL | gemini-3.8-flash-medium | Override the model slug used by the parallax edge reader. | honoured |
| AGB_POOLS_DIR | unset | Directory for the shared pool state, v2 state and lock files. | honoured |
| AGB_POOLS_LOCK | derived | Explicit pool lock file path (otherwise derived from AGB_POOLS_DIR or AGB_QUOTA_STATE). | honoured |
| AGB_POOLS_V2 | derived | Explicit v2 pool state file path (otherwise derived from AGB_POOLS_DIR or AGB_QUOTA_STATE). | honoured |
| AGB_PREMORTEM_MODEL | gemini-4-argon-high | Override the model slug used by the advisory premortem gate. | honoured |
| AGB_QUOTA_STATE | derived | Explicit shared quota state file path; the v2 and lock paths are derived from it when not set. | honoured |
| AGB_QUOTA_TIMEOUT_MS | unset (wait for reset) | Maximum milliseconds a ticket waits for a quota reset before failing. | honoured |
Sidecar
| Name | Default | Description | Bundled |
|---|---|---|---|
| AGB_SIDECAR_PORT | 3333 | Default port for agb sidecar; --port overrides it. | honoured |
| ANTIGRAVITY_SIDECAR_WEB_PORT | unset (launcher port 3333) | Selects unauthenticated Jetski mode (token = null) and sets the listen port in sidecars/jetski-launcher.mjs only. sidecars/server.mjs and agb sidecar always enforce explicit tokens regardless of this variable. Security: In sidecars/jetski-launcher.mjs, disables token auth (passes token = null to serveSidecar) for Jetski mode; sidecars/server.mjs and agb sidecar always enforce explicit tokens. | honoured |
Paths
| Name | Default | Description | Bundled |
|---|---|---|---|
| AGB_ARTIFACT_DIR | active brain dir, else <repo>/.booster | Where agb writes plan artifacts. | honoured |
| AGB_BRAIN_DIR | ~/.gemini/antigravity-cli/brain (falls back to ~/.gemini/antigravity/brain and ~/.gemini/jetski/brain) | Antigravity brain directory searched for plans. | honoured |
| AGB_CALIBRATION_DIR | docs/calibration under cwd | Where agb probe appends its probes-<day>.md calibration file. | honoured |
| AGB_EXEC_CACHE_DIR | under AGB_HOME_DIR | Cache directory for authenticated executables. | honoured |
| AGB_EXEC_LOCKS_DIR | under AGB_HOME_DIR | Directory for executable lock records; stale locks with a dead PID are recovered. | honoured |
| AGB_FACTORY_LEDGER_FILE | <plugin_data>/factory_ledger.jsonl | Unbundled override path for the append-only Factory Economics Ledger written by agb run and read by Mission Control; ignored in bundled plugin builds. | ignored |
| AGB_GRAPH_COUPLING_FILE | .adlc/graph-coupling.json | Path to an optional static import-graph coupling JSON file consulted by applyMergeForecast and scanStaticImportCoupling. | honoured |
| AGB_HOLDOUT_DIR | <plugin_data>/holdouts | Unbundled override directory for sealed Dark-Factory holdout scenarios staged and executed during P5 verification; ignored in bundled plugin builds. | ignored |
| AGB_HOME_DIR | the OS home directory | Home directory override for agb's per-user state. Ignored in bundled plugin builds (IS_BUNDLED === true). | ignored |
| AGB_STATUSLINE_QUOTA_FILE | <pools_dir>/agb_statusline_quota.json | Unbundled override path for the lock-free statusline quota cache written by lib/cli-statusline.mjs and read by PoolSet.refreshQuota; ignored in bundled plugin builds. | ignored |
ADLC toolkit
| Name | Default | Description | Bundled |
|---|---|---|---|
| ADLC_ADMIN_KEY | unset | HMAC key used to verify a Windows sandbox-bypass attestation. Treated as a secret: never forwarded to builder agy processes. | honoured |
| ADLC_CLI_PATH | unset | Custom adlc executable. Honoured only with AGB_ALLOW_CUSTOM_ADLC_CLI=1 in unbundled runs; the bundled build uses only the vendored adlc. | ignored |
| ADLC_MANIFEST_KEY | unset | Key used by adlc gate-manifest. Treated as a secret: never forwarded to builder agy processes. | honoured |
| ADLC_P4_ENFORCEMENT | set by agb | Set to 1 by the scheduler on builder processes when rail enforcement is available, enabling the PreToolUse rails hook. | honoured |
| ADLC_PROVIDER | unset | Read by the @adlc tools, not by agb. Bootstrap suggests ADLC_PROVIDER=agy to run them on Antigravity quota. | honoured |
| ADLC_TICKET | set by agb | Set by the scheduler on builder processes to the ticket id whose rails the PreToolUse hook enforces. | honoured |
| ADLC_TICKET_STORE | unset | Ticket-store path override the PreToolUse guard also protects. | honoured |
| ADLC_TICKETS | unset | Alternative ticket-store path the PreToolUse guard also protects. | honoured |
| AGB_ADLC_BIN | unset | Alias of ADLC_CLI_PATH with the same restrictions (AGB_ALLOW_CUSTOM_ADLC_CLI=1, unbundled only). | ignored |
| AGB_ALLOW_CUSTOM_ADLC_CLI | unset | Set to 1 to honour ADLC_CLI_PATH / AGB_ADLC_BIN in unbundled runs. The path must pass the temporary/world-writable path checks. | ignored |
| AGB_ALLOW_SYSTEM_ADLC | unset | Set to 1 to let unbundled runs fall back to an adlc found on the system PATH. | ignored |
Notes and evidence
- No stream-cap variables. Stream limits are hard-coded: 1 MB per line, 50 MB per stream and 5 MB of consecutive unparseable output (C2). There is no environment variable for them.
- Timeouts.
AGB_BUILD_TIMEOUTdefaults to15m(C19); for stream-json output an empty or0timeout means no wall-clock limit (unlimited stream-json).AGB_BUILD_MAX_TIMEOUT(default30m) and theAGB_EVENT_PROGRESS_TIMEOUTno-progress watchdog (default5m) still apply (ceiling and watchdog). ANTIGRAVITY_SIDECAR_WEB_PORTis real and security-relevant:sidecars/server.mjsandagb sidecaralways enforce explicit tokens regardless ofANTIGRAVITY_SIDECAR_WEB_PORT, whereas setting it causessidecars/jetski-launcher.mjsto launch in unauthenticated Jetski mode (token = null) on that port (C3; historically in v1.0.0 the server skipped its token check directly: v1.0.0 server check). See Security.AGB_REQUIRE_DRIVER_SIGNATURE=1makes the Windows doctor sandbox check require a signed driver attestation (C8).AGB_PLUGIN_DIRis not the ADLC plugin source path.agb sidecarwrites its manifest there (C17), and the unbundled companion-plugin handshake reads its installed manifest from there (handshake manifest dir). The ADLC plugin source isADLC_ANTIGRAVITY_PLUGIN_PATH.- Custom ADLC CLI.
ADLC_CLI_PATHandAGB_ADLC_BINare honoured only withAGB_ALLOW_CUSTOM_ADLC_CLI=1(C18), and never in the bundled build, which resolves only the vendored ADLC (bundled early return). - Secrets are not forwarded.
ADLC_ADMIN_KEY,ADLC_MANIFEST_KEYand any name matching the sensitive-key pattern are stripped from builder agy processes (FORBIDDEN_SECRETS). - Bundled guards.
ADLC_ANTIGRAVITY_PLUGIN_PATHandAGB_DEV_ALLOW_UNVERIFIED_PLUGIN(bootstrap guard),AGB_PLUGIN_ROOT(plugin root guard) and the custom/system ADLC switches are ignored when bundled.