Skip to main content

Environment variables

Current source review

This page was reconciled against current development source on 2026-11-08. Historical public-source links retain their original revisions and do not establish that a public mirror or installed runtime contains current behavior. This is static documentation/source review, not an application, provider, database or security test.

This reference separates supported service settings from installer, test and compatibility names. The inventory was statically checked against the current source; internal/test names are classified separately below. Installation scripts and containers can override them; inspect the actual service environment before diagnosing a mismatch. Never paste encryption keys, database passwords or provider credentials into a diagnostic report.

See configuration ownership, deployment and containers.

Listener and authentication​

Authentication settings resolve as explicit runtime arguments → environment → PostgreSQL settings → defaults. Comma-separated values are trimmed. An environment override can keep a database/UI change from becoming effective.

VariableDefault / interpretation
BURROW_UI_HOSTDirect server/Docker 0.0.0.0; native installer writes 127.0.0.1; generic config resolver 127.0.0.1
BURROW_UI_PORT42817; direct server also accepts --port=, after the environment
BURROW_UI_AUTH_MODEPersisted value, otherwise none; choices none, trusted-proxy, basic, oidc
BURROW_UI_AUTH_ALLOWED_PROXIES127.0.0.1,::1; exact socket peer addresses, not CIDRs
BURROW_UI_AUTH_USER_HEADERx-forwarded-user, normalized to lowercase
BURROW_UI_AUTH_BASIC_USERNAMEUnset; required for Basic mode
BURROW_UI_AUTH_BASIC_PASSWORD_HASHUnset; stored scrypt hash, not a plaintext password
BURROW_UI_AUTH_BASIC_SESSION_TTL_SECONDS43200; minimum 60 seconds
BURROW_UI_AUTH_BASIC_INSECURE_COOKIESCase-insensitive true disables Basic Secure cookies; HTTP development only
BURROW_UI_AUTH_OIDC_ISSUERUnset; full exact provider issuer, including path/trailing slash; must match discovery issuer and token iss
BURROW_UI_AUTH_OIDC_CLIENT_IDUnset; required for OIDC
BURROW_UI_AUTH_OIDC_CLIENT_SECRETUnset; alternatively encrypted PostgreSQL secret
BURROW_UI_AUTH_OIDC_REDIRECT_URIUnset; explicit public HTTPS URI recommended behind a proxy, with exact path /auth/oidc/callback; must match provider registration
BURROW_UI_AUTH_OIDC_SCOPESopenid,email,profile
BURROW_UI_AUTH_OIDC_ALLOWED_EMAILSEmpty; optional comma-separated allowlist
BURROW_UI_AUTH_OIDC_ALLOWED_DOMAINSEmpty; optional comma-separated allowlist
BURROW_UI_AUTH_OIDC_INSECURE_COOKIESCase-insensitive true disables OIDC Secure cookies; HTTP development only

OIDC has no configurable session-TTL environment variable in the reviewed implementation. Its signed session expires at the earlier of ID-token expiry and eight hours; the Basic session-TTL variable does not apply. See Authentik setup for exact issuer/callback examples.

GitHub workflow-completion receiver​

VariableDefault / meaning
BURROW_GITHUB_WEBHOOK_SECRETOptional nonempty override for the global /api/events/github receiver; takes precedence over the encrypted secret saved in Settings

Settings-first configuration does not require this override. Changing a deployment environment override requires restarting/recreating its process; saving the supported receiver settings applies without a restart. Clearing a saved secret does not clear an active environment override. See task workflows.

Browser request controls​

VariableDefault / meaning
BURROW_UI_ORIGIN_CHECKtrue by default; deployment-only true/false control, not a saved preference; keep enabled for browser-facing deployments
BURROW_UI_ALLOWED_ORIGINSEmpty; comma-separated exact additional origins
BURROW_UI_ALLOWED_HOSTSEmpty disables Host allowlist enforcement; otherwise exact host/port authorities, no wildcards
BURROW_UI_TRUSTED_PROXIESEmpty; exact peer IPs trusted for forwarded host/protocol, separate from authentication proxies
BURROW_REQUEST_MAX_BYTES100663296 (96 MiB) JSON body limit
BURROW_REQUEST_TIMEOUT_MS30000 JSON body read timeout
BURROW_IMPORT_MAX_COMPRESSED_BYTES67108864 (64 MiB) encoded-bundle compressed resource ceiling
BURROW_IMPORT_MAX_DECOMPRESSED_BYTES268435456 (256 MiB) expanded export resource ceiling
BURROW_JSON_MAX_DEPTH128 JSON traversal depth
BURROW_JSON_MAX_ITEMS1000000 JSON traversal item budget
See Authentication caveats

Runtime paths and key material​

VariableDefault / purpose
BURROW_RUNTIME_ROOTGeneric /mnt/local/burrow; native installer $HOME/.burrow; Docker /data
BURROW_SOURCE_ROOTLoaded release/source root; generic resolver can fall back to current directory
BURROW_WORKSPACE_ROOT<runtimeRoot>/workspace
BURROW_AGENT_IDResolver fallback hatchet; does not create that agent
BURROW_AGENT_WORKSPACE_ROOT<workspaceRoot>/<agentId>; suppressed by an explicit workspace-root argument
BURROW_SKILLS_ROOT<agentWorkspaceRoot>/skills fallback; current dedicated managed copies are filesystem-owned, separate from ordinary PostgreSQL skill/source records
BURROW_CACHE_ROOT<runtimeRoot>/cache
BURROW_ARCHIVE_ROOT<runtimeRoot>/archive
BURROW_SETTINGS_KEYRequired external key material: Base64 encoding of exactly 32 bytes
BURROW_SETTINGS_KEY_FILEContainer-entrypoint override; defaults to <runtimeRoot>/config/settings.key
BURROW_RUN_CANCELLATION_GRACE_MS5000; minimum 1000 ms cancellation grace before drain/fencing decisions, not a rollback guarantee
BURROW_SHUTDOWN_DRAIN_MS10000; minimum 1000 ms HTTP connection drain window
BURROW_DISABLE_BACKGROUND_SCHEDULERSDisabled only when set to 1, true, yes or on, case-insensitive
BURROW_BOOTSTRAP_SAMPLE_IDENTITIESSample-identity bootstrap is opt-in; use 1 for explicit fixtures, not as ordinary setup

The encryption key is needed to decrypt stored credentials after recovery. Keep it with a protected backup, outside public documentation and source control. Container startup persists a generated key and rejects a conflicting supplied key. The key-file variable is an entrypoint feature, not a general backend file-loader setting.

PostgreSQL​

The supported startup wrapper requires an explicit lifecycle. Although the low-level resolver defaults to disabled, normal startup rejects it with postgres_startup_requires_explicit_lifecycle. The native installer and container select managed unless configured otherwise.

VariableDefault / purpose
BURROW_POSTGRES_LIFECYCLEmanaged or external for startup; wins over compatibility BURROW_POSTGRES_MODE
BURROW_POSTGRES_MAJORExpected server major 17
BURROW_POSTGRES_URLConnection URL; takes precedence over DATABASE_URL and individual fields
DATABASE_URLFallback external connection URL
BURROW_POSTGRES_HOST127.0.0.1 in general pool configuration
BURROW_POSTGRES_PORT5432
BURROW_POSTGRES_DATABASEburrow in general pool configuration
BURROW_POSTGRES_USERburrow in general pool configuration
BURROW_POSTGRES_PASSWORDUnset
BURROW_POSTGRES_POOL_MAX10, positive integer
BURROW_POSTGRES_IDLE_TIMEOUT_MS30000, positive integer
BURROW_POSTGRES_CONNECTION_TIMEOUT_MS10000, positive integer
BURROW_POSTGRES_SSL_MODEUnset, or disable / verify-full only
BURROW_POSTGRES_SSL_CA_FILEOptional readable PEM certificate; requires verify-full
BURROW_POSTGRES_DATA_DIRManaged mode <runtimeRoot>/postgres
BURROW_POSTGRES_SOCKET_DIRManaged mode <runtimeRoot>/postgres-socket
BURROW_POSTGRES_LOG_FILEManaged mode <runtimeRoot>/postgres.log
BURROW_POSTGRES_INITDBinitdb executable
BURROW_POSTGRES_PG_CTLpg_ctl executable
BURROW_POSTGRES_BINpostgres executable
BURROW_POSTGRES_LIFECYCLE_TIMEOUT_MS30000
BURROW_POSTGRES_CLEANUP_BUDGET_MS60000; startup-wrapper cleanup budget

Managed startup removes connection URLs/passwords and supplies its Unix socket, port 5432, database postgres and current OS username. Consequently, the general pool defaults above do not describe the managed database's effective identity. Managed PostgreSQL does not listen on TCP. External mode validates the expected major and installed vector extension without owning database process start/stop.

verify-full verifies the configured hostname, including IP literals. Do not combine an explicit SSL mode with URL parameters whose names begin with ssl; startup rejects mixed TLS sources. An unset mode does not imply certificate verification. See persistence for lifecycle requirements.

Context and memory​

VariableDefault
BURROW_CONTEXT_THRESHOLD0.75
BURROW_CONTEXT_FRESH_TAIL_COUNT48
BURROW_CONTEXT_FRESH_TAIL_MAX_TOKENS24000
BURROW_CONTEXT_LEAF_CHUNK_TOKENS20000
BURROW_CONTEXT_SUMMARY_TARGET_TOKENS6000
BURROW_CONTEXT_SUMMARY_MODELUnset
BURROW_CONTEXT_MAX_SWEEP_ITERATIONS4
BURROW_CONTEXT_SWEEP_DEADLINE_MS120000
BURROW_BRAIN_EMBEDDING_TIMEOUT_MS30000; integer 1–300000 ms provider embedding request timeout
BURROW_ALBDRUCK_PROMPT_MAX_CHARS4000
BURROW_ALBDRUCK_MAX_PAGE_SIZE200

Compression controls normalize invalid values to supported defaults. The retained BURROW_ALBDRUCK_* configuration names are compatibility values, not switches that restore the retired Albdruck UI/API. Positive safe integers are required. Explicit history lookup also accepts BURROW_HISTORY_QUERY_BUDGET_MS (15000) and BURROW_HISTORY_LOCK_TIMEOUT_MS (1000). These are work bounds, not retention settings.

Task history and attachments​

VariableDefault / purpose
BURROW_TASK_ATTACHMENT_MAX_BYTES26214400 (25 MiB); positive safe integer, separate from chat attachment budgets
BURROW_TASK_HISTORY_PAGE_MAX500; positive safe-integer history page ceiling

MCP, provider login and mods​

VariableDefault / purpose
BURROW_MCPORTER_ROOT<runtimeRoot>/integrations/mcporter; requires an active runtime root if not explicit
BURROW_MCPORTER_BIN<mcporterRoot>/node_modules/.bin/mcporter
BURROW_CLAUDE_BINClaude login-helper executable; installer/container supplies its managed integration path. This is not the Claude Minion executable override.
BURROW_CODEX_EXECUTABLEOptional absolute Codex Minion executable override; a missing/invalid explicit override fails rather than falling back. Otherwise discovery checks absolute PATH entries and managed/package locations.
BURROW_CLAUDE_EXECUTABLEOptional absolute Claude Minion executable override; a missing/invalid explicit override fails rather than falling back. Otherwise discovery checks absolute PATH entries and managed/package locations.
BURROW_OPENAI_OAUTH_CALLBACK_HOSTLoopback callback host; only localhost, 127.0.0.1, ::1 accepted
BURROW_OPENAI_OAUTH_USAGE_URLhttps://chatgpt.com/backend-api/wham/usage; specialized usage endpoint override
BURROW_MANAGED_SKILL_SYNC_INTERVAL_MSManaged skill reconciliation interval, default six hours and minimum one minute; not a runtime/release version override
BURROW_PROVIDER_ERROR_MAX_BYTES16384; positive safe-integer Forge provider-error capture budget
BURROW_MOD_ARCHIVE_RESERVE_BYTES268435456 (256 MiB); nonnegative safe-integer free-space reserve during mod extraction

MCP provider-specific environment variables are saved per connection; they are not arbitrary BURROW_* service settings. Mod Git credentials are injected into a subprocess internally and should not be configured as global service variables. See MCP and extensions.

OpenTelemetry export​

Current development starts export disabled unless enabled in saved settings or overridden below. Saved settings can contain multiple destinations; each enabled signal needs a usable endpoint. BURROW_OTEL_ENABLED overrides only the master switch. Any generic or signal-specific endpoint/header override selects one effective environment destination instead of the saved export list; it does not broadcast environment credentials to saved destinations or alter that saved list. Generic and signal-specific headers are combined, with signal-specific names winning case-insensitively. For headers-only overrides and legacy scalar fallback details, see configuration ownership. Saved destination headers and credentials are encrypted and write-only. Enabling export shares curated operational telemetry with each effective destination.

VariableDefault / purpose
BURROW_OTEL_SHUTDOWN_TIMEOUT_MS5000; bounded exporter shutdown wait
BURROW_OTEL_ENABLEDOptional true/false override for saved enablement
OTEL_EXPORTER_OTLP_ENDPOINTGeneric HTTP(S) collector endpoint; no URL credentials, query or fragment
OTEL_EXPORTER_OTLP_TRACES_ENDPOINTTrace-specific endpoint
OTEL_EXPORTER_OTLP_METRICS_ENDPOINTMetric-specific endpoint
OTEL_EXPORTER_OTLP_HEADERSComma-separated key=value exporter headers; treat as credentials
OTEL_EXPORTER_OTLP_TRACES_HEADERSTrace-specific headers
OTEL_EXPORTER_OTLP_METRICS_HEADERSMetric-specific headers
OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE, OTEL_EXPORTER_OTLP_METRICS_CERTIFICATECA PEM file for environment-owned HTTPS transport
OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATEClient-certificate PEM file for environment-owned mTLS
OTEL_EXPORTER_OTLP_CLIENT_KEY, OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY, OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEYPrivate-key PEM file for environment-owned mTLS

Signal-specific TLS fields win independently over generic fields. The run-owned generation privately snapshots selected file contents for children and remote operations, not host paths; missing/unreadable material fails the affected signal safely. Saved destinations do not inherit environment TLS identity. Do not expose these files in diagnostics. See export lifecycle.

Compatibility, installer and development-only names​

These names occur in the repository but are not a second supported application-configuration system.

NamesClassification
BURROW_POSTGRES_MODECompatibility fallback for lifecycle selection
BURROW_DATA_ROOTCompatibility fallback used by selected server/CLI entry points; prefer the documented runtime root
BURROW_AGENT_DATA_ROOTChild/test environment handling; no independent current general config resolver
BURROW_MAIN_SESSION_MAX_AGE_DAYS / BURROW_TASK_SESSION_MAX_AGE_DAYS / BURROW_SUBAGENT_SESSION_MAX_AGE_DAYSRetained resolver defaults 60 / 30 / 7 days; not the current operator-managed retention policy
BURROW_TRACE_MAX_AGE_DAYS / BURROW_TRACE_MAX_BYTESRetained nullable resolver fields; configure current trace cleanup through settings
BURROW_TRACE_ISOLATIONIsolated trace layout for tests/debugging; test context also detected automatically
OPENCLAW_OAUTH_CALLBACK_HOSTHistorical fallback for OpenAI loopback callback host
BURROW_HOMEGenerated native launcher installation path
BURROW_POSTGRES_CONTROLDATABackup preflight executable override; otherwise sibling of the configured absolute postgres executable or pg_controldata on PATH
BURROW_SMOKE_TOKENInstaller-owned staging health identity; echoed only for a matching smoke header, not an API credential
BURROW_POSTGRES_BIN_DIRNative installer executable-discovery helper
BURROW_UID, BURROW_GIDDocker build arguments, default 4226; not live process reconfiguration
BURROW_HEALTH_URL, BURROW_SERVICE_UNITOperational health/smoke/audit script inputs
BURROW_INSTALL_TEST_ROOTInstaller test fixture path
BURROW_UI_POSTGRESInternal startup marker
BURROW_GIT_USERNAME, BURROW_GIT_PASSWORDInternal short-lived Git authentication environment
BURROW_CONFIG, BURROW_SETTINGS_DBRemoved-config isolation/check references; do not create JSON/SQLite settings authority
BURROW_TEST_TIMEOUT_MS, BURROW_VERIFY_DEPLOYED_ISOLATION, BURROW_POSTGRES_LIFECYCLE_REHEARSALTest/rehearsal controls
BURROW_OOM_REPRO_ITERATIONS, BURROW_OOM_REPRO_FILE_BYTES, BURROW_OOM_REPRO_CALLS_PER_ITERATION, BURROW_OOM_REPRO_GC_INTERVAL, BURROW_OOM_REPRO_MAX_HEAP_MIBIsolated diagnostic reproducer inputs
BURROW_TRUSTED_IMAGE_URL_CONNECTION_IDSExplicit comma-separated connection trust override for generated-image URL retrieval; changes network trust, not model capability or authentication. Leave unset unless the provider and its returned asset destinations are deliberately trusted.
BURROW_OTEL_PRIVATE_TLS, BURROW_OTEL_PRIVATE_TLS_ERRORSInternal run-owned TLS handoff data; not operator setup inputs or safe diagnostics
BURROW_POSTGRES_TEST_URL, BURROW_POSTGRES_TEST_BIN, BURROW_POSTGRES_MANAGED_INTEGRATION, BURROW_TEST_DISPOSABLE_POSTGRES, BURROW_TEST_CONCURRENCY, BURROW_ACCESS_TEST_SOCKET, BURROW_ACCESS_TEST_USER, BURROW_CODES, BURROW_FIXED_CODETest/fixture inputs, not ordinary runtime settings
BURROW_SOURCE_TOKENAssembly CI secret for pinned source access; never a runtime API token

Targeted source review​

The current page was statically reconciled on 2026-11-08 against Backend 6b682eae6cd0dc6efa79e173b7d819fb219443b3 and relevant UI/assembly source. The links below remain historical public evidence, not current private-source links. No live deployment or application test was performed.

Environment-file parsing​

Checked 12 November 2026: Environment files use a non-executing assignment parser: one assignment per line, optional indentation/export, supported single/double quoting and shell-style escapes/comments. Interpolation, command execution, multiline values, unsupported syntax and spaces around = are rejected. An unquoted # inside a token remains literal. Parsed effective keys govern preservation; conflicting duplicate encryption-key assignments fail rather than silently selecting a different value. This is a format contract, not an instruction to rotate or expose a key.

Gemini native executable​

Current Core integration provisioning includes Gemini CLI. BURROW_GEMINI_EXECUTABLE may select an absolute executable; otherwise discovery checks supported absolute PATH entries and managed integration locations. The selected connection supplies its API key to the child; ambient Google/Gemini/Vertex variables are removed rather than allowed to select unrelated credentials. A remote execution host needs a matching Node Goblin gateway and separately provisioned CLI. Updating Core alone does not upgrade that host. See Gemini Minions.