Self-Hosting

Environment Variables

Every environment variable Appstrate reads, with defaults and notes.

Appstrate validates these variables at boot and refuses to start when one is invalid or a required one is missing; a name it does not know is ignored without a warning. A row tagged [not in the Zod schema] is read by a module, the sidecar or the agent runtime instead of the platform schema, and is still set in the platform environment.

VariableRequiredDefaultNotes
MODULESNo"oidc,webhooks,mcp,core-providers,@appstrate/module-chat"Comma-separated modules to load at boot. The default set is oidc, webhooks, mcp (the platform MCP server), core-providers (OpenAI, Anthropic and OpenAI-compatible API keys) and @appstrate/module-chat. Opt-in modules are appended to the list; they are listed on the Progressive Infrastructure page. Any other npm specifier works for a module you install yourself. Removing a module is the only way to disable its model providers: there is no per-provider switch. MODULES=none boots with no module, and an empty value resolves to the default set. The billing module, @appstrate/module-ee, keeps its tables in the platform database (DATABASE_URL), so it needs PostgreSQL: it refuses to start on PGlite. See its STRIPE_* rows below
MODULE_CONTRACT_ENFORCENofailBoot policy when a loaded module declares an @appstrate/core semver range that this platform's CORE_VERSION does not satisfy (the range in the module's own package.json). fail refuses to boot, naming the module and both versions; warn logs the mismatch and boots anyway. warn is the escape hatch for an operator running a module that has not been republished against the core major this platform ships, it accepts that a stale module can call a platform service whose signature moved under it and fail silently rather than loudly. An unknown/unresolvable range is always a warning (in-tree workspace:* modules are gated by tsc instead). Not to be confused with MODULE_CONTRACT_POLICY, the warn|fail|off knob of scripts/verify-module-contract.ts (contract SHAPE, dev/CI only, never read at boot, absent from the Zod schema)
OIDC_INSTANCE_CLIENTSNo"[]"JSON array of instance-level OAuth clients (satellite admin dashboards, second-party web apps). Reconciled at boot by the oidc module: create-only with fail-on-drift. See apps/api/src/modules/oidc/README.md#instance-level-satellite-clients-via-oidc_instance_clients
PLATFORM_RUN_LIMITSNo"{}"JSON object capping EVERY run (classic + inline + scheduled). Keys: timeout_ceiling_seconds (1800), per_org_global_rate_per_min (200), max_concurrent_per_org (50), agent_memory_ceiling_mb (1536 MiB), agent_cpu_ceiling (2 vCPU). Validated strictly at boot: unknown keys fail-fast. See Configuring agent resources
INLINE_RUN_LIMITSNo"{}"JSON object capping POST /api/runs/inline. Keys: rate_per_min (60), manifest_bytes (65536), prompt_bytes (200000), max_skills (20), retention_days (30). Validated strictly at boot: unknown keys fail-fast
LLM_PROXY_LIMITSNo"{}"JSON object capping /api/llm-proxy/*. Keys: rate_per_min (60), max_request_bytes (10 MiB). max_request_bytes also caps /internal/llm-proxy/* (a platform run's inference, exempt from API_BODY_LIMIT_BYTES); rate_per_min does not: that path uses the per-run-token /internal/* limiter. Validated strictly at boot: unknown keys fail-fast
CHAT_PI_MAX_CONCURRENCYNo6Positive integer: operator cap on concurrent in-process chat sessions. EVERY chat turn runs in-process on the Pi engine, so this is the ceiling on concurrent chats per API process: the engine reserves a bounded slot per turn and 429s when at capacity. Set it from measured capacity before serving real traffic: the default of 6 is a conservative product value, not a sizing recommendation, and a process left at 6 refuses the 7th simultaneous chat. Absent keeps the default (and boot warns); invalid input fails boot [not in the Zod schema: read by @appstrate/module-chat]
CREDENTIAL_PROXY_LIMITSNo"{}"JSON object capping /api/credential-proxy/proxy. Keys: rate_per_min (100), max_request_bytes (10 MiB), max_response_bytes (50 MiB), session_ttl_seconds (3600). Same strict-Zod validation as LLM_PROXY_LIMITS
REDIS_URLNo-Redis connection string. When absent, falls back to in-memory adapters (single-instance only)
DATABASE_URLNo-PostgreSQL connection. When absent, falls back to PGlite (embedded PostgreSQL)
BETTER_AUTH_SECRETYes-Signs until BETTER_AUTH_SECRETS is set; then decrypts data written before the keyring
CONNECTION_ENCRYPTION_KEYYes-32 bytes, base64-encoded. Primary key used for new ciphertexts (v1 envelope: v1:<kid>:<base64(iv|authTag|ciphertext)>)
CONNECTION_ENCRYPTION_KEY_IDNok1Active kid embedded in newly-encrypted credential blobs. Must match /^[A-Za-z0-9_-]{1,32}$/. Stable across deploys; only flip when promoting a freshly-rotated key
CONNECTION_ENCRYPTION_KEYSNo"{}"JSON map { kid: base64-32B-key } of retired keys held for decrypt-only during a rotation window. Validated as Record<string, string> at boot. Rotation procedure: § "Rotating CONNECTION_ENCRYPTION_KEY" below
BETTER_AUTH_SECRETSNo-Auth secret keyring, Better Auth's format <version>:<secret>[,…], current secret first. The first secret encrypts/signs, every listed one decrypts/verifies (JWKS private keys, the cookies the platform signs). Rotate by prepending a new version + restart; any rotation invalidates what Better Auth signs with the current secret only: sessions, in-flight social sign-ins, email links. BETTER_AUTH_SECRET keeps decrypting data written before the list: leave it unchanged. To retire a version (or a leaked BETTER_AUTH_SECRET), delete the jwks rows: the next signature mints a key under the current secret; outstanding JWTs / CLI tokens stop verifying
UPLOAD_SIGNING_SECRETYes-Dedicated HMAC secret for FS upload-sink tokens. Comma-separated keyring (≥16 chars per key): FIRST key signs, ALL keys verify. Rotate by prepending the new key, then dropping the old one once issued tokens expire. Rotates independently of BETTER_AUTH_SECRET
CONNECT_SESSION_SECRETYes,Dedicated HMAC secret for hosted-connect-portal session tokens, the short-lived capability tokens behind the integration "Connect" button. Same comma-separated keyring rotation as UPLOAD_SIGNING_SECRET (≥16 chars per key). Rotates independently of the other signing secrets
CONNECT_SESSION_TTL_MSNo600000TTL for hosted-connect-portal session tokens, in milliseconds. Short by design: a connect token is a one-shot capability, not a session
AUTH_DISABLE_SIGNUPNofalseClosed-mode lock: blocks new account creation. 3 exceptions always pass: pending invitation, and AUTH_PLATFORM_ADMIN_EMAILS or AUTH_BOOTSTRAP_OWNER_EMAIL once ownership of the address is proven
AUTH_DISABLE_ORG_CREATIONNofalseRestricts POST /api/orgs to platform admins. Org-less users see "Waiting for invitation" instead of /onboarding/create
AUTH_PLATFORM_ADMIN_EMAILSNo""Comma-separated email allowlist of platform-level admins. Bypasses the two AUTHDISABLE\* gates. The account of a listed address is created only on proof of ownership (AUTH_BOOTSTRAP_TOKEN at /claim, a provider-verified social sign-in or a magic link), never by the email/password sign-up form; an account that already holds the address is not re-examined. Declarative: no UI, no migration, IaC-friendly
AUTH_ALLOWED_SIGNUP_DOMAINSNo""Comma-separated email domain allowlist (case-insensitive, no leading @). Validated at boot to reject malformed entries
AUTH_BOOTSTRAP_OWNER_EMAILNo""Names the account that owns the instance: the root org is created with it as owner when the account is. Idempotent (no-op if already an owner). The account is created only on proof of ownership (AUTH_BOOTSTRAP_TOKEN at /claim, a provider-verified social sign-in or a magic link), never by the email/password sign-up form. Never sent to the browser
AUTH_BOOTSTRAP_ORG_NAMENoDefaultDisplay name of the bootstrap org. Slug derived from the name
AUTH_BOOTSTRAP_TOKENNo""One-shot redemption token proving the person who creates the owner account is the operator. Generated by appstrate install on every closed install, written to .env. Operator claims ownership by POST'ing the token to /api/auth/bootstrap/redeem (UI: <APP_URL>/claim); with AUTH_BOOTSTRAP_OWNER_EMAIL set it claims that address only. Single-use; dead while any organization exists, even across restarts. Remove it from .env once claimed: it is redeemable again after a restart if every organization is deleted. Format: 22-128 base64url chars
AUTH_SESSION_COOKIE_CACHE_SECONDSNo0TTL of Better Auth's signed session_data cookie. 0 disables it (default): every authenticated request reads the session from Postgres. Above 0, saves that read but DELAYS revocation: a signed-out or revoked session keeps working for up to this many seconds, replayed pre-logout cookies included
AFPS_TRUST_ROOTNo"[]"JSON array of trusted publishers { keyId, publicKey, comment } for .afps-bundle Ed25519 verification
AFPS_SIGNATURE_POLICYNowarnoff (no verification) \
SIDECAR_MAX_REQUEST_BODY_BYTESNo10485760 (10 MiB)Sidecar inbound POST size cap, and the matching client-side check in the runtime resolvers. Hard ceiling 100 MiB; loud-fail at boot on invalid value, and "boot" is wider than it looks: the value is parsed exactly once, in @appstrate/afps-runtime/resolvers, at module init. A malformed or over-ceiling value therefore refuses to start EVERY process importing them (API host, firecracker runner daemon, CLI, agent container, sidecar), not just the run it would have capped [not in the Zod schema: read in any process importing the resolvers, not the sidecar alone; forwarded from the platform host]
SIDECAR_MAX_MCP_ENVELOPE_BYTESNo16777216 (16 MiB)MCP envelope cap, sized for base64 inflation. Structured 413 errors carry { reason, scope, limit, actual, envVar, hint } [not in the Zod schema: read inside the sidecar process; forwarded from the platform host]
APPSTRATE_MCP_TOOL_TIMEOUT_MSNo(MCP SDK default)Per-call MCP tool timeout, in ms (#779 annex). On a call that requests progress (the agent's calls to the sidecar, and the sidecar's relay of them) it is an idle timeout, restarted by each progress notification, and the call's total duration is capped at 1 h (MCP_PROGRESS_CALL_MAX_TOTAL_MS, packages/mcp-transport) and by the run deadline, whichever comes first; every other call keeps it as a hard cap. The sidecar relays an integration's progress only when it increases, at most once per second per call. Forwarded into both the sidecar (integration clients) and the agent container (sidecar client) so one operator knob widens both legs of a tool call. Useful for third-party MCP servers doing a slow cold-start OAuth refresh on their first tool call [not in the Zod schema, read inside the sidecar + agent processes; forwarded from the platform host via SIDECAR_OPERATOR_ENV_KEYS]
SIDECAR_INLINE_TOOL_OUTPUT_TOKENSNo8000Per-call inline cap, in ESTIMATED tokens (ceil(chars / 3.5)), on one text tool output ({ns}__api_call, platform tool, or third-party MCP result with all its text blocks counted together). Above it the text spills to the run-scoped blob store and the agent receives a resource_link (reason exceeds_inline_cap), read on demand via resources/read. Binary api_call bodies always spill. Text that cannot spill (a third-party isError result, a full or absent blob store) is cut to a head and a tail sized to this cap, around a marker naming why; an isError result, or a JSON-RPC error thrown by a third-party server, bypasses the run budget and context-window guard. Must stay ≤ SIDECAR_RUN_TOOL_OUTPUT_BUDGET_TOKENS, TokenBudget's constructor throws otherwise, and a third guard can force a spill under the cap when the launcher forwards the model's context window. Parsed with a throw-on-invalid reader on the sidecar's boot path, which is why the platform-side forwarder DROPS a malformed value (with a warning) rather than killing every run [not in the Zod schema, read inside the sidecar process; forwarded from the platform host via SIDECAR_OPERATOR_ENV_KEYS]
SIDECAR_RUN_TOOL_OUTPUT_BUDGET_TOKENSNo100000Cumulative ceiling, in estimated tokens, on INLINE tool output for the whole run (one sidecar = one run), shared by api_call, platform tools and third-party MCP tools (with one LRU blob store), so a heavy third-party server can spend it for every tool. An output of 256 estimated tokens or less stays inline even once it is spent. Once consumed + estimate would exceed it a response spills to the blob store (exceeds_run_budget) even though it fits under the per-call inline cap, so a long run progressively tightens toward spilling everything. Spilled content is not counted, the agent pays for it only if it reads it. Must be ≥ SIDECAR_INLINE_TOOL_OUTPUT_TOKENS; same throw-on-invalid parse and forwarder-drop policy as its companion [not in the Zod schema, read inside the sidecar process; forwarded from the platform host via SIDECAR_OPERATOR_ENV_KEYS]
SIDECAR_API_CALL_CONCURRENCYNo3Maximum number of {ns}__api_call MCP invocations one run may have in flight at once (pLimit around the handler). Caps fan-out so a single agent turn cannot be stuffed with N parallel-fetched payloads at once, the byte and token caps bound each response, this bounds how many arrive together. Excess calls queue rather than fail. Parsed by readPositiveIntEnv on the sidecar's boot path with no ceiling, so a non-positive or non-integer value THROWS and the sidecar never starts; the platform-side forwarder therefore drops a malformed value (with a warning) rather than killing every run, exactly as it does for the two token budgets [not in the Zod schema, read inside the sidecar process; forwarded from the platform host via SIDECAR_OPERATOR_ENV_KEYS]
SIDECAR_LLM_FIRST_RESPONSE_TIMEOUT_MSNo60000 (60 s)TTFB bound in milliseconds on one agent-run /llm/* upstream call: how long the provider may take to return response HEADERS before the sidecar aborts the fetch. Disarmed the instant headers land (an AbortSignal handed to fetch would tear the body down too), so everything after that belongs to SIDECAR_LLM_STREAM_IDLE_TIMEOUT_MS. At the limit the agent sees a generic 502, never the timeout text; pi-ai classifies that as retryable and retries the turn. Sits between the absolute LLM_PROXY_TIMEOUT_MS and the idle bound. Platform-side twin: LLM_PROXY_FIRST_RESPONSE_TIMEOUT_MS. Raise BOTH for a self-hosted baseUrl provider (Ollama / llama.cpp / vLLM) whose cold model load blocks headers for minutes. Read at module scope, so an invalid value refuses to start the sidecar at all [not in the Zod schema: read inside the sidecar process; forwarded from the platform host]
SIDECAR_LLM_STREAM_IDLE_TIMEOUT_MSNo120000 (120 s)Inter-chunk silence bound in milliseconds once an agent-run LLM stream is already flowing. The timer races only the PENDING read, so a slow consumer never trips it. Deliberately looser than the TTFB bound: extended thinking and large parallel tool-call payloads buy 15–45 s of legitimate silence. The two paths differ at the limit: /llm/* errors the response body, which the in-container client sees as a TRUNCATED stream (pi-ai treats that as retryable), while the pi-messages path emits a terminal error event with a synthetic 504. Exists because a mapped API shape (pi-messages) ignores pi-ai's own timeoutMs. The default is the shared DEFAULT_LLM_STREAM_IDLE_TIMEOUT_MS, the same constant the platform twin LLM_PROXY_STREAM_IDLE_TIMEOUT_MS reads [not in the Zod schema: read inside the sidecar process; forwarded from the platform host]
TOOL_RESULT_BYTE_LIMITNo2048 (2 KiB)Per-tool-result byte cap applied by the RUNNER at write time, before the result reaches the event sink and run_logs, so whatever is cut is unrecoverable through GET /runs/{id}/logs. Strings are cut on a valid UTF-8 boundary and get a …(truncated, N bytes) suffix; other payloads are JSON-serialised and, on overflow, replaced by { __truncated: true, reason: "size", bytes, limit, preview }. Keep it well below 32768: the platform drops any run_logs.data payload over 32 KiB wholesale, which is worse than truncation. A non-positive or non-integer value fails boot. The CLI's -v output is capped separately at a hardcoded 2048 chars, so raising this does not widen it. Validated at boot and handed to the agent container. A local appstrate run reads it from the shell instead, invalid values falling back to the default
MODEL_RETRY_ENABLEDNotruePi SDK retry on transient 429/5xx in the agent container (4 attempts, Retry-After honoured). false turns it off, which is worth it when an outer layer already retries (the sidecar's aliased /llm path does, and the two multiply). A local appstrate run reads it from the shell (only false turns it off)
MODEL_COMPACTION_ENABLEDNotruePi SDK context compaction in the agent container. false turns it off, for deployments stacking their own compaction middleware. A local appstrate run reads it from the shell (only false turns it off)
REMOTE_RUN_SINK_DEFAULT_TTL_SECONDSNo7200Default sink TTL (CloudEvents HMAC ingestion) when caller doesn't request one
REMOTE_RUN_SINK_MAX_TTL_SECONDSNo86400Hard ceiling on caller-requested sink TTL
REMOTE_RUN_REPLAY_WINDOW_SECONDSNo600Redis dedup window for webhook-id replay detection (must exceed Standard Webhooks 5-min tolerance)
REMOTE_RUN_EVENT_LIMITSNo"{}"JSON object: per-run event-route rate limits. Parsed at route-build time; reboot to apply
RUN_HEARTBEAT_INTERVAL_SECONDSNo15Runner-side heartbeat cadence. Watchdog sweeps any open-sink row whose last heartbeat slipped past RUN_STALL_THRESHOLD_SECONDS
RUN_STALL_THRESHOLD_SECONDSNo60Watchdog stall threshold (backstop for hard runner crashes, since cooperative shutdown sends an explicit finalize). Rule of thumb: ≥ 3 × heartbeat interval
RUN_BOOT_DEADLINE_SECONDSNo300Provisioning budget: how long a run may take to reach its FIRST runner event (image pull, sandbox/container boot). Until then the platform attests liveness on the runner's behalf, so RUN_STALL_THRESHOLD_SECONDS cannot kill a still-provisioning run; past this ceiling the run fails with a "never started executing" error. Same split as a Kubernetes startupProbe vs livenessProbe. Also the boot grace added to the platform's safety-net run timer
RUN_WATCHDOG_INTERVAL_SECONDSNo15Watchdog sweep interval
EGRESS_ALLOW_INTERNAL_HOSTSNo(unset)Opt-in, comma-separated hostnames the operator explicitly trusts on private/internal addresses, exempts ONLY the SSRF host blocklist (never the redirect discipline) across every platform egress site. Full semantics in the note below the table. Unset ⇒ every internal host stays blocked (secure default). Each entry is a bare hostname or IPv4 address; one with a port, scheme, path, *, @, whitespace, a trailing dot, an IPv6 literal or a non-canonical spelling refuses boot (the platform, and the sidecar), naming the entry. Empty entries are ignored.
OAUTH_REFRESH_WORKER_ENABLEDNofalseOpt-in BullMQ scan that proactively refreshes OAuth credentials whose token is in the lead window. The sidecar's 401-retry + on-demand token resolver cover correctness without it; enable when long dormant credentials would outlive their refresh_token upstream
INTEGRATION_REFRESH_MAX_FAILURESNo5OAuth: consecutive transient token-refresh failures (network or 5xx, not invalid_grant) before the connection is marked needs_reconnection, never before INTEGRATION_REFRESH_GRACE_SECONDS, so a still-valid token is never flagged; a successful refresh resets the count. For auths that cannot refresh (API key, basic, custom, OAuth 2 without a refresh client) it counts consecutive upstream 401 responses, through the credential proxy or the sidecar alike. A 2xx resets the count of a non-OAuth 2 connection; an OAuth 2 connection, and one flagged by a local MCP server's dev.appstrate/credential: rejected result, is cleared only by a reconnect. An OAuth 2 connection with no refresh token is flagged on its first upstream 401 (410), like a revoked refresh token. Anyone allowed to use a shared connection can move the count either way. The same rule applies to an organization's own model-provider API key (401s and 2xx through the LLM proxy); re-entering the key resets it
INTEGRATION_REFRESH_GRACE_SECONDSNo3600Escalation only fires once the token has been expired longer than this. Prevents a transient upstream outage on a not-yet-expired token from flagging the connection: escalation requires expired-past-grace AND the failure-count threshold
INTEGRATION_OAUTH_CIMDNoonHow an auto-provisioned integration OAuth client (remote MCP, token_endpoint_auth_method: none) is acquired from an authorization server advertising client_id_metadata_document_supported (and RFC 9207 authorization_response_iss_parameter_supported, the mix-up defence a document client relies on). on: this instance's Client ID Metadata Document (<APP_URL>/oauth/client-metadata/<base64url(issuer)>.json), used only when APP_URL is https on a public host, the server fetches it, so APP_URL must be reachable from the internet; otherwise, and for a server without CIMD, RFC 7591 dynamic registration. off: always dynamic registration, for an instance the servers cannot fetch (internal hostname, split DNS, access proxy) or a server that refuses the document. A connection keeps the client it was minted with: switching the value only changes new connections and reconnects. A CIMD client's id is a URL under APP_URL, so changing APP_URL's origin flags every connection minted with one needs_reconnection at its next refresh.
NODE_ENVNodevelopmentdevelopment \
API_BODY_LIMIT_BYTESNo10485760Global request body cap (Hono bodyLimit). Per-route caps still apply on top
S3_PUBLIC_ENDPOINTNo,Opt-out of proxy-upload mode. Unset (default): proxy mode, upload URLs point at APP_URL (PUT /api/uploads/_content) and the platform streams bytes to the bucket server-side, so S3/MinIO can stay fully private. Set: direct presign, browsers PUT straight to this endpoint (must be publicly reachable, S3 API at the domain root, with bucket CORS allowing the descriptor headers including If-None-Match); offloads upload bytes from the platform for multi-node deployments
LEGAL_TERMS_URLNo-Footer link to terms (optional)
LEGAL_PRIVACY_URLNo-Footer link to privacy policy (optional)
PLATFORM_API_URLNo-How sidecars reach the platform. Leave unset in containerized deployments: the Docker orchestrator auto-detects the platform network and builds http://{platform-container-hostname}:{PORT} so credential traffic stays on the Docker bridge. Empty string is treated as unset. Falls back to http://host.docker.internal:{PORT} only when no Docker network is detected (local dev)
SYSTEM_PROXIESNo"[]"JSON array of system proxy definitions
PROXY_URLNo-Outbound HTTP proxy URL injected into sidecar containers
SYSTEM_PROVIDER_KEYSNo"[]"JSON array of system provider keys with nested models (credentials + model list per provider). A nested model entry MAY set "aliased": true to expose it as a model alias (LLM-gateway alias pattern): the entry's id becomes a public vanity name and the real modelId/provider/endpoint stay server-side. An aliased entry MUST carry an explicit "label" (the derived label would name the backing). Misconfigured aliases are skipped (logged) at boot. A modelId outside its provider's offer (the provider's records in Pi's model registry) makes the API refuse to boot, naming the entry; gateways (openai-compatible, anthropic-compatible) and OpenRouter take any id. Every entry's provider must speak an API shape the platform LLM proxy serves (openai-completions, openai-responses, anthropic-messages, mistral-conversations), runs reach system models through it, or the API refuses to boot, naming the entry. A UUID-shaped provider-key or model id also refuses boot: it would shadow an organization's own row. See docs/architecture/MODEL_ALIASES.md
MODEL_CATALOG_URLNohttps://get.appstrate.dev/model-catalogWhere the live model catalog is read from (http or https): a signed file per Pi SDK version (<url>/pi-<version>.json and .sig) that makes a new model selectable without a release. Each API process reads it in the background when it starts (boot never waits on it) and every hour, with two anonymous GETs that send nothing about the instance, and holds it in memory only. A file is refused on a bad signature, another Pi version, a serial lower than the one held or an unknown shape, and the one held stays. It only adds models an organization can bind with its own credentials. A model bound from the catalog runs without its catalog defaults (dialect, limits, price) while a process holds no file: just after a restart, or while the catalog cannot be read. off disables the read (an empty value is unset, so it means this default): the instance runs on the bundled registry alone. See docs/architecture/MODEL_CATALOG.md
SYSTEM_INTEGRATIONSNo"[]"JSON array of integrations the instance offers out of the box: each is active until a space turns it off, and it then stays off. Each entry: { "id", "clients"?: [{ "id", "auth_key", "client_id", "client_secret"? }] }. clients is optional: an entry can ship shared OAuth clients so every organization connects without registering one, or none for remote MCP integrations that use Dynamic Client Registration. A custom client overrides the system one (space, then organization, then system), and each connection keeps the client that created it. A system client sends every organization's calls through one upstream quota: prefer per-organization clients for quota-strict providers. Validated strictly at boot: an invalid entry, a duplicate integration id, a duplicate client id or a UUID-shaped client id aborts boot, with a message naming the entry's index, its id, the failing path and the client (secrets redacted). client_secret is required unless the entry declares token_endpoint_auth_method: "none", which must then carry no secret
LOG_LEVELNoinfodebug\
OTEL_ENABLEDNofalseModule @appstrate/module-observability (must be in MODULES). Force-enable OpenTelemetry without an explicit endpoint (falls back to the OTLP default http://localhost:4318). Telemetry is also enabled when OTEL_EXPORTER_OTLP_ENDPOINT is set. Disabled = complete no-op (zero spans/metrics/overhead). See docs/architecture/OBSERVABILITY.md [not in the Zod schema: read by @appstrate/module-observability]
OTEL_EXPORTER_OTLP_ENDPOINTNo-Module @appstrate/module-observability (must be in MODULES). Base OTLP/HTTP collector endpoint (e.g. http://otel-collector:4318); the signal path (/v1/traces, /v1/metrics) is appended per the OTLP spec. Setting it enables telemetry. Standard OTLP env vars (OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_PROTOCOL, …) are honored by the exporters directly [not in the Zod schema: read by @appstrate/module-observability / the OTLP exporters]
OTEL_SERVICE_NAMENoappstrate-apiModule @appstrate/module-observability (must be in MODULES). service.name resource attribute attached to every span + metric [not in the Zod schema: read by @appstrate/module-observability]
OTEL_TRUST_INCOMING_TRACENofalseModule @appstrate/module-observability (must be in MODULES). Trust the inbound W3C traceparent header for server-span parenting. Default off: a public-facing API must not let an unauthenticated caller splice the server span into an attacker-chosen trace. When off, a fresh root span is started (a SERVER span is still emitted). Enable only behind a trusted gateway that controls traceparent for external callers [not in the Zod schema: read by @appstrate/module-observability]
EE_RECONCILIATION_INTERVAL_SECONDSNo300Billing module @appstrate/module-ee (must be in MODULES). Cadence of the billing sweep over the platform's llm_usage ledger, in seconds. 0 pauses METERING only: the module's periodic tick keeps running every 300 s to retry the Stripe cancellations a failed org deletion left pending, which would otherwise keep charging customers for deleted organizations. [not in the Zod schema: read by @appstrate/module-ee]
EE_RECONCILIATION_BATCH_SIZENo100Billing module @appstrate/module-ee (must be in MODULES). Maximum NEW ledger rows one sweep pass bills. The pass reads EE_RECONCILIATION_REPLAY_WINDOW rows on top of it, and the platform's usage.list ceiling caps that read at 1000, so the module refuses to boot when the two together exceed 1000: above it the forward slice would silently shrink below the batch size, stalling the sweeper's within-tick drain loop. [not in the Zod schema: read by @appstrate/module-ee]
EE_RECONCILIATION_REPLAY_WINDOWNo200Billing module @appstrate/module-ee (must be in MODULES). How far below the watermark each pass re-reads, so a row that commits after a higher id is still billed. 0 disables replay and restores the silent-loss window. [not in the Zod schema: read by @appstrate/module-ee]
EE_RECONCILIATION_MAX_GAP_SECONDSNo86400Billing module @appstrate/module-ee (must be in MODULES). How long the billing sweep may have been ABSENT before the module refuses to boot rather than resume over the gap it left. Re-enabling the module after a window with it off would otherwise bill every ledger row of that window against the organizations' current quotas, irreversibly. The refusal also requires a backlog larger than one tick's drain capacity, so a platform that was merely shut down boots normally. 0 resumes over any gap. [not in the Zod schema: read by @appstrate/module-ee]
STRIPE_SECRET_KEYConditional-Billing module @appstrate/module-ee (must be in MODULES). Stripe API secret key. Required when the module is loaded. [not in the Zod schema: read by @appstrate/module-ee]
STRIPE_WEBHOOK_SECRETConditional-Billing module @appstrate/module-ee (must be in MODULES). Signing secret used to verify POST /api/billing/webhooks. Required when the module is loaded. [not in the Zod schema: read by @appstrate/module-ee]
STRIPE_PRICE_ID_STARTERConditional-Billing module @appstrate/module-ee (must be in MODULES). Stripe price id backing the starter plan. Required when the module is loaded. [not in the Zod schema: read by @appstrate/module-ee]
STRIPE_PRICE_ID_PROConditional-Billing module @appstrate/module-ee (must be in MODULES). Stripe price id backing the pro plan. Required when the module is loaded. [not in the Zod schema: read by @appstrate/module-ee]
PORTNo3000Server port
APP_URLNohttp://localhost:3000Canonical public origin for OAuth callbacks, email links and externally advertised API URLs. Boot-normalized to URL.origin; only absolute http:// or https:// origins are accepted (no credentials, path, query or fragment). Production requires HTTPS except for loopback origins. Changing its origin on a live instance cuts the connections minted under INTEGRATION_OAUTH_CIMD (see that row).
TRUSTED_ORIGINSNo""Origins trusted beyond APP_URL's own, comma-separated, for three uses: CORS with credentials (Access-Control-Allow-Origin), Better Auth trustedOrigins, and the SPA's post-login ?redirect= allowlist (trustedOrigins in the app config, which always holds APP_URL). Unset or empty adds none: APP_URL needs no CORS grant, Better Auth always trusts it, and a redirect back to it is always allowed. Set it only for another browser origin that calls the API with cookies or that a sign-in redirects back to (a separate front end, a Vite dev server on :5173).
TRUST_PROXYNofalseControls how the platform reads X-Forwarded-For. false = XFF ignored (safest), true/1 = 1 trusted hop, N = N trusted proxy hops. The value must be the number of hops that actually append to X-Forwarded-For: a TLS-terminating L4 load balancer appends nothing and is not a hop. The chain is read from the right, and a chain shorter than the hop count (or an entry that is not an IP address) is distrusted entirely, socket peer instead. Critical for per-IP rate limiters (incl. OIDC /oauth2/token): a hop count higher than the topology lets callers spoof their client IP via XFF. With NODE_ENV=production and an APP_URL that is not plain-http loopback, false refuses to boot: a proxy is in front by construction and every caller would resolve to it
DOCKER_SOCKETNo/var/run/docker.sockPath to Docker socket
RUN_ADAPTERNoprocessExecution backend id, resolved against a registry at boot. Core provides docker (containers) and process (Bun subprocesses); modules add more, such as firecracker (needs the firecracker module in MODULES and FIRECRACKER_RUNNER_URL and FIRECRACKER_RUNNER_TOKEN pointing at an appstrate-runner daemon; see docs/architecture/FIRECRACKER.md). An unknown id is a fatal boot error that lists the registered backends. process refuses to spawn source.kind: "local" integrations, because a same-user child of the sidecar could read the sidecar's environment, credentials included. On the Tier 0 default this blocks @appstrate/github-git, the one shipped local integration: move the run to RUN_ADAPTER=docker or RUN_ADAPTER=firecracker. Integrations whose source.kind is remote or none are unaffected
FIRECRACKER_RUNNER_URLConditional-Where the platform's firecracker backend reaches the appstrate-runner daemon: unix:///abs/path.sock (recommended when co-located) or http(s)://host:port. Required when RUN_ADAPTER=firecracker, and only then: listing the module in MODULES reads nothing. A missing value is not a boot failure: the platform logs, retries in the background and keeps serving, but /health reports checks.agents: degraded and every run fails. A plaintext http:// URL to a host that is not loopback is refused, because this connection carries the bearer token and per-run credentials, unless FIRECRACKER_RUNNER_TLS_REQUIRED=0 turns it into a warning. Malformed values are refused: unix://path with two slashes, a relative unix path, a query or fragment, any other protocol. Every other FIRECRACKER_* variable is read by the daemon. See docs/architecture/FIRECRACKER.md [not in the @appstrate/env Zod schema: validated by the module's own schema on first use, not at boot]
FIRECRACKER_RUNNER_TOKENConditional-Shared bearer secret authenticating the platform → appstrate-runner wire; minimum 16 characters, no default and deliberately no "auth off" mode: /v1/sidecars carries run tokens and credential bundles, so an unauthenticated daemon is a credential oracle. Sent as Authorization: Bearer on EVERY daemon call and must be byte-identical on both sides; a mismatch surfaces in appstrate doctor as an unauthorized error naming a FIRECRACKER_RUNNER_TOKEN that does not match the daemon. Same conditional requirement and same lazy enforcement as FIRECRACKER_RUNNER_URL (one error names both). appstrate install / appstrate runner install mint it and PRESERVE the existing value across upgrades. Read by two processes with two schemas: the platform's (lazy) and the daemon's own, which fails fast at daemon boot [not in the @appstrate/env Zod schema: module-local and daemon-local Zod schemas]
PI_IMAGENoappstrate-pi:latestDocker image for the Pi agent runtime (override for GHCR or a custom registry). Forms a version contract with SIDECAR_IMAGE and with the platform itself: the two refs must carry the same tag, and when all three are release versions they must also equal the platform's own version, or boot fails. On Docker the platform also warns when the two images carry different org.opencontainers.image.revision build stamps. The platform half is skipped for a digest-pinned ref, a platform with no release version (a source run), and refs pinned to an alias tag the release publishes next to the version (latest, 1.0, sha-<sha>); the two images are still checked against each other. So :latest on both refs under a released platform is accepted, and only the revision warning sees that drift. Rebuild both with bun run docker:build:runtime
SIDECAR_IMAGENoappstrate-sidecar:latestDocker image for the sidecar proxy (override for GHCR / custom registries). Must be pinned to the same tag as PI_IMAGE, and to the platform's own APP_VERSION whenever all three are release versions (see that row)
RUNTIME_IMAGE_WARM_INTERVAL_SECONDSNo300Docker only. Cadence of the runtime-image warm sweep: reconcile one long-lived "pin" holder container per image (appstrate-imagepin-*) so docker image prune -a can't delete PI_IMAGE/SIDECAR_IMAGE between runs. Recreating a pin a host janitor removed re-pulls the image if needed, off the run path. Keeps cold pulls off the run-boot critical path. 0 disables the sweep (no pin containers)
RUNNER_IMAGE_NODENoappstrate-mcp-runner-node:latestMCP runner image for AFPS server.type: node. Forwarded to the sidecar (operator-env passthrough); absent => bare :latest default, resolvable only on a host that pre-built it. Set to a GHCR ref for self-hosted/prod [not in the Zod schema: read inside the sidecar process; forwarded from the platform host]
RUNNER_IMAGE_PYTHONNoappstrate-mcp-runner-python:latestMCP runner image for AFPS server.type: python. Same forwarding/override semantics as RUNNER_IMAGE_NODE [not in the Zod schema: read inside the sidecar process; forwarded from the platform host]
RUNNER_IMAGE_BUNNoappstrate-mcp-runner-bun:latestMCP runner image for AFPS server.type: bun (docker mode). Same semantics as RUNNER_IMAGE_NODE [not in the Zod schema: read inside the sidecar process; forwarded from the platform host]
RUNNER_IMAGE_UVNoappstrate-mcp-runner-uv:latestMCP runner image for AFPS server.type: uv (MCPB 0.4). Same semantics as RUNNER_IMAGE_NODE [not in the Zod schema: read inside the sidecar process; forwarded from the platform host]
RUNNER_IMAGE_BINARYNoappstrate-mcp-runner-binary:latestMCP runner image for AFPS server.type: binary. Same semantics as RUNNER_IMAGE_NODE [not in the Zod schema: read inside the sidecar process; forwarded from the platform host]
S3_BUCKETNo-S3 bucket name. When absent, falls back to filesystem storage (FS_STORAGE_PATH)
S3_REGIONNo-S3 region (e.g. us-east-1). Required when S3_BUCKET is set
FS_STORAGE_PATHNo./data/storageFilesystem storage path (used when S3_BUCKET is absent)
FILE_MAX_BYTESNo104857600Per-file ceiling (bytes) for a durable file (materialized upload or agent output). Over-cap writes return 413. Default 100 MiB
ORG_STORAGE_QUOTA_BYTESNoNone (unlimited)Per-org durable-storage quota (bytes), checked synchronously against organizations.files_bytes_used (403 storage_limit_exceeded on over-cap). Absent ⇒ unlimited
RUN_MAX_OUTPUT_BYTESNo268435456Ceiling (bytes) on the total files a single run may publish as output. Default 256 MiB
RUN_MAX_FILESNo200Max files a single run may reference as input (uploads + inline + appfile:// refs) AND publish as output. Bounds the per-run file COUNT that the byte caps do not (thousands of tiny files). Enforced at input-parse (413) and at agent-output commit under the org FOR UPDATE lock (413 file_count_exceeded)
STORAGE_DELETION_WORKER_INTERVAL_MSNo60000Poll cadence (ms) for the transactional storage-deletion worker: the outbox that physically purges S3/FS objects after their DB row is gone. Each pass claims a bounded batch of due storage_deletion_jobs; failures back off exponentially and retry forever (deletion is never abandoned)
UPLOAD_RETENTION_HOURSNo24Post-consume reuse window (hours) for a staged upload: the same upload can feed another run (re-trigger after cancel, rerun_from) without a byte-identical re-upload. Once it elapses the GC sweep drops the row and its storage object. 0 restores single-use semantics
UPLOAD_MAX_ACTIVE_PER_ACTORNo50Max ACTIVE (unconsumed, unexpired) staged uploads one principal may hold at once: a 429 on the (N+1)th create. Computed from the live uploads rows (no separate counter), so a consumed or expired upload frees the budget immediately
UPLOAD_STAGING_MAX_BYTES_PER_ORGNo2147483648Ceiling on the summed DECLARED sizes of an org’s ACTIVE staged uploads. A create that would push the org over it is rejected (403 storage_limit_exceeded). Bounds the ephemeral uploads bucket footprint per org before GC, distinct from the durable ORG_STORAGE_QUOTA_BYTES. Default 2 GiB
WORKSPACE_INIT_IMAGENobusybox:1.37Minimal image (~5 MB) used once per run to chown the freshly created workspace volume to UID 1001 (the agent’s pi user). Override only if your environment cannot pull from Docker Hub or you want a pre-baked busybox
WORKSPACE_TMPFS_SIZE_MBNo512Tmpfs size cap (MB) for the per-run workspace volume. Tmpfs is RAM-backed, fast to allocate/destroy and self-quota’d. Set to 0 to fall back to the local volume driver (host disk, no built-in quota). Max 8192
WORKSPACE_MAX_FILES_BYTESNo268435456Ceiling on the total bytes of input files a single run may carry into its workspace. Each file is streamed to disk out-of-band, so this is a policy limit rather than a memory-safety floor: it also bounds what the platform buffers while consuming uploads. Default 256 MiB
FILE_RETENTION_DAYSNoNone (permanent)Default retention (days) applied as expires_at at file creation. Absent ⇒ files never auto-expire
USERCONTENT_URLNoNone (same-origin on APP_URL)Separate origin for serving untrusted agent-generated HTML previews. Boot-validated: an absolute URL whose host MUST differ from APP_URL's (plus https:// in production). When set, GET /api/files/:id mints its preview_url on this origin: point a second registrable domain at the same server, which gives previews their own cookie jar, storage partition and process. It does not change when agent HTML is rendered as active content: only inside the dashboard's <iframe sandbox="allow-scripts">, in every mode, and a top-level navigation to preview_url gets inert text/plain source. It is defence in depth, mainly against a browser that ignores sandboxing and a future app page that frames a preview without the sandbox attribute. Setting it also points the dashboard's Content-Security-Policy: frame-src at this origin ('self' when unset); both come from this one variable. See docs/architecture/FILES.md (D5)
PGLITE_DATA_DIRNo./data/pglitePGlite data directory (used when DATABASE_URL is absent)
S3_ENDPOINTNo-Custom S3 endpoint (for MinIO/R2/other S3-compatible)
RUN_TOKEN_SECRETYes-Dedicated HMAC secret for run bearer tokens. Comma-separated keyring (≥16 chars per key): FIRST key signs, ALL keys verify. Rotate by prepending the new key, then dropping the old one once in-flight runs drain. Rotates independently of UPLOAD_SIGNING_SECRET
GOOGLE_CLIENT_IDNo-Google OAuth client ID (enables Google sign-in when both Google vars are set)
GOOGLE_CLIENT_SECRETNo-Google OAuth client secret
GITHUB_CLIENT_IDNo-GitHub OAuth App client ID (enables GitHub sign-in when both GitHub vars are set)
GITHUB_CLIENT_SECRETNo-GitHub OAuth App client secret
COOKIE_DOMAINNo-Cookie domain for cross-subdomain auth
SMTP_HOSTNo-SMTP server host (enables email verification when all SMTP vars are set)
SMTP_PORTNo587SMTP server port
SMTP_USERNo-SMTP authentication username
SMTP_PASSNo-SMTP authentication password
SMTP_FROMNo-Sender email address for verification emails
WEBHOOK_TIMESTAMP_TOLERANCE_SECONDSNo300Standard Webhooks timestamp tolerance. Cross-field rule: must be < REMOTE_RUN_REPLAY_WINDOW_SECONDS (validated at boot)
LLM_PROXY_CACHE_MODENooffoff \
LLM_PROXY_CACHE_MAX_AGENo3600LLM proxy cache max age (seconds), when LLM_PROXY_CACHE_MODE=simple
LLM_PROXY_FIRST_RESPONSE_TIMEOUT_MSNo60000 (60 s)TTFB bound in milliseconds on a STREAMING /api/llm-proxy/* or /internal/llm-proxy/* upstream call: how long the provider may take to return response HEADERS. Detached the moment headers arrive, so a slow-but-healthy body is never cut by it; inter-chunk silence after that is LLM_PROXY_STREAM_IDLE_TIMEOUT_MS. On expiry the call is aborted and the caller receives a generic RFC 9457 500: there is no tailored timeout status. Non-streaming calls use a separate hardcoded 600 000 ms bound that is NOT operator-overridable. Read once per process: a change needs a restart. The sidecar's twin is SIDECAR_LLM_FIRST_RESPONSE_TIMEOUT_MS
LLM_PROXY_STREAM_IDLE_TIMEOUT_MSNo120000 (120 s)Inter-chunk silence bound in milliseconds once an /api/llm-proxy/* or /internal/llm-proxy/* SSE body is flowing (no fetch-level signal can express this without also capping total duration). Enforced on BOTH tee() branches (the client stream and the metering tap) because tee() only cancels its source when both branches cancel. At the limit the client stream is closed CLEANLY, not errored: the caller sees a TRUNCATED SSE stream (Pi classifies that as retryable) and only the server logs the timeout, while the metering tap meters whatever usage it managed to parse (usually none). Looser than the TTFB bound by design: extended thinking and large parallel tool-call payloads buy 15–45 s of legitimate silence. The default is DEFAULT_LLM_STREAM_IDLE_TIMEOUT_MS from @appstrate/connect, hence .optional() and not .default(): @appstrate/env cannot import connect, which depends on it. Sidecar twin: SIDECAR_LLM_STREAM_IDLE_TIMEOUT_MS

Rotating CONNECTION_ENCRYPTION_KEY

A ciphertext names the key that wrote it (v1:<kid>:…) and is never rewritten on its own, so a retired key stays in CONNECTION_ENCRYPTION_KEYS until something re-encrypts what it wrote:

  1. Generate the new key (openssl rand -base64 32) and pick a new kid.
  2. Set CONNECTION_ENCRYPTION_KEY to the new key, CONNECTION_ENCRYPTION_KEY_ID to its kid, and add the old pair to CONNECTION_ENCRYPTION_KEYS ({"k1":"<old key>"}). Deploy, and wait until no process runs the old env: from then on every write uses the new kid and the old one only decrypts.
  3. With that env, run bun scripts/rekey-encrypted-columns.ts --apply: it re-encrypts, under the active kid, every ciphertext the retired kids wrote.
  4. Run it again without --apply: its per-kid inventory must show nothing under the old kid, and it exits 0.
  5. Remove the old kid from CONNECTION_ENCRYPTION_KEYS and deploy. Too early, the boot refuses: it names each kid still in the database that the keyring lacks.

The dry run also says, per kid, whether a sample opens with the configured key: SAMPLE DOES NOT OPEN means a key replaced under an unchanged id (restore the original one) or a group whose sampled rows are corrupted. A rollback to the env from before step 2 refuses the boot once rows exist under the new kid, by design. A key that is truly lost cannot be restored: the rows under its kid are unreadable for good. Delete them (the connection, OAuth client, model credential, proxy or SMTP/social config is then reconnected or re-entered; a run's sink secret stops counting once the sink is closed or expired) until the dry run of step 4 shows no UNKNOWN line. A model credential is referenced by org_models.credential_id with ON DELETE RESTRICT: delete or repoint those org_models rows first, in the same SQL session.

The credential-proxy cookie jars in Redis are not rewritten: they expire with their session, and one still under a dropped kid reads as an empty jar.

EGRESS_ALLOW_INTERNAL_HOSTS: full semantics

Opt-in, comma-separated hostnames the operator explicitly trusts on private/internal addresses. Exempts only the SSRF host blocklist, never the redirect discipline, across every platform egress site that consults it: OAuth token exchange/refresh/discovery, LLM upstream baseUrl, org proxies, org model tests, and remote MCP servers (spawn validation allows plain http:// for these hosts). The value is forwarded to the sidecar under the same name at launch, where it exempts only a host an integration's declared authorized_uris names literally, for a local runner, only on the ports those entries name and never loopback (the rule: docs/architecture/SIDECAR.md, "Internal hosts" and "Runner egress allowlist"). Any organization whose integration names a listed host reaches it, a runner over raw TCP: on a multi-tenant instance, list only hosts every organization may reach, host.docker.internal included (it is not loopback). Under RUN_ADAPTER=firecracker, guest sidecars take the list from the appstrate-runner daemon's own environment, not from the platform's: set the same EGRESS_ALLOW_INTERNAL_HOSTS=… on the runner host in a systemd drop-in of appstrate-runner (Environment= line, then restart), never in /etc/appstrate-runner/env, which appstrate runner install re-renders (procedure: docs/architecture/FIRECRACKER.md → Env vars); the daemon refuses to start on a malformed list. There, the runner host's FIRECRACKER_EGRESS_DENY_CIDRS drops private and link-local ranges by default, so a listed private host stays unreachable from a run until that list is narrowed. An API-key model's inference is dialed by the platform LLM proxy, inside the API process, so a model on a private or local endpoint (Ollama, a LAN vLLM) needs its host listed here, and that host must resolve and be reachable from the API process's own network, localhost is the API's loopback, not the agent's or the sidecar's; without the entry the run fails: before provisioning, with an error naming this variable, when the host is literally blocked (a private or loopback address, localhost, host.docker.internal), otherwise on its first model call, once the proxy has resolved it.

Redirect chains are checked per hop: a trusted host redirecting to a second internal host requires that host to be listed too, and a cross-host redirect still strips credentials and the request body (on an api_call, unless the integration's authorized_uris names that origin). Unset ⇒ every internal host stays blocked (the secure default).

Entry grammar. Entries are trimmed and lowercased; empty entries (a,,b, a trailing comma) are ignored. Boot accepts an entry only when it is a bare hostname or dotted IPv4 address: spelled with a-z, 0-9, ., _ and -, and already the hostname a URL normalises it to. Anything else, a port, scheme, path, *, @, whitespace, a trailing dot, an IPv6 literal, a non-ASCII name (write its punycode), 127.1 or 999.1.1.1, refuses boot with one error naming the entry. KeyCloak.Internal is accepted as keycloak.internal.

Matching is exact: the lowercased hostname of the target URL must equal a listed entry, and the port is never part of the match. With keycloak.internal listed, https://KEYCLOAK.internal:8443/x is exempt; https://sub.keycloak.internal/ and https://keycloak.internal./ are not.

Unread keys

At boot, before migrations, the API logs one warn line naming every environment variable that is set to a non-empty value, that this version does not read, and whose namespace is one the platform reads. Nothing is logged when there are none. Implementation: warnOnUnreadEnvKeys (apps/api/src/lib/unread-env-keys.ts), over the read set of platformReadEnvKeys (apps/api/src/lib/platform-env-keys.ts).

  • Read keys READ = the keys of the @appstrate/env schema, SIDECAR_OPERATOR_ENV_KEYS, and the keys a package reads directly outside the schema (DIRECT_READ_ENV_KEYS: AUTH_FAST_TEST_HASH).
  • Infra keys INFRA_ENV_KEYS (packages/env/src/env-key-inventory.ts) are the compose and sibling-container keys the platform never reads. They are never reported and do not define a namespace: Coolify injects the resource env into every container, so POSTGRES_DB, AWS_REGION or MINIO_BROWSER beside them is not reported either.
  • Namespace of a key is the text before its first _, or the whole key when it has none.
  • Platform family = the namespaces of READ, minus the foreign namespaces below. A key is reported when it matches ^[A-Z][A-Z0-9_]*$, is in neither READ nor INFRA_ENV_KEYS, and its namespace is in the family. A compose ${VAR:-} left empty counts as unset.
  • Foreign namespaces, never reported:
    • NODE: the Node/Bun runtime (NODE_OPTIONS, NODE_EXTRA_CA_CERTS).
    • GIT: git's own environment.
  • Module namespaces (STRIPE_, EE_, OTEL_, CHAT_, FIRECRACKER_) and PATH, HOME, HOSTNAME, TERM, BUN_* are outside the platform family and are never reported.

Limits

  • A typo under a foreign namespace (NODE_ENV, GIT_SHA) is not reported.
  • A retired name whose namespace no current key shares is not reported.
  • A typo under a namespace only infra keys use (POSTGRES_, MINIO_, AWS_) is not reported.
  • A third-party variable under a platform namespace is reported although the platform does not read it, for example a PI_* knob of the in-process Pi library or GOOGLE_APPLICATION_CREDENTIALS. A shell's GITHUB_TOKEN, or the GITHUB_* and RUNNER_* variables of a GitHub Actions job, are the same case; in CI the e2e suite starts its API without the runner's (e2e/playwright.config.ts). For DOCKER_HOST the report is correct: the platform reads DOCKER_SOCKET.

On this page