These docs track main. Latest release: v2.0.0.

Skip to Content
antigravity-booster
Reference

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

NameDefaultDescriptionBundled
AGB_ACP_POOL1Set 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_BINagyPath or name of the agy executable used for builds, quota telemetry, doctor checks and bootstrap.honoured
AGB_ALLOW_DIRTYunsetSet to 1 to let agb run start against a repository with uncommitted changes (otherwise the run refuses to start).honoured
AGB_ALLOW_REPO_KEV_URLunsetSet 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_TIMEOUT30mHard ceiling on a single agy invocation, applied even when AGB_BUILD_TIMEOUT is 0.honoured
AGB_BUILD_TIMEOUT15mPer-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_CODEGRAPHauto when .codegraph/ existsSet 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_ENGINEauto when GEMINI_API_KEY is setSet 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_PROVIDERgemini-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_EFFORTunsetOptional Strike-0 effort level override (low, medium, high, xhigh, max) passed as --effort to agy when ticket.effort is unset.honoured
AGB_EVENT_PROGRESS_TIMEOUT5mNo-progress watchdog: an agy stream that emits no events for this long is terminated.honoured
AGB_GATE_TIMEOUT_MS1800000Per-gate execution timeout in milliseconds for deterministic build/test gates in lib/scheduler.mjs.honoured
AGB_HUDauto on TTYSet to 0 to disable the inline ANSI status bar during agb run, or 1 to force-enable it.honoured
AGB_KEV_API_KEYunsetOptional 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_URLunsetBase HTTPS (or loopback HTTP) endpoint URL for a local or self-hosted Kev / OpenRouter-compatible System-1 Decision Engine provider.honoured
AGB_KILL_GRACE_MS15000Milliseconds to wait between SIGTERM and SIGKILL when stopping an agy process tree.honoured
AGB_MODEL_STATS_FILE<plugin_data>/model_stats.jsonlUnbundled 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_PROVIDERunsetOnly the value jetski is meaningful: bootstrap then installs plugins through the jetski runner.honoured
AGB_REMOTE_SDK_BINunsetOptional 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_TICKETset by agb rescueSet 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_STATICunsetSet to 1 to bypass empirical BanditModelRouter candidate re-ranking and preserve static TIER_CANDIDATES order.honoured
AGB_SESSION_IDunsetFallback session id used to locate the active brain when ANTIGRAVITY_CONVERSATION_ID is unset; forwarded to builder agy processes.honoured
AGB_SYNC_MODELS_OFFLINEunsetSet to 1 to use the built-in static model catalog instead of invoking agy models during doctor or sync-models.honoured
AGB_TARGET_REPOunsetTarget 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_STRIKES1Set 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_CMDset by agb on buildersSet 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_MODEset by agbSet 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_TICKETset by agbSet by agb on builder agy processes to the ticket id; the PreToolUse guard scopes writes to that ticket and never prompts.honoured
AGY_BINagyOverride path for the agy CLI executable used by scripts/stage-marketplace-plugin.mjs when validating staged plugin bundles.honoured
ANTIGRAVITY_CONVERSATION_IDset by AntigravityCurrent Antigravity conversation id. Used to locate the active brain and artifact directory, and forwarded to builder agy processes.honoured
ANTIGRAVITY_REMOTE_CONTROLunsetSet 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_ENVIRONMENTset by Antigravity SSHSet 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_WORKSPACEset by agb on buildersSet 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_KEYunsetAPI 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_KEYunsetAPI key for the TypeSafe Jev System-1 Decision Engine provider (jev-latest). Treated as a secret and scrubbed from error output.honoured

Plugin resolution

NameDefaultDescriptionBundled
ADLC_ANTIGRAVITY_PLUGIN_NAMEadlc-antigravityNot 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_PATHunsetSource 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_NAMEadlc-geminiNot 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_PLUGINunsetSet 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-antigravityOverride directory for the companion-plugin handshake manifest in lib/adlc-bridge.mjs (honoured in unbundled source runs only).ignored
AGB_PLUGIN_ROOTthe booster plugin rootPlugin root holding vendor/adlc, used to find the vendored adlc CLI. Unbundled runs only.ignored
PLUGIN_ROOTset by AntigravityPlugin 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

NameDefaultDescriptionBundled
AGB_ALLOW_CODEGRAPH_MCPunsetSet 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_CMDunsetOptional 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_ROUTESset by agb on browserGate checkCmdExported by lib/browser-gate.mjs as a JSON array of normalized route paths when running a browserGate checkCmd.honoured
AGB_BROWSER_URLset by agb on browserGate checkCmdExported by lib/browser-gate.mjs to the loopback preview URL when running a browserGate checkCmd.honoured
AGB_CANDIDATE_ROOTset by agb on holdout runnersExported 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_DISABLEunsetAny non-empty value bypasses the PreToolUse rails guard. Each bypass is logged to hooks.log and agb doctor warns about it.honoured
AGB_LIFECYCLE_HOOKS1Set to 0 to bypass the advisory in-session lifecycle hooks (PostToolUse, PreInvocation, PostInvocation, Stop) in hooks/lifecycle.mjs.honoured
AGB_LINUX_CONTAINER_ATTESTATIONunsetSet 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_SIGNATUREunsetSet to 1 to make the Windows doctor sandbox check require a signed driver attestation in the probe output.honoured
AGB_SANDBOX_GATESonSet to 0 to run gate commands without the OS sandbox (an explicit acknowledgement of host risk).honoured
AGB_SANDBOX_PROBE_CMDunsetDoctor sandbox-probe command override. Restricted to test execution; otherwise the check fails.honoured
AGB_SANDBOX_PROBE_HELPERunsetHelper script passed to the doctor sandbox probe. Honoured only during test execution.honoured
AGB_STRICT_GATESon in plan; off in run unless the repo has package.jsonPlan 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_IDset by agb on browserGate checkCmdExported by lib/browser-gate.mjs to the candidate ticket ID when running a browserGate checkCmd.honoured
AGB_WORKTREE_ROOTunsetAbsolute 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

NameDefaultDescriptionBundled
AGB_ARBITER_MODELgemini-4-argon-highOverride the model slug used by the neutral arbiter during 5-lens Adversarial Review Loop triage.honoured
AGB_BRAIN_MODELgemini-4-argon-highOverride the frontier model slug used for Stage A brain-to-plan conversion.honoured
AGB_BRAIN_REPAIR_MODELgemini-4-argon-highOverride the fallback model slug used when repairing invalid Stage A plan JSON.honoured
AGB_COLDSTART_MODELgemini-3.8-flash-lowOverride the model slug used by the coldstart self-sufficiency gate.honoured
AGB_DISABLE_ORCHESTRATORunsetSet 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_CACHEunsetSet to 1 to force PoolSet.refreshQuota to bypass agb_statusline_quota.json and spawn agy -p /quota directly.honoured
AGB_PARALLAX_JUDGE_MODELgemini-4-argon-highOverride the model slug used by the parallax contract judge.honoured
AGB_PARALLAX_READER_MODELgemini-3.8-flash-mediumOverride the model slug used by the parallax edge reader.honoured
AGB_POOLS_DIRunsetDirectory for the shared pool state, v2 state and lock files.honoured
AGB_POOLS_LOCKderivedExplicit pool lock file path (otherwise derived from AGB_POOLS_DIR or AGB_QUOTA_STATE).honoured
AGB_POOLS_V2derivedExplicit v2 pool state file path (otherwise derived from AGB_POOLS_DIR or AGB_QUOTA_STATE).honoured
AGB_PREMORTEM_MODELgemini-4-argon-highOverride the model slug used by the advisory premortem gate.honoured
AGB_QUOTA_STATEderivedExplicit shared quota state file path; the v2 and lock paths are derived from it when not set.honoured
AGB_QUOTA_TIMEOUT_MSunset (wait for reset)Maximum milliseconds a ticket waits for a quota reset before failing.honoured

Sidecar

NameDefaultDescriptionBundled
AGB_SIDECAR_PORT3333Default port for agb sidecar; --port overrides it.honoured
ANTIGRAVITY_SIDECAR_WEB_PORTunset (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

NameDefaultDescriptionBundled
AGB_ARTIFACT_DIRactive brain dir, else <repo>/.boosterWhere 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_DIRdocs/calibration under cwdWhere agb probe appends its probes-<day>.md calibration file.honoured
AGB_EXEC_CACHE_DIRunder AGB_HOME_DIRCache directory for authenticated executables.honoured
AGB_EXEC_LOCKS_DIRunder AGB_HOME_DIRDirectory for executable lock records; stale locks with a dead PID are recovered.honoured
AGB_FACTORY_LEDGER_FILE<plugin_data>/factory_ledger.jsonlUnbundled 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.jsonPath to an optional static import-graph coupling JSON file consulted by applyMergeForecast and scanStaticImportCoupling.honoured
AGB_HOLDOUT_DIR<plugin_data>/holdoutsUnbundled override directory for sealed Dark-Factory holdout scenarios staged and executed during P5 verification; ignored in bundled plugin builds.ignored
AGB_HOME_DIRthe OS home directoryHome 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.jsonUnbundled 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

NameDefaultDescriptionBundled
ADLC_ADMIN_KEYunsetHMAC key used to verify a Windows sandbox-bypass attestation. Treated as a secret: never forwarded to builder agy processes.honoured
ADLC_CLI_PATHunsetCustom 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_KEYunsetKey used by adlc gate-manifest. Treated as a secret: never forwarded to builder agy processes.honoured
ADLC_P4_ENFORCEMENTset by agbSet to 1 by the scheduler on builder processes when rail enforcement is available, enabling the PreToolUse rails hook.honoured
ADLC_PROVIDERunsetRead by the @adlc tools, not by agb. Bootstrap suggests ADLC_PROVIDER=agy to run them on Antigravity quota.honoured
ADLC_TICKETset by agbSet by the scheduler on builder processes to the ticket id whose rails the PreToolUse hook enforces.honoured
ADLC_TICKET_STOREunsetTicket-store path override the PreToolUse guard also protects.honoured
ADLC_TICKETSunsetAlternative ticket-store path the PreToolUse guard also protects.honoured
AGB_ADLC_BINunsetAlias of ADLC_CLI_PATH with the same restrictions (AGB_ALLOW_CUSTOM_ADLC_CLI=1, unbundled only).ignored
AGB_ALLOW_CUSTOM_ADLC_CLIunsetSet 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_ADLCunsetSet 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_TIMEOUT defaults to 15m (C19); for stream-json output an empty or 0 timeout means no wall-clock limit (unlimited stream-json). AGB_BUILD_MAX_TIMEOUT (default 30m) and the AGB_EVENT_PROGRESS_TIMEOUT no-progress watchdog (default 5m) still apply (ceiling and watchdog).
  • ANTIGRAVITY_SIDECAR_WEB_PORT is real and security-relevant: sidecars/server.mjs and agb sidecar always enforce explicit tokens regardless of ANTIGRAVITY_SIDECAR_WEB_PORT, whereas setting it causes sidecars/jetski-launcher.mjs to 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=1 makes the Windows doctor sandbox check require a signed driver attestation (C8).
  • AGB_PLUGIN_DIR is not the ADLC plugin source path. agb sidecar writes its manifest there (C17), and the unbundled companion-plugin handshake reads its installed manifest from there (handshake manifest dir). The ADLC plugin source is ADLC_ANTIGRAVITY_PLUGIN_PATH.
  • Custom ADLC CLI. ADLC_CLI_PATH and AGB_ADLC_BIN are honoured only with AGB_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_KEY and any name matching the sensitive-key pattern are stripped from builder agy processes (FORBIDDEN_SECRETS).
  • Bundled guards. ADLC_ANTIGRAVITY_PLUGIN_PATH and AGB_DEV_ALLOW_UNVERIFIED_PLUGIN (bootstrap guard), AGB_PLUGIN_ROOT (plugin root guard) and the custom/system ADLC switches are ignored when bundled.

On this page