Environment variables
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.
| Variable | Default / interpretation |
|---|---|
BURROW_UI_HOST | Direct server/Docker 0.0.0.0; native installer writes 127.0.0.1; generic config resolver 127.0.0.1 |
BURROW_UI_PORT | 42817; direct server also accepts --port=, after the environment |
BURROW_UI_AUTH_MODE | Persisted value, otherwise none; choices none, trusted-proxy, basic, oidc |
BURROW_UI_AUTH_ALLOWED_PROXIES | 127.0.0.1,::1; exact socket peer addresses, not CIDRs |
BURROW_UI_AUTH_USER_HEADER | x-forwarded-user, normalized to lowercase |
BURROW_UI_AUTH_BASIC_USERNAME | Unset; required for Basic mode |
BURROW_UI_AUTH_BASIC_PASSWORD_HASH | Unset; stored scrypt hash, not a plaintext password |
BURROW_UI_AUTH_BASIC_SESSION_TTL_SECONDS | 43200; minimum 60 seconds |
BURROW_UI_AUTH_BASIC_INSECURE_COOKIES | Case-insensitive true disables Basic Secure cookies; HTTP development only |
BURROW_UI_AUTH_OIDC_ISSUER | Unset; full exact provider issuer, including path/trailing slash; must match discovery issuer and token iss |
BURROW_UI_AUTH_OIDC_CLIENT_ID | Unset; required for OIDC |
BURROW_UI_AUTH_OIDC_CLIENT_SECRET | Unset; alternatively encrypted PostgreSQL secret |
BURROW_UI_AUTH_OIDC_REDIRECT_URI | Unset; explicit public HTTPS URI recommended behind a proxy, with exact path /auth/oidc/callback; must match provider registration |
BURROW_UI_AUTH_OIDC_SCOPES | openid,email,profile |
BURROW_UI_AUTH_OIDC_ALLOWED_EMAILS | Empty; optional comma-separated allowlist |
BURROW_UI_AUTH_OIDC_ALLOWED_DOMAINS | Empty; optional comma-separated allowlist |
BURROW_UI_AUTH_OIDC_INSECURE_COOKIES | Case-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
| Variable | Default / meaning |
|---|---|
BURROW_GITHUB_WEBHOOK_SECRET | Optional 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
| Variable | Default / meaning |
|---|---|
BURROW_UI_ORIGIN_CHECK | true by default; deployment-only true/false control, not a saved preference; keep enabled for browser-facing deployments |
BURROW_UI_ALLOWED_ORIGINS | Empty; comma-separated exact additional origins |
BURROW_UI_ALLOWED_HOSTS | Empty disables Host allowlist enforcement; otherwise exact host/port authorities, no wildcards |
BURROW_UI_TRUSTED_PROXIES | Empty; exact peer IPs trusted for forwarded host/protocol, separate from authentication proxies |
BURROW_REQUEST_MAX_BYTES | 100663296 (96 MiB) JSON body limit |
BURROW_REQUEST_TIMEOUT_MS | 30000 JSON body read timeout |
BURROW_IMPORT_MAX_COMPRESSED_BYTES | 67108864 (64 MiB) encoded-bundle compressed resource ceiling |
BURROW_IMPORT_MAX_DECOMPRESSED_BYTES | 268435456 (256 MiB) expanded export resource ceiling |
BURROW_JSON_MAX_DEPTH | 128 JSON traversal depth |
BURROW_JSON_MAX_ITEMS | 1000000 JSON traversal item budget |
| See Authentication caveats |
Runtime paths and key material
| Variable | Default / purpose |
|---|---|
BURROW_RUNTIME_ROOT | Generic /mnt/local/burrow; native installer $HOME/.burrow; Docker /data |
BURROW_SOURCE_ROOT | Loaded release/source root; generic resolver can fall back to current directory |
BURROW_WORKSPACE_ROOT | <runtimeRoot>/workspace |
BURROW_AGENT_ID | Resolver 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_KEY | Required external key material: Base64 encoding of exactly 32 bytes |
BURROW_SETTINGS_KEY_FILE | Container-entrypoint override; defaults to <runtimeRoot>/config/settings.key |
BURROW_RUN_CANCELLATION_GRACE_MS | 5000; minimum 1000 ms cancellation grace before drain/fencing decisions, not a rollback guarantee |
BURROW_SHUTDOWN_DRAIN_MS | 10000; minimum 1000 ms HTTP connection drain window |
BURROW_DISABLE_BACKGROUND_SCHEDULERS | Disabled only when set to 1, true, yes or on, case-insensitive |
BURROW_BOOTSTRAP_SAMPLE_IDENTITIES | Sample-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.
| Variable | Default / purpose |
|---|---|
BURROW_POSTGRES_LIFECYCLE | managed or external for startup; wins over compatibility BURROW_POSTGRES_MODE |
BURROW_POSTGRES_MAJOR | Expected server major 17 |
BURROW_POSTGRES_URL | Connection URL; takes precedence over DATABASE_URL and individual fields |
DATABASE_URL | Fallback external connection URL |
BURROW_POSTGRES_HOST | 127.0.0.1 in general pool configuration |
BURROW_POSTGRES_PORT | 5432 |
BURROW_POSTGRES_DATABASE | burrow in general pool configuration |
BURROW_POSTGRES_USER | burrow in general pool configuration |
BURROW_POSTGRES_PASSWORD | Unset |
BURROW_POSTGRES_POOL_MAX | 10, positive integer |
BURROW_POSTGRES_IDLE_TIMEOUT_MS | 30000, positive integer |
BURROW_POSTGRES_CONNECTION_TIMEOUT_MS | 10000, positive integer |
BURROW_POSTGRES_SSL_MODE | Unset, or disable / verify-full only |
BURROW_POSTGRES_SSL_CA_FILE | Optional readable PEM certificate; requires verify-full |
BURROW_POSTGRES_DATA_DIR | Managed mode <runtimeRoot>/postgres |
BURROW_POSTGRES_SOCKET_DIR | Managed mode <runtimeRoot>/postgres-socket |
BURROW_POSTGRES_LOG_FILE | Managed mode <runtimeRoot>/postgres.log |
BURROW_POSTGRES_INITDB | initdb executable |
BURROW_POSTGRES_PG_CTL | pg_ctl executable |
BURROW_POSTGRES_BIN | postgres executable |
BURROW_POSTGRES_LIFECYCLE_TIMEOUT_MS | 30000 |
BURROW_POSTGRES_CLEANUP_BUDGET_MS | 60000; 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
| Variable | Default |
|---|---|
BURROW_CONTEXT_THRESHOLD | 0.75 |
BURROW_CONTEXT_FRESH_TAIL_COUNT | 48 |
BURROW_CONTEXT_FRESH_TAIL_MAX_TOKENS | 24000 |
BURROW_CONTEXT_LEAF_CHUNK_TOKENS | 20000 |
BURROW_CONTEXT_SUMMARY_TARGET_TOKENS | 6000 |
BURROW_CONTEXT_SUMMARY_MODEL | Unset |
BURROW_CONTEXT_MAX_SWEEP_ITERATIONS | 4 |
BURROW_CONTEXT_SWEEP_DEADLINE_MS | 120000 |
BURROW_BRAIN_EMBEDDING_TIMEOUT_MS | 30000; integer 1–300000 ms provider embedding request timeout |
BURROW_ALBDRUCK_PROMPT_MAX_CHARS | 4000 |
BURROW_ALBDRUCK_MAX_PAGE_SIZE | 200 |
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
| Variable | Default / purpose |
|---|---|
BURROW_TASK_ATTACHMENT_MAX_BYTES | 26214400 (25 MiB); positive safe integer, separate from chat attachment budgets |
BURROW_TASK_HISTORY_PAGE_MAX | 500; positive safe-integer history page ceiling |
MCP, provider login and mods
| Variable | Default / 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_BIN | Claude login-helper executable; installer/container supplies its managed integration path. This is not the Claude Minion executable override. |
BURROW_CODEX_EXECUTABLE | Optional 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_EXECUTABLE | Optional 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_HOST | Loopback callback host; only localhost, 127.0.0.1, ::1 accepted |
BURROW_OPENAI_OAUTH_USAGE_URL | https://chatgpt.com/backend-api/wham/usage; specialized usage endpoint override |
BURROW_MANAGED_SKILL_SYNC_INTERVAL_MS | Managed skill reconciliation interval, default six hours and minimum one minute; not a runtime/release version override |
BURROW_PROVIDER_ERROR_MAX_BYTES | 16384; positive safe-integer Forge provider-error capture budget |
BURROW_MOD_ARCHIVE_RESERVE_BYTES | 268435456 (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.
| Variable | Default / purpose |
|---|---|
BURROW_OTEL_SHUTDOWN_TIMEOUT_MS | 5000; bounded exporter shutdown wait |
BURROW_OTEL_ENABLED | Optional true/false override for saved enablement |
OTEL_EXPORTER_OTLP_ENDPOINT | Generic HTTP(S) collector endpoint; no URL credentials, query or fragment |
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | Trace-specific endpoint |
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT | Metric-specific endpoint |
OTEL_EXPORTER_OTLP_HEADERS | Comma-separated key=value exporter headers; treat as credentials |
OTEL_EXPORTER_OTLP_TRACES_HEADERS | Trace-specific headers |
OTEL_EXPORTER_OTLP_METRICS_HEADERS | Metric-specific headers |
OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE, OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE | CA PEM file for environment-owned HTTPS transport |
OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE, OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE | Client-certificate PEM file for environment-owned mTLS |
OTEL_EXPORTER_OTLP_CLIENT_KEY, OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY, OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY | Private-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.
| Names | Classification |
|---|---|
BURROW_POSTGRES_MODE | Compatibility fallback for lifecycle selection |
BURROW_DATA_ROOT | Compatibility fallback used by selected server/CLI entry points; prefer the documented runtime root |
BURROW_AGENT_DATA_ROOT | Child/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_DAYS | Retained resolver defaults 60 / 30 / 7 days; not the current operator-managed retention policy |
BURROW_TRACE_MAX_AGE_DAYS / BURROW_TRACE_MAX_BYTES | Retained nullable resolver fields; configure current trace cleanup through settings |
BURROW_TRACE_ISOLATION | Isolated trace layout for tests/debugging; test context also detected automatically |
OPENCLAW_OAUTH_CALLBACK_HOST | Historical fallback for OpenAI loopback callback host |
BURROW_HOME | Generated native launcher installation path |
BURROW_POSTGRES_CONTROLDATA | Backup preflight executable override; otherwise sibling of the configured absolute postgres executable or pg_controldata on PATH |
BURROW_SMOKE_TOKEN | Installer-owned staging health identity; echoed only for a matching smoke header, not an API credential |
BURROW_POSTGRES_BIN_DIR | Native installer executable-discovery helper |
BURROW_UID, BURROW_GID | Docker build arguments, default 4226; not live process reconfiguration |
BURROW_HEALTH_URL, BURROW_SERVICE_UNIT | Operational health/smoke/audit script inputs |
BURROW_INSTALL_TEST_ROOT | Installer test fixture path |
BURROW_UI_POSTGRES | Internal startup marker |
BURROW_GIT_USERNAME, BURROW_GIT_PASSWORD | Internal short-lived Git authentication environment |
BURROW_CONFIG, BURROW_SETTINGS_DB | Removed-config isolation/check references; do not create JSON/SQLite settings authority |
BURROW_TEST_TIMEOUT_MS, BURROW_VERIFY_DEPLOYED_ISOLATION, BURROW_POSTGRES_LIFECYCLE_REHEARSAL | Test/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_MIB | Isolated diagnostic reproducer inputs |
BURROW_TRUSTED_IMAGE_URL_CONNECTION_IDS | Explicit 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_ERRORS | Internal 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_CODE | Test/fixture inputs, not ordinary runtime settings |
BURROW_SOURCE_TOKEN | Assembly 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.
- backend/src/config.mjs
- backend/src/browser-origin-policy.mjs
- backend/src/http-authority.mjs
- backend/src/request-resource-budgets.mjs
- backend/src/otel-settings.mjs
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.