Skip to content

Environment variables

These are the core variables read by the SupaCloud server. The standalone deployment sets them via .env (see Self-host with Docker Compose). The list is complete for the server: an architecture test fails when the server reads a variable that this page does not name and that is not on the test’s internal allowlist of test-only switches.

Variable Default Purpose
MODE — dev (the default when unset) relaxes prod-only guards. Set MODE=prod (or production) for production — any other value, including unset, runs in dev mode.
PUBLIC_URL — Public base URL of the server. Required in production.
SUPACLOUD_DEPLOYMENT_ENVIRONMENT development in dev, production in prod Trusted runtime environment of this deployment: development, stage or production. It is part of the deployment identity that project-scoped Management tokens are bound to, so set it explicitly on stage. Not a secret.
SUPACLOUD_DEPLOYMENT_ID derived from PUBLIC_URL Stable UUID of this deployment, the audience project-scoped Management tokens are issued for. Stage and production must set it before an operator claims project authority; a value that is not a UUID refuses those tokens. Not a secret.
CORS_ALLOWED_ORIGINS — Comma-separated origins allowed to call the API.
DATABASE_URL postgresql://supacloud:supacloud@postgres:5432/supacloud PostgreSQL connection string of the runtime role. With MODE=prod the server refuses to boot when this role is SUPERUSER or BYPASSRLS (or its posture cannot be read), and /metrics exports the verdict as supacloud_db_runtime_role_privileged. See Run as a least-privilege database role.
SUPACLOUD_MIGRATION_DATABASE_URL DATABASE_URL PostgreSQL connection string the migrator (the schema owner) uses for sqlx migrations and the pre-migration auth objects. For a NOLOGIN owner, log in as a member of it and add options=-c%20role%3D<owner>. Unset, migrations run on DATABASE_URL. A secret.
SUPACLOUD_MIGRATION_OWNER_ROLE unset The NOLOGIN schema-owner role (for example supacloud_owner) the migrator assumes with SET ROLE on every connection. Unset, no SET ROLE runs, which is also right when the migration login already assumes the owner through ALTER ROLE ... SET role or the options=-c role=<owner> DSN parameter. Not a secret.
SUPACLOUD_IDENTITY_RS_<NAME> unset The resource-server client credential of one identity v2 registration handle: SUPACLOUD_IDENTITY_RS_<HANDLE>_CLIENT_ID and _CLIENT_SECRET (secret). The server reads them at use time, as a variable or from the supacloud/app vault map. Without an approved registration the identity sign-in stays closed.
SUPACLOUD_NAMESPACE_READ_CAPABILITIES [] Operator-only JSON array that enrols a shared namespace for App READ access (#1549). Each entry pins the workspace, resource and namespace, the physical database target, the lock helper and the reader, migrator and owner roles. Empty means every App READ request is refused and namespace imports keep their usual path. An invalid value stops the server at boot. It carries no credentials and grants nothing by itself; enrolment needs a reviewed operator bootstrap. Not a secret.
SUPACLOUD_NAMESPACE_READ_OPERATOR_DATABASE_URL unset Superuser connection of the one-shot provision_namespace_read (in the supacloud-ops image) that adopts a namespace for App READ access (#1549). Set only for that run, over TCP; a socket connection is refused. Never read by the server or by migrations. Secret.
SUPACLOUD_SKIP_BOOT_MIGRATIONS false true makes the server only check at boot that every migration it was built with is applied, and refuse to start otherwise. Use it when a deploy step runs supacloud-server migrate before the new version starts; that command applies as the schema owner (SUPACLOUD_MIGRATION_DATABASE_URL, SUPACLOUD_MIGRATION_OWNER_ROLE), while the server only reads the applied list over its runtime role, so two versions can run side by side during a switch. Unset, the server applies pending migrations itself. A server always starts against migrations newer than itself.
DATABASE_SSL_MODE require TLS mode for the database connections: disable, prefer or require. Use disable only on a private container network or an encrypted overlay.
SERVER_PORT 8080 Port the server listens on.

The server answers four probes outside /api. None of them needs a session.

Probe Checks Answers Use it for
GET /livez Nothing but the process Always 200 Liveness only
GET /healthz The local drain flag 200, or 503 from SIGTERM on The container healthcheck
GET /readyz This process only: boot finished and not draining 200; 503 with reason warming before the boot finished or draining from SIGTERM on The load balancer and every edge health check
GET /readyz/deps The drain flag and a database round trip within two seconds 200; 503 with reason draining or database_unavailable Deploy and rollout gates that need the database

/readyz makes no database, cache or network call. Every edge checks every replica, and all replicas share one database, so a readiness that followed the database would take every replica out at the same moment during a short database outage. The dependency verdict lives on /readyz/deps instead. Do not route /readyz/deps through an edge, and do not use it as a container healthcheck: during a database outage it would mark every replica down at once. An outage of a realtime or cache service does not make either probe 503.

/livez, /healthz and /readyz are not rate limited, so an edge that checks every replica twice a second never gets a 429. They read two in-process flags and nothing else. /readyz/deps and /health stay behind the per-IP limit. A failed answer of either readiness probe carries status: "not_ready", the reason and the side_effects mode; a ready one carries status: "ready" and side_effects.

The metric supacloud_dependency_up{dependency="database"} holds this replica’s last database verdict (1 or 0), with its time in supacloud_dependency_last_check_timestamp_seconds. Every /readyz/deps call, every /metrics scrape and the once-per-minute pool probe update it. /metrics keeps answering 200 while the database is down.

On SIGTERM the server marks itself not ready, waits for the drain delay so the load balancer stops routing to it, then stops accepting connections, tells every browser WebSocket to reconnect elsewhere, and finishes open requests within the grace period. The container’s stop grace period must also cover active-run drain and resource cleanup; see Replica drain.

Variable Default Purpose
SUPACLOUD_SHUTDOWN_LB_DELAY_SECS 10 Minimum seconds between SIGTERM (readiness turns 503) and closing the listeners. Counted from the first signal, so a longer drain adds nothing. Whole seconds from 0 through 3600; values below 10, including 0, use the 10-second minimum. Larger values refuse startup.
SUPACLOUD_SHUTDOWN_GRACE_SECS 20 Open-request grace after the listeners close, in whole seconds from 0 through 3600. 0 ends this request grace immediately. Larger values refuse startup.

A failover drill boots a second server against a copy of the live database. Without passive mode that replica treats the live replica’s work as its own: it reaps its containers, polls its mailboxes, pushes seat counts to Stripe and deletes OpenBao secrets it does not know. Set SUPACLOUD_SIDE_EFFECTS=off on the drill replica.

With off the server still boots, migrates its own database when asked, serves reads, password sign-in and the health probes. It starts no background loop that reaches outside its own database, and every outbound client refuses with side_effects_disabled: HTTP, SMTP, IMAP and raw TCP, Docker, OpenBao, Stripe, Telegram, Discord, the realtime relay and the runner listener. Every other write request answers 503 with the code side_effects_disabled. /livez and /readyz report the mode in their side_effects field, and the boot log names it.

A passive replica writes no heartbeat row, so it never owns a run and no peer treats it as alive. GET /api/operator/v1/server-instances lists the server processes that heartbeat the database, each with its id, start, last heartbeat and whether it is still alive within the dead-owner window (stale_after_seconds). Read it with the operator token or an instance-admin session; the drill replica must not appear in it.

Terminal window
curl -fsS -H "Authorization: Bearer $SUPACLOUD_OPERATOR_TOKEN" \
https://supacloud.example.com/api/operator/v1/server-instances

Two settings would point the replica back at the live estate, so with off the boot refuses them: an empty DATABASE_URL (OpenBao would fill it with the live database) and any OpenBao credentials (VAULT_TOKEN, or OPENBAO_ROLE_ID with OPENBAO_SECRET_ID). Run the drill with SECRET_BACKEND=env. Sign-in through an external identity provider (OIDC, social login) also stays off, because its token exchange is an outbound call; use a password account.

Variable Default Purpose
SUPACLOUD_SIDE_EFFECTS on off makes the replica passive, as described above. Only on and off are accepted; any other value refuses the boot instead of falling back to on.
Variable Default Purpose
AUTH_PROVIDER builtin Authentication provider.
SUPACLOUD_JWT_SECRET — Required. Session-signing secret, ≥ 32 bytes.
SUPACLOUD_INITIAL_ADMIN_EMAILS — Email(s) provisioned as the initial owner. Required in prod for builtin/oidc (boot fails if unset); the example files ship admin@example.com only as a placeholder.
AUTH_COOKIE_SECURE — false for local HTTP; true (default in prod) for HTTPS.
SECRET_BACKEND auto openbao or env. Auto-detects OpenBao when vault auth is present. See Secret provisioning.
OPENBAO_KV_MOUNT supacloud The KV-v2 mount this deployment reads and writes. A deployment that must not see another environment’s documents (a staging instance next to production) gets its own mount plus an AppRole scoped to it. An invalid value falls back to the default and is logged.
SUPACLOUD_CALIBRATION_SWEEP_INTERVAL_SECS 86400 (1 d) How often the unattended model-chain calibration decides. The loop polls hourly and runs a pass once the last one is at least this old; the first pass comes 30 minutes after boot, 0 turns it off. With several server replicas exactly one runs each pass — the others see the lease and skip.
SUPACLOUD_CALIBRATION_SWEEP_MIN_AGE_SECS the sweep interval Minimum age of the last pass before the hourly poll runs another one. 0 means every poll, an hourly measuring mode — set it deliberately and briefly, the benchmark sources’ budgets are shared.
SUPACLOUD_CALIBRATION_REFRESH_INTERVAL_SECS 21600 (6 h) How often the benchmark source snapshots behind the calibration are refreshed. They also serve the interactive “calibrate” button, which is why they refresh faster than the sweep decides. 0 turns the refresh off.
SUPACLOUD_RESOURCE_SECRET_RECONCILE_INTERVAL_SECS 21600 (6 h) How often the server removes workflow resource secrets that no resource row will ever read again, for example after a resource create whose database write failed. Runs only with an OpenBao session; the first pass comes 15 minutes after boot; 0 turns it off. A secret is removed only after two passes found it unclaimed, not deleted and older than 15 minutes. Removal is permanent when the OpenBao policy grants delete on supacloud/metadata/workflows/resources/*; without that grant the secret is soft-deleted instead and the server logs an error.
Variable Default Purpose
GROQ_API_KEY — Instance-wide Groq key (note: Groq, not Grok) used for the voice-input speech-to-text (Whisper). Set it to enable dictation across the app. Resolved env-first, then from the OpenBao supacloud/ai map when SECRET_BACKEND=openbao.
XAI_API_KEY — Instance-wide xAI (Grok) API key. Backs the Grok models (grok-4.5, grok-build-0.1, …) offered through the OpenCode agent. Per-user/workspace keys are normally entered under Settings → API keys (provider xAI / Grok); this env var is the instance-wide fallback. Resolved env-first, then from the OpenBao supacloud/ai map when SECRET_BACKEND=openbao.
OPENCODE_API_KEY — Instance-wide OpenCode Go API key, the fallback for the opencode-go provider when no user or workspace key is set. The same name is passed to the OpenCode agent. Resolved env-first, then from the OpenBao supacloud/ai map when SECRET_BACKEND=openbao. A secret.
OPENCODE_GO_BASE_URL https://opencode.ai/inference/go/openai/v1 Base URL of the OpenCode Go API (OpenAI-compatible). Boot-validated against internal hosts in prod.
VOICE_GATEWAY_TOKEN — Shared bearer between the server and the voice gateway (services/voice-gateway); set the same value on both. Every /api/voice/gateway/* call is refused while it is unset or wrong, so voice calls stay off until it is set. Generate 32 or more random bytes. See Set up a voice number.
VOICE_AI_NOTICE — Voice gateway only, optional. A greeting the gateway speaks at the start of every call, in front of the mandatory AI notice. The notice sentence itself is built into the gateway, in English or German according to VOICE_ASR_LANGUAGE, and cannot be removed: the gateway always ends with it, even when the greeting already says the same. Leave it unset to play the notice alone. See ADR 0079 D5.
Variable Default Purpose
AGENT_NETWORK supacloud-agents Docker network agent containers join.
SUPACLOUD_AGENT_NETWORK_ISOLATION per_task per_task gives every locally launched agent run its own Docker network that only the server and that run’s sidecars join, so agents cannot reach each other or anything else on AGENT_NETWORK. shared puts every agent on AGENT_NETWORK (the previous topology). Any other value is treated as per_task.
SUPACLOUD_HUB_CONTAINER $HOSTNAME The server’s own container (name or id) that joins each per-task agent network. Unset ⇒ HOSTNAME, which Docker sets to the container’s short id. With per_task isolation a launch fails closed when neither is set.
AGENT_MEMORY_BYTES 2147483648 Per-agent memory cap (bytes).
SUPACLOUD_HUB_AGENT_MEMORY_BUDGET_BYTES 0 (unlimited) Memory the hub may commit to agent containers that land there because no runner was eligible (a runner fallback). A fallback that would exceed it waits for a runner instead. 0 means unlimited.
SUPACLOUD_AGENT_NETWORK_DB_GUARD warn What the server does at boot when AGENT_NETWORK also carries the database host: warn logs an error and sets supacloud_agent_network_shares_db 1; refuse stops the boot in MODE=prod. Any other value means refuse.
AGENT_NANO_CPUS 2000000000 Per-agent CPU cap (nano-CPUs).
AGENT_MEMORY_BYTES_HEAVY 2 × AGENT_MEMORY_BYTES Memory cap of a heavy resource-class container (bytes).
AGENT_NANO_CPUS_HEAVY 2 × AGENT_NANO_CPUS CPU cap of a heavy resource-class container (nano-CPUs). Clamped to the CPUs of the host that creates the container.
AGENT_CONCURRENCY_WEIGHT_HEAVY 2 How many of the workspace’s MAX_PARALLEL_TASKS_PER_WORKSPACE slots a heavy task occupies.
AGENT_PIDS_LIMIT 512 Per-agent PID limit.
AGENT_READ_ONLY_ROOTFS true Mount the agent root filesystem read-only.
AGENT_IMAGE_DIGEST_NODE — The sha256: manifest digest the deploy verified for the :node agent channel. Set it and the server launches that image by digest; leave it unset under MODE=prod and agent launches are refused. The deployment sets it; you do not type it by hand.
AGENT_IMAGE_DIGEST_FULL — The same for :full and its per-language aliases.
AGENT_IMAGE_REQUIRE_DIGEST true when MODE=prod Refuse a registry agent channel tag that has no digest pin. Only set it to false if you run the agent images without a signing pipeline.
AGENT_IMAGE_PULL_TIMEOUT_SECONDS 900 How long a task launch waits for the agent image to download before it fails with a message naming the image and this budget. A pull that outlives it fails the launch instead of holding the task in launching until its timeout. An unset, empty, 0 or unparseable value means the default. Raise it on a slow link to the registry; the :full image is several GB. The pull runs after the launch request has answered, so the wait does not hold the request; a pull that fails or outlives the budget marks the run failed with the image reason.
AGENT_IMAGE_PREPULL on Background pre-pull of the agent channel images on every server replica: every 5 minutes it brings the deploy-verified digests (or the channel tags when no digest is pinned) onto the local Docker daemon; a digest already present costs one inspect, so the first task after an agent release or on a fresh host starts from a local image. Each pull runs inside AGENT_IMAGE_PULL_TIMEOUT_SECONDS. Only false, 0, no or off turns it off.
AGENT_TMPFS_TMP_MB 512 Size ceiling for the agent’s /tmp tmpfs, in MiB.
AGENT_TMPFS_RUN_MB 64 Size ceiling for the agent’s /run tmpfs, in MiB.
AGENT_TMPFS_HOME_MB 512 Size ceiling for /home/agent — the CLIs’ config and state. Package-manager caches (NuGet, npm, uv, pip, cargo, Go modules and the Go build cache) go to the per-task /workspace-cache volume on disk instead.
SUPACLOUD_AGENT_TEST_DB false Wand 6 option C — instance-level CAPABILITY gate for the per-task ephemeral Postgres sidecar. With it off no sidecar is ever created. With it on, a task gets a sidecar only when it opts in (task.config.test_db = true); a non-selected task gets none. An explicit caller TEST_DATABASE_URL wins: it is never overwritten and the sidecar is suppressed. The sidecar injects TEST_DATABASE_URL, its password is registered in the run’s redaction set, and it is removed with the agent container.
AGENT_TEST_DB_IMAGE postgres:18.6 Image for the SUPACLOUD_AGENT_TEST_DB sidecar.
ATTACHMENTS_FILE_WAIT_MS 30000 How long an agent container waits for its attachments file. Set INSIDE the agent container, not on the server.
AGENT_TASK_TIMEOUT_MINUTES 90 Hard timeout per agent task.
MAX_PARALLEL_TASKS_PER_WORKSPACE 3 Concurrency cap per workspace.
SUPACLOUD_INFLIGHT_CAP_PER_WORKSPACE — Instance cap on backlog runs in flight per workspace. The backlog dispatcher launches nothing for a workspace while this many of its backlog runs are active, and the smaller of this cap and the workspace’s own concurrency ceiling applies. Unset, 0 or a non-number means no cap. Shown as the ceiling on the operations panel.
SUPACLOUD_DISPATCH_CAP_PER_HOUR — Instance cap on backlog runs one workspace may launch in any rolling 60 minutes. A run counts for the hour it was launched in, whatever its outcome. Unset, 0 or a non-number means no cap. Shown as the cap next to the dispatch rate on the operations panel.

See Deploy without losing in-flight work.

Variable Default Purpose
SUPACLOUD_SHUTDOWN_DRAIN_SECONDS 600 How long the server waits on SIGTERM for the agent runs it hosts to checkpoint (commit and push their work in progress) before it stops their containers. Floor 30, ceiling 3600; an unparseable or non-positive value falls back to the default. Set the compose service’s stop_grace_period to at least this budget plus 60 seconds (20 for open requests, up to 30 for the realtime workers to stop, 10 of slack; 11m for the default), or Docker kills the server in the middle of the drain. 30 restores the old stop-almost-at-once behaviour.
SUPACLOUD_LIVE_SESSION_IDLE_SECONDS 600 Seconds without input before a live review session ends. Floor 60; must stay below the absolute limit. The effective pair is logged once at boot.
SUPACLOUD_LIVE_SESSION_ABSOLUTE_SECONDS 3600 Seconds after creation before a live review session ends regardless of input. Floor 120; must exceed the idle limit.
SUPACLOUD_LIVE_SESSION_WORKSPACE_MAX 4 Maximum open live sessions in one workspace. Each session is a 4 GiB Chromium container. An open past the bound is refused with live_session_capacity; the reviewer retries when a session ends. The capacity is admitted under a per-workspace advisory transaction lock, so parallel opens cannot both pass the count.
SUPACLOUD_LIVE_SESSION_INSTANCE_MAX 8 Maximum open live sessions on this instance (the whole deployment on one database). Same live_session_capacity refusal, admitted under one instance-wide advisory transaction lock with the row insert.
SUPACLOUD_LIVE_SESSION_SHARE_ANONYMOUS_MAX 2 Maximum open sessions with an anonymous holder on ONE share. A public link mints a fresh holder secret on every open, so the one-open index cannot bound it; the broker counts this share’s anonymous live-session slots (the LC2 unit: the container may still exist) under the same locked open transaction and refuses with live_session_capacity, naming the share bound. A signed-in member of the workspace is not affected by this bound. Minimum 1; an invalid set falls back to the built-in 4/8/2.
SUPACLOUD_LIVE_SESSION_PROJECT_SESSIONS_24H 20 Live sessions ONE project may start in a rolling 24-hour window. The session row carries no project id, so the broker counts through the document’s project; a projectless document counts toward no project and stays bounded by the workspace and instance caps. A start that fails (start_failed) counts too, so a failing container runtime can exhaust a project’s window without a single page being reviewed. A start past the bound is refused with live_session_quota, naming the count and the limit. A value below 1 falls back to the built-in 20.
SUPACLOUD_LIVE_SESSION_PROJECT_EVIDENCE_BYTES 268435456 Live-evidence bytes ONE project may hold in the rolling 30-day evidence window — the stored size of its live_evidence screenshots (the masked ones its reviewers attach, and a failure screenshot no comment carries), counted once per artifact from the project the ingest stamped on it from the document. A start past the bound is refused with live_evidence_quota, naming the bytes and the limit. Floor 1048576 (1 MiB); a lower or unreadable value falls back to the built-in 256 MiB and the boot line says so. The hourly artifact sweep still expires each screenshot at its own 30-day retention.
SUPACLOUD_LIVE_SESSION_RETENTION_DAYS 7 Days an ended live session row is kept before the sweep prunes it. Floor 2, above the 24-hour quota window, so a prune can never delete a start the project quota still counts; a shorter or unreadable value falls back to the built-in 7 and the boot line says so. One pass deletes at most 500 rows per workspace, only rows whose container removal is recorded and that no slot or other table still references. The session’s audit row (artifact_live_session.ended) and its evidence are the durable record and are never pruned with it.
SUPACLOUD_LIVE_SUBNET absent The live network’s fixed IPv4 subnet (<network>/<prefix>, e.g. 172.30.0.0/24). The server derives each session’s address from its deployment-wide slot ordinal before the container exists: .1 is the Docker gateway, .2 the relay’s fixed address, and sessions take .3, .4, … The value must be RFC1918-private, must not lie inside 192.168.0.0/16 (Docker networks never allocate there on our hosts), and must carry SUPACLOUD_LIVE_SESSION_INSTANCE_MAX sessions plus the gateway and relay. Set the same value on the guard and the server; absent or invalid makes opening a session refuse with live_subnet_not_configured and the guard refuses a live create (no live-session subnet is configured).
SUPACLOUD_DOCKER_GUARD_LIVE_NETWORK supacloud-live The dedicated live review network. The server container reads this too (its Docker runtime builds the session body); it must equal the guard container’s value or every session create is refused. The boot line names the effective network or none.
SUPACLOUD_DOCKER_GUARD_LIVE_IMAGE the release’s stamped digest The digest-pinned derived live browser image (<registry path>@sha256:<64 lower-case hex>, with no tag in the name part, built from docker/live-session/Dockerfile by build-live-session.yml). A tag-only or digest-less value fails boot. Absent, it is the digest the release build resolved for its own docker/live-session tree (the :live-tree-<tree> image) and compiled in; a release that found no such image carries none, and live sessions are then unavailable (no live-session image is configured). Set the same value on the guard and the server.
SUPACLOUD_DOCKER_GUARD_LIVE_PROXY absent The reviewed forward proxy a live session may name: exactly http://<host>:<port>, no path, query, fragment or credentials. The guard refuses a session whose SUPACLOUD_LIVE_PROXY differs; absent makes live sessions unavailable. Set the same value on the guard and the server.
SUPACLOUD_LIVE_RELAY_SECRET absent The live relay’s shared secret, resolved like the TURN secret (env first, then the OpenBao supacloud/app map) and at least 32 bytes; shorter values are discarded. It mints the short-lived WS ticket, authenticates the server to the relay, and derives the per-session Neko member password. It never enters a session container or the browser. The server and the relay sidecar must read the same value; absent makes opening a session refuse with live_relay_not_configured.
SUPACLOUD_LIVE_RELAY_URL absent The relay sidecar’s internal base URL, exactly http(s)://<host>:<port> (no path, query, fragment or credentials). The server derives <ws>://<host>:<port>/signal and <http>://<host>:<port>/sessions. Absent makes opening a session refuse with live_relay_not_configured. Use https when the server-to-relay path is untrusted; the signalling MAC is replayable within its 30-second clock window.
SUPACLOUD_LIVE_RELAY_SIGNAL_BIND required The relay sidecar’s internal signalling/control listener. Give the explicit server-side interface address (<server-network-ip>:8081); there is no default and 0.0.0.0/:: is refused at boot. Only the server network may reach it.
SUPACLOUD_LIVE_RELAY_PROXY_BIND required The relay sidecar’s forward-proxy listener. Give the explicit live-network interface address (<live-network-ip>:3128); there is no default and 0.0.0.0/:: is refused at boot. Session containers reach only this address; it must equal SUPACLOUD_DOCKER_GUARD_LIVE_PROXY.
SUPACLOUD_LIVE_RELAY_NEKO_PORT 8080 The Neko port the relay dials on supacloud-live-<session id>. The session container’s NEKO_SERVER_BIND is :8080.
SUPACLOUD_DOCKER_GUARD_LIVE_MEMORY_MAX 4294967296 Memory ceiling the guard admits for one live session and the value the server puts in the body. Set the same value in both containers.
SUPACLOUD_DOCKER_GUARD_LIVE_NANO_CPUS_MAX 2000000000 CPU ceiling (nano CPUs) the guard admits and the server sends. Set the same value in both containers.
SUPACLOUD_DOCKER_GUARD_LIVE_PIDS_MAX 512 Process-count ceiling the guard admits and the server sends. Set the same value in both containers.
SUPACLOUD_LIVE_TURN_LISTEN absent The hub’s own TURN listener: IP:PORT (turn-rs runs inside the server process). Absent leaves the embedded server off. Set, it binds UDP and TCP on that port, with the realm taken from PUBLIC_URL; a non-loopback listener must be 3478, the port the session’s ICE list names. Relay ports are virtual on this one server (never bound, never published), so media is relay-to-relay: both the session container and the reviewer allocate here and no external peer is reachable.
SUPACLOUD_LIVE_TURN_EXTERNAL derived from PUBLIC_URL The public IPv4 the embedded TURN server advertises in XOR-RELAYED-ADDRESS and accepts as its one relay peer. Unset (the normal case), the hub resolves the host of PUBLIC_URL once at boot and takes its one public IPv4 (an answer with several distinct public IPv4 addresses is refused, because a browser may reach any of them while the relay forwards to one); set it only to override that choice. A private, link-local, CGNAT or reserved value is refused, and when no public address can be resolved the embedded server does not start and the boot line names why.
SUPACLOUD_LIVE_TURN_URLS absent (derived from PUBLIC_URL) TURN listener URLs placed in each live session’s NEKO_ICESERVERS. Once the TURN secret exists the hub derives them from its own public origin: turn:<hub host>:3478?transport=udp and turn:<hub host>:3478?transport=tcp. The hub serves TURN itself on one port, UDP and TCP; there is no turns: listener and no 5349. Set it only to front an external TURN server, whose secret must then be the configured one. Absent derivation: opening a live session refuses with live_media_not_configured.
SUPACLOUD_LIVE_TURN_SECRET generated once per instance The TURN REST shared secret, minimum 16 bytes. Resolved env-first, then from the OpenBao supacloud/app map; unset, the hub generates 32 random bytes, stores them encrypted in instance_live_secrets and hands them only to its in-process TURN listener. The broker mints one per-session credential from it; the secret never enters a session container, a log line or the browser. Without a credential-encryption key the hub refuses to store it and sessions refuse with live_media_not_configured.
SUPACLOUD_LIVENESS_BOOT_GRACE_SECONDS 300 For this long after the server booted, the runner liveness sweep demotes no runner and fails no assignment: a runner cannot heartbeat while the server is down, so every runner looks stale at boot. After the grace plus SUPACLOUD_RUNNER_STALE_SECS the sweep demotes as before. Floor 90; an unparseable or non-positive value falls back to the default. Only matters when runners are registered.
Variable Default Purpose
SUPACLOUD_SELF_REPO_URLS — SupaCloud’s own repository URL or URLs, comma- or whitespace-separated, e.g. https://git.blockworx.tech/blockworx/supacloud. A backlog project whose git_repo_url is one of them gets SupaCloud’s built-in gate checks when its arm declares no gate manifest; the https://, ssh:// and git@ spellings of one repository match each other. Unset, no repository is detected and every project without a manifest gets the repo-neutral “run the documented checks” instruction. A repository’s name alone never counts. See Run the backlog.

See Configure artifact storage.

Variable Default Purpose
SUPACLOUD_ARTIFACT_ROOT /var/lib/supacloud/artifacts Root of the local artifact store and the staging area every upload passes through, whichever backend stores the final object. Keep it on the persistent /var/lib/supacloud volume, or a redeploy deletes the artifacts.
SUPACLOUD_ARTIFACT_BACKEND local_disk Instance default backend, local_disk or s3. A workspace’s artifact_storage setting takes precedence; s3 needs an s3 resource, and without one the store falls back to local disk with a warning.
SUPACLOUD_ARTIFACT_DAILY_QUOTA_BYTES 10737418240 Bytes one workspace may upload in any 24 hours (10 GiB by default). A rate guard on top of the per-plan storage limits.
SUPACLOUD_ARTIFACT_FORM_MAX_FIELDS 500 Most questions one artifact form declares, for a page’s data-sc-field controls and for artifact.form.create alike. At most 1000 (the database ceiling); a higher value is clamped to it and a value that is not a positive whole number keeps 500, each with a warning naming the variable. The boot log line artifact form limits in force names the value in force.
SUPACLOUD_ARTIFACT_FORM_MAX_ANSWERS_BYTES 262144 Most bytes of one form’s answers object (a draft or a sent response), serialized. At most 524288; clamped and logged like SUPACLOUD_ARTIFACT_FORM_MAX_FIELDS.
SUPACLOUD_ARTIFACT_S3_ENDPOINT unset S3 endpoint of the operator’s instance artifact bucket, the default store of every workspace without an override while it probes healthy. Set with SUPACLOUD_ARTIFACT_S3_BUCKET (one without the other stops a production server at boot); https:// in production. See Configure the instance artifact bucket.
SUPACLOUD_ARTIFACT_S3_REGION us-east-1 Signing region of the instance artifact bucket.
SUPACLOUD_ARTIFACT_S3_BUCKET unset Bucket of the instance artifact store.
SUPACLOUD_ARTIFACT_S3_ACCESS_KEY_ID / SUPACLOUD_ARTIFACT_S3_SECRET_ACCESS_KEY unset Key pair of the instance bucket, read per request: both from the environment, else both from OpenBao supacloud/app (60 s cache). Never mixed across the two sources.
Variable Default Purpose
SUPACLOUD_GLITCHTIP_DSN — DSN of a GlitchTip (Sentry-compatible) project. When set, the server pushes targeted error events to it: operational alert breaches (tick SLA, queue age, error spike, budget 80 %, weekly window low — one event per breach onset), circuit-breaker trips / provider failover (grouped per provider and error class), and terminal workflow-run failures (with a run deep link, grouped by workflow + node + error class so a repeatedly failing interval flow stays one issue), plus error!-level log events and panics. Every payload is scrubbed by the server’s redaction wall before it leaves the process. Unset ⇒ the sink is fully disabled — no client, no network attempt. Resolved env-first, then from the OpenBao supacloud/app map.
SUPACLOUD_GLITCHTIP_ENVIRONMENT the MODE (prod or dev) The environment tag of every GlitchTip event. Set it on a stage deployment (stage): stage runs MODE=prod and its events otherwise read as production incidents. Letters, digits, ., _ and -, at most 64 characters; any other value keeps the default and logs a warning.
RUST_LOG warn,supacloud_server=debug,tower_http=info,vaultrs=off,rustify=off Log filter in tracing env-filter syntax, for example info or info,sc_svc_platform=debug. Your value is laid over vaultrs=off,rustify=off: the OpenBao client library logs every expected 403 and 404 as an error, and that stays silent unless you name the target yourself (vaultrs=error). A value that does not parse falls back to the default.
SUPACLOUD_LOG_FORMAT text json writes one JSON object per line with timestamp, level, target, message, the fields of the event and the fields of the enclosing request (request_id, method, route, path, client_ip, user_agent). Use it when a log pipeline (Loki, for example) should filter on the level or a field. text is the human-readable line; it is coloured only when the output is a terminal. Any other value means text. Applies to the server, the runner and the migrate command.
  • One line per request, at INFO, with status and latency. The liveness and readiness probes (/health, /livez, /healthz, /readyz, /readyz/deps) and the App-build claim poll are logged at DEBUG, so they do not appear under the default filter.
  • A response with a 5xx status adds a WARN line response failed. The error behind it is logged by the handler in the same request. A probe that answers 503 while the server starts or drains adds no such line.
  • Every request line carries client_ip and user_agent. client_ip is the address the per-IP rate limiter counts the request against: the socket peer, or the forwarded address when the peer is in SUPACLOUD_TRUSTED_PROXY_CIDRS. The user agent is cut at 160 characters. Both are personal data; keep your log retention in line with your privacy policy.
  • Requests to hosted Apps (the Apps domain) are answered outside the API router. A 5xx there is a WARN line app host request failed with the host, the kind of request, the status and the latency; a 4xx is the same line at INFO. The path is not logged.
  • Background work that runs every few minutes logs its finished pass at DEBUG. A pass that used more than half of its lease is a WARN line. The durations are on /metrics as supacloud_background_arm_pass_seconds.
  • The web container writes one JSON line when a server-side call to the API fails (ssr backend call failed, with the call and the status or the reason) and when rendering a page throws (ssr request failed, with the route template). It writes nothing for a healthy request.
Variable Default Purpose
DATABASE_SSL_MODE require TLS mode for the PostgreSQL connection: disable, prefer or require. Any other value is a boot error.
SUPACLOUD_DB_MAX_CONNECTIONS 10 Size of the server’s connection pool. Raise it for large coordinator runs with many parallel agents; keep it below the database’s max_connections.
SUPACLOUD_DB_ACQUIRE_TIMEOUT_SECS 5 How long a request waits for a free pool connection before it fails.
SUPACLOUD_DB_CONNECT_RETRY_BUDGET_SECS 60 How long a starting server, or supacloud-server migrate, keeps retrying when the database is not reachable yet: the host name does not resolve, the port refuses or resets the connection, the attempt times out, or PostgreSQL answers that it is still starting up. Each attempt logs one warning with the cause; the waits grow from 0.5 s to 5 s. A wrong password, an unknown database, a TLS failure or a malformed URL is not retried and fails at once. 0 disables the retry.
SUPACLOUD_DB_IDLE_TIMEOUT_SECS 600 How long an unused pool connection stays open.
SUPACLOUD_DB_STATEMENT_TIMEOUT_MS 15000 PostgreSQL statement_timeout set on every pool connection.
SUPACLOUD_DB_IDLE_IN_TRANSACTION_TIMEOUT_MS 30000 PostgreSQL idle_in_transaction_session_timeout set on every pool connection.
SUPACLOUD_SLOW_QUERY_LOG_MS 250 Queries slower than this are logged as slow. 0 or a non-number keeps the default.
Variable Default Purpose
SERVER_HOST 0.0.0.0 Address the server binds to.
AUTH_JWT_SECRET — Alias read when SUPACLOUD_JWT_SECRET is unset. Prefer SUPACLOUD_JWT_SECRET.
SUPACLOUD_TRUSTED_FORWARDING off Declare the deployment proxy-fronted: the client IP comes from the forwarding headers, but only when the peer is in SUPACLOUD_TRUSTED_PROXY_CIDRS. Set it only when your proxy overwrites those headers on every request.
SUPACLOUD_TRUSTED_PROXY_CIDRS empty Comma-separated IPs or CIDRs of the reverse proxy. Only peers inside it may set the client IP through X-Forwarded-For or Forwarded. A malformed list fails the boot; MODE=prod with trusted forwarding on and an empty list refuses to boot. The web container is such a peer too: it calls the API while it renders a page and passes the visitor address on in X-Forwarded-For. Unless its address is listed here, every server-rendered request of every visitor counts against one rate-limit bucket, the web container’s own. List the web container’s address or a subnet only it lives in, never a network that agent containers share. Do not set ADDRESS_HEADER on the web container: it then appends a header value instead of its socket peer.
SUPACLOUD_INITIAL_ADMIN_EMAIL — Single-address alias read when SUPACLOUD_INITIAL_ADMIN_EMAILS is unset.
AUTH_SESSION_TTL_MINUTES 480 Absolute session lifetime in minutes, 1..=43200 (30 days); a value outside that range is refused at boot. The idle window below can end a session earlier, never later.
AUTH_SESSION_IDLE_MINUTES 1440 (24 h) Sliding idle window in minutes, 1..=43200. Every successful request refreshes it; a session idle for longer must sign in again. Never extends a session past AUTH_SESSION_TTL_MINUTES.
SUPACLOUD_JWT_SECRET_PREVIOUS — The previous session-signing root during a rotation, ≥ 32 bytes, from the environment or the OpenBao map supacloud/app. It only VERIFIES: sessions, scoped tokens, App-access cookies and runner JWTs signed with it stay valid, but nothing new is signed with it. See Rotate the session secret.
AUTH_JWT_SECRET_PREVIOUS — Alias read when SUPACLOUD_JWT_SECRET_PREVIOUS is unset.
AUTH_PROXY_USER_HEADER Remote-User AUTH_PROVIDER=proxy: header carrying the user name the authenticating proxy sets.
AUTH_PROXY_EMAIL_HEADER Remote-Email AUTH_PROVIDER=proxy: header carrying the email.
AUTH_PROXY_NAME_HEADER Remote-Name AUTH_PROVIDER=proxy: header carrying the display name.
OIDC_ISSUER_URL — Instance OIDC issuer (enterprise). See Configure OIDC SSO.
OIDC_CLIENT_ID — Instance OIDC client id.
OIDC_REDIRECT_URL — Instance OIDC redirect URL.
OIDC_SCOPES openid email profile Requested scopes, separated by commas or spaces.
OIDC_TOKEN_AUTH_METHOD basic Client authentication at the token endpoint: basic (client_secret_basic) or post (client_secret_post). Anything else is a boot error.
OIDC_MFA_ACCEPTED_ACR — Comma-separated acr values that mean multi-factor authentication at the instance OIDC provider. An account with its own TOTP armed skips the TOTP step only when the verified ID token proves MFA: amr contains mfa or two factor classes such as pwd + otp, or acr is one of these values, compared exactly. Unset, no acr counts. See Configure OIDC SSO.
DEFAULT_SSO_ORG — Organization that instance-OIDC sign-ins without an org mapping land in.
SUPACLOUD_EDITION — Dev bypass only: enterprise together with MODE=dev. Production uses SUPACLOUD_EDITION_LICENSE. See Apply an edition license.
OPENBAO_ADDR https://vault.blockworx.tech OpenBao address; VAULT_ADDR is read when this is unset. Set it on every self-hosted deployment that uses OpenBao.
VAULT_ADDR — Alias of OPENBAO_ADDR.
VAULT_TOKEN — OpenBao token auth (the alternative to OPENBAO_ROLE_ID + OPENBAO_SECRET_ID). Its presence selects SECRET_BACKEND=openbao when that is unset.
SUPACLOUD_METRICS_TOKEN — Bearer the /metrics endpoint requires. Required when MODE=prod or PUBLIC_URL is not loopback (the server refuses to boot without it); only a loopback dev instance may leave it unset, which leaves the endpoint open. Resolved env-first, then from the OpenBao supacloud/app map.

Session and scoped-token keys are derived from SUPACLOUD_JWT_SECRET per purpose (HKDF-SHA256), and a session JWT carries a key id and an audience. To rotate the root without signing everybody out:

  1. Set SUPACLOUD_JWT_SECRET_PREVIOUS to the current root.
  2. Set SUPACLOUD_JWT_SECRET to a new random value of at least 32 bytes and redeploy. New sessions are signed with the new root; sessions signed with the old one still verify.
  3. Once the longest token lifetime has passed (AUTH_SESSION_TTL_MINUTES, at most 30 days), remove SUPACLOUD_JWT_SECRET_PREVIOUS and redeploy.
Variable Default Purpose
AGENT_IMAGE_PREFIX — (empty) Registry prefix put in front of the agent image names.
SUPACLOUD_REGISTRY_URL — Container registry the server pulls agent images from.
SUPACLOUD_REGISTRY_USER — Registry user name.
SUPACLOUD_REGISTRY_PASSWORD — Registry password (a secret; also read from the OpenBao registry path).
AGENT_MCP_DEFAULT_ALLOWLIST built-in baseline Comma-separated MCP tool allowlist for a task whose agent profile sets none. Blank entries are dropped; an empty value keeps the built-in baseline.
AGENT_MCP_TOOL_RATE_LIMIT 50 Per-task budget of MCP read calls. Missing, unparsable or 0 keeps the default.
SUBTASK_MAX_DESCENDANTS_PER_ROOT 50 Sub-tasks one root task may have in its whole tree at the same time.
SUBTASK_MAX_LIFETIME_CHILDREN_PER_PARENT 50 Sub-tasks one task may spawn over its lifetime, finished ones included. A non-positive value keeps the default.
SUBTASK_WAIT_MAX_SECONDS 600 Ceiling of one subtask.wait call, 1 to 600 seconds. A value outside that range keeps 600.
OPENAI_DEBATE_MODEL — Default OpenAI model for internal calls when no workspace default applies.
OPENROUTER_BASE_URL OpenRouter API Base URL of the OpenRouter API (boot-validated against internal hosts in prod).
SUPACLOUD_OAUTH_OPENROUTER_KEYS_URL OpenRouter keys endpoint Override of the key-exchange URL the OpenRouter connect flow calls.
PROMPT_ASSIST_STT_MODEL provider default Speech-to-text model for voice input.
MODEL_CATALOG_REFRESH_HOURS 24 Refresh interval of the live model catalog, 1 to 720 hours.
SUPACLOUD_USAGE_READER_MAINTENANCE_INTERVAL_SECS 3600 Cadence of the usage hygiene sweep (expired legacy windows and seed reconciliation). It reads no provider; the reader intervals are the SUPACLOUD_USAGE_READER_* settings in the generated reference below.
Variable Default Purpose
SUPACLOUD_SCRIPT_RUNTIME_DIR built-in path Absolute directory holding the JS/TS/Python script-runtime components.
SUPACLOUD_CONNECTOR_RUNTIME_DIR built-in path Absolute directory holding the provisioned connector components the marketplace seeder embeds.
SUPACLOUD_SCRIPT_WARM_COMPILE off 1/true/yes/on pre-compiles the script interpreters at boot. A latency knob only.
SUPACLOUD_CODE_PYTHON_IMAGE built-in image Container image for Python workflow code nodes.
SUPACLOUD_MARKETPLACE_AUTO_UPDATE_INTERVAL_SECS 3600 How often installed marketplace listings are checked for auto-updates. 0 turns it off.
SUPACLOUD_DOCS_DIR /app/docs Absolute path of the docs corpus the docs.* MCP tools serve.
SUPACLOUD_RUNNER_PICKUP_SECS 120 Hub: how long a dispatched run may wait for a runner to pick it up before it is re-queued. Values below 60 are raised to 60.
Variable Default Purpose
SUPACLOUD_SMTP_HOST — Instance SMTP host for system mail (verification, invites) when no system SMTP resource exists.
SUPACLOUD_SMTP_PORT — Instance SMTP port.
SUPACLOUD_SMTP_USE_TLS — Implicit TLS for the instance SMTP connection.
SUPACLOUD_SMTP_STARTTLS — STARTTLS for the instance SMTP connection.
SUPACLOUD_SMTP_USERNAME — Instance SMTP user name (the password is SUPACLOUD_SMTP_PASSWORD).
SUPACLOUD_SYSTEM_SMTP_RESOURCE system Name of the SMTP resource preferred for system mail.
SUPACLOUD_EMAIL_BASE_DOMAIN sc.example.tech Domain of the inbound email trigger addresses.
SUPACLOUD_FORUM_TOPIC_DELETE_HOURS 24 Hours after a task finishes before its Telegram forum topic is deleted. 0, a negative value or a non-number turns auto-delete off.
STRIPE_API_BASE https://api.stripe.com/v1 Stripe API base URL (boot-validated against internal hosts in prod).
STRIPE_LIVE_MODE — Truthy marks the Stripe keys as live keys.
STRIPE_LIVEMODE — Alias of STRIPE_LIVE_MODE.
STRIPE_SIGNATURE_TOLERANCE_SECS 300 Accepted age of a Stripe webhook signature, in seconds.
BW_FINTS_DEBTOR_IBAN_FINGERPRINT — Marketplace payouts: fingerprint of the debtor IBAN the FinTS payout submission must match.
BW_FINTS_TAN_METHOD — Marketplace payouts: FinTS TAN method to use.

Opt-in; off by default. See Set up a runner securely and Steer & monitor runners.

Variable Default Purpose
SUPACLOUD_HUB_MODE false Enable dispatch to remote runners. While false, every task runs locally regardless of registered runners.
SUPACLOUD_RUNNER_GRPC_ADDR 127.0.0.1:50061 Listen address of the runner gRPC transport (hub mode only). Loopback by default: this socket carries runner tokens and per-run secrets. A fleet on other hosts sets a reachable address and must then also configure TLS or the explicit cleartext opt-in below. In hub mode an address the server cannot bind (for example one a second replica already holds) stops the server at boot; give every replica its own address.
SUPACLOUD_RUNNER_GRPC_TLS_CERT — Path to the PEM certificate chain that serves the runner gRPC transport over TLS. Requires SUPACLOUD_RUNNER_GRPC_TLS_KEY; setting one without the other refuses to start.
SUPACLOUD_RUNNER_GRPC_TLS_KEY — Path to the PEM private key for SUPACLOUD_RUNNER_GRPC_TLS_CERT.
SUPACLOUD_RUNNER_GRPC_TLS_CLIENT_CA — Path to a PEM CA bundle. When set, the runner gRPC listener requires a client certificate signed by this CA (mTLS) in addition to the runner bearer token.
SUPACLOUD_RUNNER_GRPC_INSECURE_H2C false The single explicit opt-out: permit cleartext HTTP/2 on a non-loopback runner gRPC address, for a fleet on a private tailnet. A public fleet serves TLS at the hub and its ingress passes TCP/TLS through. Without it, a non-loopback cleartext bind refuses to start.
SUPACLOUD_AGENT_EXECUTION — fleet_only runs agents only on remote runners. When no eligible runner takes a task, it is queued for the fleet under the placement policy’s queue deadline instead of starting a container on the hub; with hub mode off, the launch is refused with no_eligible_runner. To also drop the hub’s Docker socket, set SUPACLOUD_DOCKER=off.
SUPACLOUD_DOCKER on off runs the hub without a Docker daemon, so its container needs no /var/run/docker.sock mount. The boot accepts off only together with SUPACLOUD_HUB_MODE=true and SUPACLOUD_AGENT_EXECUTION=fleet_only, and refuses it while SUPACLOUD_CONNECTOR_EXECUTOR_MODE=pooled or SUPACLOUD_RUNNER_AUTOSCALE=on is set. With off, agents, App builds and connectors run on the fleet, and so do code nodes without resource bindings and project image builds unless their placement is set to hub (which off refuses). Any value other than on or off refuses the boot. See ADR 0084 and ADR 0086.
SUPACLOUD_CODE_NODE_PLACEMENT follows SUPACLOUD_DOCKER hub runs a workflow code node without resource bindings in a hermetic container on this host’s Docker daemon; fleet hands it to a runner that has capabilities.code_hermetic=true, a non-marketplace docker/both grant covering the workspace and SUPACLOUD_RUNNER_JOBS containing code_hermetic. Unset means hub with SUPACLOUD_DOCKER=on and fleet with off. fleet needs SUPACLOUD_HUB_MODE=true; hub with SUPACLOUD_DOCKER=off and any other value refuse the boot. A fleet node never falls back to the hub: with no eligible runner its attempt fails with no_eligible_runner. See ADR 0086.
SUPACLOUD_PROJECT_IMAGE_BUILD_PLACEMENT follows SUPACLOUD_DOCKER hub builds project images with this host’s docker buildx; fleet hands the build to a trusted runner with capabilities.image_build=true and SUPACLOUD_RUNNER_JOBS containing image_build (the hub still clones and generates the Dockerfile). Same defaults and boot refusals as SUPACLOUD_CODE_NODE_PLACEMENT; with no eligible runner a build request answers 409. See ADR 0086.
SUPACLOUD_PROJECT_IMAGE_PREFIX value of AGENT_IMAGE_PREFIX Registry namespace project images are tagged and pushed under; the generated Dockerfile’s FROM keeps AGENT_IMAGE_PREFIX. Set it, together with SUPACLOUD_PROJECT_IMAGE_REGISTRY_SOURCE=dedicated, to push fleet-built images with a credential that can write only this namespace. A fleet build is refused while no registry is configured (an image built on a runner must be pushed).
SUPACLOUD_PROJECT_IMAGE_REGISTRY_SOURCE instance Which credential the hub hands a runner for the push of a project image: instance reads OpenBao supacloud/registry (with its env fallback), dedicated reads supacloud/registry-project-builds (fields docker_user, docker_password, registry_url), and without a vault session the env fallback SUPACLOUD_PROJECT_BUILD_REGISTRY_USER / _PASSWORD / _URL (#1558). The credential is injected into the claim, never stored, and must name the image’s registry host. The same value picks the read identity runners pull project images with (see SUPACLOUD_PROJECT_PULL_REGISTRY_USER). Any other value refuses the boot. See ADR 0086.
SUPACLOUD_PROJECT_PULL_REGISTRY_USER / SUPACLOUD_PROJECT_PULL_REGISTRY_PASSWORD / SUPACLOUD_PROJECT_PULL_REGISTRY_URL empty The read identity a runner pulls a project image with when a dispatched task runs it (#1559). With SUPACLOUD_PROJECT_IMAGE_REGISTRY_SOURCE=instance the runner pulls with the instance credential; with dedicated the hub reads OpenBao supacloud/registry-project-pulls (fields docker_user, docker_password, registry_url), and without a vault session these env vars. There is no fallback onto the push credential. The credential is injected into the claim, never stored, handed only to a trusted, non-marketplace runner grant, and used only for an image on the host it names; without it a runner runs a project image only when the image is already present.
SUPACLOUD_INSTANCE_ID hostname This server’s stable identity. Every container it starts carries the label supacloud.instance=hub@<id> (runner@<id> on a runner), and the clean-up at boot and on shutdown removes only containers with its own label, so two servers or a server and a runner can share one Docker daemon. Keep it stable across restarts of the same replica. Containers started before this label existed are not removed automatically.
SUPACLOUD_HUB_EVENT_RELAY false Relay realtime hub events across server replicas over Postgres LISTEN/NOTIFY, so a WebSocket client on any replica receives a signal emitted on another. Gate, approval, question and terminal events plus low-rate board and badge signals are relayed, in batches (an event too large for one NOTIFY payload travels by reference through the short-lived hub_relay_payloads table); per-token message deltas, container logs and tool telemetry stay on the replica that produced them, where a client repairs a gap from the persisted event log. Enable only when running multiple server replicas; a single replica is unaffected. See Live delivery across replicas.
SUPACLOUD_HUB_REPLICAS 1 How many server replicas run behind the load balancer. The per-IP /api rate limits (the strict tier, the read and write tiers for requests that carry a credential, and the auth tier) live in each process, so every replica enforces its share: the sustained rate and the burst divided by this number, never below one request. Without it, N replicas together admit N times the limit. Above 1, Telegram and Discord live mode also read each follow’s persisted events after its cursor on every flush tick when no local live event arrived, because the hub broadcast of a run reaches only the replica that ingested it. Set it to the replica count of the deployment; a single replica keeps 1.
SUPACLOUD_API_RATE_STRICT_RPS / _STRICT_BURST, SUPACLOUD_API_RATE_READ_RPS / _READ_BURST, SUPACLOUD_API_RATE_WRITE_RPS / _WRITE_BURST 5 / 200, 25 / 600, 25 / 600 The sizes of the per-IP /api rate tiers: the sustained requests per second and the burst, for the whole deployment. The strict tier counts every request without a credential, the read tier GET/HEAD requests that carry one, the write tier POST/PUT/PATCH/DELETE requests that carry one. The unauthenticated root routes (webhooks, probes, metrics) count a mutation against the strict tier whatever it carries. A value is a whole number from 1; the rate goes up to 1000000. The server reads the values when it starts, so a change takes effect with a restart of the server process and needs no new image. A value that is not such a number keeps the built-in size, and the server names it in a warning at start. The line per-IP API rate tiers in the server log states the sizes in force. One artifact publication of 51 files is 155 write requests within seconds, and every agent session behind one address shares one bucket: raise SUPACLOUD_API_RATE_WRITE_BURST when publications are refused with 429. The auth tier (sign-in, registration, the MCP OAuth client endpoints) has no setting.
SUPACLOUD_RUNNER_STALE_SECS 90 Heartbeat staleness window before a runner is marked offline: its un-started work returns to the queue for another eligible runner, and its started work fails with runner went offline mid-run. Floor 45. After a restart the sweep also waits for SUPACLOUD_LIVENESS_BOOT_GRACE_SECONDS (see Restart and deploy safety).
SUPACLOUD_TLS_CERT_PATH — PEM server-certificate path. Set together with SUPACLOUD_TLS_KEY_PATH to serve the hub over TLS directly (rather than terminating TLS at a proxy). Supplying one without the other is a hard boot error (fail-closed). Unset (both) ⇒ plain HTTP exactly as today (byte-identical default).
SUPACLOUD_TLS_KEY_PATH — PEM private-key path, the key half of SUPACLOUD_TLS_CERT_PATH.
SUPACLOUD_TLS_CLIENT_CA_PATH — PEM CA bundle. When set (TLS must already be on) the hub additionally requires and verifies a client certificate on every connection — mutual TLS (mTLS). A runner without a trusted client cert is rejected at the handshake. Setting this without SUPACLOUD_TLS_CERT_PATH/_KEY_PATH is a hard boot error. See Set up a runner securely.

/install-runner.sh and /install-runner.ps1 are the public entry points the web wizard hands the operator. The hub does not carry the installer body: it redirects to the published, stamped installer on the release feed (runner-release.yml publishes it, version-keyed, on the public bw-public package feed). Both values are non-secret.

Variable Default Purpose
SUPACLOUD_RUNNER_VERSION — Release version the hub points at: <download base>/<version>/install-runner.{sh,ps1}. Required — unset, the entry points answer 503.
SUPACLOUD_RUNNER_DOWNLOAD_BASE — Base URL of the release feed, e.g. https://git.blockworx.tech/api/packages/bw-public/generic/supacloud-runner. Required — unset, the entry points answer 503. Must be https://; plain http:// is accepted only with MODE=dev, any other value counts as unset.

The published, stamped installer + the release binaries come from the Forgejo release pipeline (ADR 0046), not from this server. Until the release channel is configured, onboard from the Docker image or a self-built binary.

Autoscaler (experimental, local-Docker only in v1)

Section titled “Autoscaler (experimental, local-Docker only in v1)”

Off by default. When off, no background loop is spawned and dispatch is unchanged. See Steer & monitor runners.

Variable Default Purpose
SUPACLOUD_RUNNER_AUTOSCALE off off or on. When on, the hub runs a built-in autoscaler loop that spawns and scales-in local-Docker runner containers from the fleet pull-queue signal. Default off ⇒ no loop, no behaviour change.
SUPACLOUD_RUNNER_AUTOSCALE_MIN — Floor on the live runner count the autoscaler maintains.
SUPACLOUD_RUNNER_AUTOSCALE_MAX — Ceiling on the runner count the autoscaler may spawn.
SUPACLOUD_RUNNER_AUTOSCALE_RUNNER_IMAGE — The container image the autoscaler launches for each new runner. Required when autoscale is on. The autoscaler also needs a runner token to hand the spawned container (see the how-to).
SUPACLOUD_RUNNER_AUTOSCALE_COOLDOWN_SECS — Minimum seconds between scale actions, damping flapping.
SUPACLOUD_RUNNER_AUTOSCALE_NETWORK supacloud-agents Docker network the autoscaler attaches each spawned runner container to.

On the runner (worker node, --runner mode)

Section titled “On the runner (worker node, --runner mode)”
Variable Default Purpose
SUPACLOUD_HUB_URL — Required. The hub base URL. Must be https:// unless the insecure flag below is set.
SUPACLOUD_RUNNER_TOKEN — The scrn_… bearer token from a system-admin registration (shown once). Provide either this or SUPACLOUD_RUNNER_ENROLLMENT_TOKEN.
SUPACLOUD_RUNNER_ENROLLMENT_TOKEN — The one-time enrollment token the runner itself redeems on boot (over the gRPC ExchangeToken RPC) for a scoped, short-lived scrnj_… JWT (then auto-refreshes). Used for third-party onboarding — see Set up a runner securely. The token is single-use and consumed on first exchange; provide EITHER this OR SUPACLOUD_RUNNER_TOKEN, never both.
SUPACLOUD_RUNNER_LABELS — Advertised capability labels, comma/space separated (folded lowercase + deduped). Sent as capabilities.labels at enrollment, so a task’s config.runner.required_labels can route to this runner. The runner’s backends/isolation capabilities are derived from SUPACLOUD_RUNNER_EXECUTION_BACKEND, never set here.
SUPACLOUD_RUNNER_JOBS — Runner job kinds this host runs a job loop for, comma/space separated: code_hermetic (workflow code nodes without resource bindings, at most 4 at a time), image_build (project image builds, one at a time) and artifact_render (artifact exports to PDF, PNG, PPTX, DOCX and motion video, one at a time, each in a network-less container of the unified agent image with 2 GiB memory and 2 CPUs), and live_session (one live review session with its relay, hosted through this host’s guard, one at a time: the session container joins this host’s live network and the relay is created/verified from this host’s own policy). Empty (the default) runs no job loop. Needs SUPACLOUD_RUNNER_EXECUTION_BACKEND=docker (the jobs run on this host’s own Docker daemon); image_build also needs docker buildx version to succeed at boot. The hub hands a job only to a runner whose capabilities.<kind> is true and whose grant covers the workspace (image_build and live_session: a trusted grant). With no such runner for artifact_render, every export request is refused with no_eligible_runner; with none for live_session, opening a live session is refused the same way. See ADR 0086.
SUPACLOUD_RUNNER_TOKEN_FILE $XDG_STATE_HOME/supacloud-runner/runner-token (fallback $HOME/.local/state/…; %LOCALAPPDATA%\supacloud\runner-token on Windows) Path of the file the runner persists its scoped scrnj_… JWT to, and reads back on boot. The enrollment token is single-use, so without this file a reboot would leave an enrolled runner with no credential. Written atomically with mode 0600; read before any exchange, so a valid file means no second ExchangeToken. An expired, malformed, or group/world-readable file is discarded and the runner re-enrols. The installers set this explicitly (runner-token under the runner’s state directory — /var/lib/supacloud-runner as root). Ignored for a static scrn_… token, which never expires. See Set up a runner securely.
SUPACLOUD_RUNNER_TOKEN_REFRESH_SECS 0 For an enrolled (scrnj_… JWT) runner only: how many seconds before expiry to re-exchange the JWT. 0 (the default) derives the cadence automatically — roughly half the token TTL (from runners.token_expires_at / the JWT exp) — so the daemon refreshes well before the token lapses. A static scrn_… token never expires and is never refreshed; this variable is a no-op for it.
SUPACLOUD_RUNNER_NAME supacloud-runner Display name reported to the hub (unset/blank defaults to this).
SUPACLOUD_RUNNER_HEARTBEAT_SECS 30 How often the runner heartbeats the hub.
SUPACLOUD_RUNNER_POLL_SECS 3 How often the runner polls for claimable work.
SUPACLOUD_RUNNER_RELAY_SPOOL_DIR relay-spool beside the runner token file (no fallback) Directory of the runner’s durable relay spool. Every event the runner relays from an agent container is redacted with the run’s own secret values, written here (and flushed to disk) before it is sent, and stays until the hub has accepted it. The runner retries for as long as it runs and resumes from the spool after a restart, so a hub restart, a hub replica switch or a blue-green cutover costs latency, not events. The directory must not be a symlink and must belong to the runner’s user; it is created (or reset) with mode 0700 and its files with 0600. On Windows the directory must lie inside the runner user’s %LOCALAPPDATA% (the default does), because that is the one location whose inherited ACL is owner-only. When no state directory is known, or the directory is refused or unwritable, the runner logs a warning and boots without a spool: each batch is then sent once, directly.
SUPACLOUD_RUNNER_RELAY_SPOOL_MAX_MB 256 Disk ceiling of the relay spool, in MiB. At the ceiling the runner stops recording non-terminal events: each refusal is logged at ERROR and counted, the run’s own log gets a gap-marker line naming how many events are missing, and the hub counts them in supacloud_runner_relay_events_total with outcome lost_runner_spool_full. A run’s terminal event is always recorded.
SUPACLOUD_RUNNER_RELAY_SPOOL_MAX_AGE_HOURS 72 How long a spool segment may wait for the hub. Past it, its undelivered events are discarded loudly: logged at ERROR and counted, and an expiry-marker line in the run’s log names how many are missing; the hub counts them in supacloud_runner_relay_events_total with outcome lost_runner_spool_expired.
SUPACLOUD_RUNNER_ALLOW_INSECURE_TRANSPORT false Permit a plaintext http:// hub URL. Only on a trusted private network — the token and per-run secrets cross this channel.
AGENT_NETWORK supacloud-agents Docker network the runner puts agent containers on (must exist on the worker).
SUPACLOUD_RUNNER_EXECUTION_BACKEND docker How the runner runs a claimed task: docker (local Docker, the default), ssh-docker (remote Docker over SSH), raw-ssh-exec (degraded, unsandboxed remote process) or microvm (strongest isolation — one launcher-spawned microVM per task). The SSH backends need a binary built with the ssh-backends feature; microvm needs one built with the microvm-backend feature. Selecting a backend whose feature was not compiled in is a hard boot error (fail-closed). See SSH execution backends and Set up a runner securely.
SUPACLOUD_RUNNER_MICROVM_CMD — microvm backend only: the operator-provisioned launcher command SupaCloud invokes to start the per-task microVM (e.g. a Firecracker/Kata wrapper). Required when SUPACLOUD_RUNNER_EXECUTION_BACKEND=microvm — the runner image ships no microVM launcher.
SUPACLOUD_RUNNER_TLS_CLIENT_CERT_PATH — PEM client-certificate path. Set together with SUPACLOUD_RUNNER_TLS_CLIENT_KEY_PATH so the runner presents a client identity to a hub that requires mTLS. Supplying one without the other is a hard boot error. Unset ⇒ current one-way-TLS behaviour.
SUPACLOUD_RUNNER_TLS_CLIENT_KEY_PATH — PEM private-key path, the key half of SUPACLOUD_RUNNER_TLS_CLIENT_CERT_PATH.
SUPACLOUD_RUNNER_TLS_CA_PATH — PEM CA bundle the runner uses to pin the hub’s certificate (rather than the system trust store). Optional; unset ⇒ current behaviour.
SUPACLOUD_SSH_HOST — ssh://user@host:port — the SSH endpoint for either SSH backend. Required for ssh-docker/raw-ssh-exec.
SUPACLOUD_SSH_KNOWN_HOSTS — Path to a pinned known_hosts file. Required for either SSH backend; the runner refuses to start if it is missing or empty. For raw-ssh-exec this IS the in-code anchor (russh rejects an unknown/mismatched key — no TOFU). For ssh-docker SupaCloud cannot wire it through bollard — it is only a typo-guard; you must point your system ssh client at it and set SUPACLOUD_SSH_DOCKER_HOSTKEY_DELEGATED.
SUPACLOUD_SSH_DOCKER_HOSTKEY_DELEGATED false ssh-docker only — required. Explicit acknowledgment that SSH host-key verification is delegated to the system ssh client (SupaCloud cannot enforce the pin through bollard). Selecting ssh-docker without this truthy flag is a hard boot error — otherwise an unknown host key would be silently accepted (accept-new TOFU). Set it only after configuring the runner host’s ssh with StrictHostKeyChecking=yes + UserKnownHostsFile=<SUPACLOUD_SSH_KNOWN_HOSTS>.
SUPACLOUD_SSH_KEY_PATH — Path to the SSH private key file. Required for raw-ssh-exec (key auth only, no agent forwarding); optional for ssh-docker. The key bytes are never logged.
SUPACLOUD_RUNNER_ALLOW_UNSANDBOXED false GATE 1 for raw-ssh-exec. Selecting that backend without this truthy flag is a hard boot error — it runs the agent with NO container isolation and NO resource caps.
SUPACLOUD_SSH_EXEC_AGENT_CMD — raw-ssh-exec only: the operator-curated remote agent-launch command template ({image}/{agent_type} placeholders, shell-quoted). Required — the work payload carries no agent entrypoint.
SUPACLOUD_SSH_INSECURE_HOST_KEY false raw-ssh-exec only: disable host-key verification (accept any server key). The only escape from fail-closed host-key checking; logs a loud warning. Never on an untrusted network.

Secret rotation (configured workflow dispatch)

Section titled “Secret rotation (configured workflow dispatch)”

SupaCloud never rotates a secret itself. When a register entry is due, the rotation tick dispatches the operator-configured provider workflow (phase=rotate); the provider produces the ciphertext and owns the authority to open its PR. The tick runs only when SUPACLOUD_SECRET_ROTATION_ENABLED=true and the operator switch secret_rotation is on; both are off by default. Every variable below is required except the ticket. While one is missing or malformed, the tick logs which one (for example dispatch credential not configured) and dispatches nothing.

Variable Default Purpose
SUPACLOUD_SECRET_ROTATION_DISPATCH_TOKEN — Forgejo token that may dispatch the workflow, nothing more (secret). Read from the environment, else from the OpenBao supacloud/app map under the same name.
SUPACLOUD_SECRET_ROTATION_FORGEJO_URL — Base URL of the Forgejo hosting the configured workflow, for example https://git.example. Must be https in production; internal hosts are refused at boot and at request time.
SUPACLOUD_SECRET_ROTATION_WORKFLOW_REPO — Explicit owner/repo hosting the workflow. No repository default.
SUPACLOUD_SECRET_ROTATION_WORKFLOW_FILE — Exact workflow filename; paths and URL delimiters are refused.
SUPACLOUD_SECRET_ROTATION_WORKFLOW_REF — Explicit branch or tag, such as main or release/v2.
SUPACLOUD_SECRET_ROTATION_ALLOWED_SECRETS — Comma-separated, case-sensitive workflow choice names. Empty, malformed or duplicate choices refuse configuration. Values belong in the operator’s deployment configuration.
SUPACLOUD_SECRET_ROTATION_WORKSPACE_ID — The only workspace whose register entries can dispatch the workflow. Entries of other workspaces are never read by the tick.
SUPACLOUD_SECRET_ROTATION_DISPATCH_MAP — Which register key rotates which workflow secret, and where: KEY=secret@stage or KEY=secret@prod, comma-separated. secret must be an exact member of SUPACLOUD_SECRET_ROTATION_ALLOWED_SECRETS. An entry without a mapping is refused, never guessed.
SUPACLOUD_SECRET_ROTATION_TICKET — Optional owner/repo#number the workflow reports its PR to.

One pass dispatches at most one rotation, and a workspace waits 24 hours between two dispatches: the workflow edits one SOPS file per run, so two open rotation PRs would conflict. A dispatch claims the entry’s due window first, so a retried tick never dispatches it twice; a refused dispatch releases the claim and is retried on the next tick. Every attempt writes an audit event secret_rotation.dispatch (actor system) with its outcome. The close-window phase is not started by SupaCloud: run it in the configured provider once the window has passed.

An opt-in pilot. With SUPACLOUD_REALTIME_PILOT=true the server relays its realtime events to a Centrifugo cluster and starts an internal proxy listener that cluster calls back. Unset or false keeps the built-in WebSocket transport unchanged. Once the pilot is on, the other five variables are required: the server refuses to start when one is missing or malformed. Browsers reach the cluster under the instance’s own origin (PUBLIC_URL, paths /connection/websocket, /connection/http_stream and /connection/emulation), so the reverse proxy has to route those paths to the cluster. The relay is part of the server only when it is built with the Cargo feature realtime-centrifugo (the published images are). A server built without it, such as the open-source build (--no-default-features), refuses to start when SUPACLOUD_REALTIME_PILOT=true.

Variable Default Purpose
SUPACLOUD_REALTIME_PILOT false true turns the relay and its internal proxy on. Any value other than true or false is a boot error.
REALTIME_CENTRIFUGO_API_URL — HTTP(S) URL of the cluster’s server API. It must not carry credentials, a query or a fragment.
REALTIME_CENTRIFUGO_API_KEY — API key the server presents to the cluster (secret).
SUPACLOUD_REALTIME_PROXY_BIND — Explicit socket address (host:port) the internal proxy listens on. Keep it on a private network: only the cluster calls it.
SUPACLOUD_REALTIME_PROXY_KEY — Shared secret of 32 to 512 bytes the cluster presents to the internal proxy (secret).
REALTIME_VALKEY_BUS_URL — redis:// or rediss:// URL of the shared Valkey bus (secret; it may carry the ACL user and password, never a query or fragment). It holds the per-user limit on realtime credentials: 60 per user per 10 minutes. While the bus does not answer, /api/realtime/bootstrap refuses with 429 and Retry-After instead of minting unmeasured.

This table is generated from the server’s environment-variable registry (sc_env, re-exported as sc_config::env_registry); regenerate it with cargo run -p supacloud-server --bin export_env_reference -- --page ../docs/admin/reference/environment-variables.mdx from server/. It lists every variable the server reads and what happens when it is unset; the sections above explain the variables that need more context. The env_reference_registry test fails when the server reads a variable the registry does not name, when this table differs from the registry, or when an operator-facing registry row is missing from this page or its German counterpart.

Variable Default Purpose
AGENT_CONCURRENCY_WEIGHT_HEAVY built-in Concurrency weight of a heavy-class agent run.
AGENT_IMAGE_DIGEST_<NAME> unset Per-agent image digest pin: AGENT_IMAGE_DIGEST_<AGENT> (a variable family).
AGENT_IMAGE_PREFIX empty Registry/name prefix prepended to agent image references.
AGENT_IMAGE_PREPULL built-in Pull the agent images in the background at boot.
AGENT_IMAGE_PULL_TIMEOUT_SECONDS built-in Timeout of one agent image pull, in seconds.
AGENT_IMAGE_REQUIRE_DIGEST false Refuse an agent image without a digest pin.
AGENT_MCP_ARTIFACT_ACKS_PER_ACTOR_HOUR built-in Hourly form-acknowledgement cap per taskless artifact principal.
AGENT_MCP_ARTIFACT_ACKS_PER_TASK built-in Form-acknowledgement cap per agent task.
AGENT_MCP_ARTIFACT_CAP_LOCK_WAIT_MS built-in How long one capped artifact write waits for its principal’s admission lock, in milliseconds.
AGENT_MCP_ARTIFACT_DOCUMENTS_PER_ACTOR_HOUR built-in Hourly published-document cap per taskless artifact principal.
AGENT_MCP_ARTIFACT_DOCUMENTS_PER_TASK built-in Published-document cap per agent task.
AGENT_MCP_ARTIFACT_EXPORTS_PER_ACTOR_HOUR built-in Hourly export-request cap per taskless artifact principal.
AGENT_MCP_ARTIFACT_EXPORTS_PER_TASK built-in Export-request cap per agent task.
AGENT_MCP_ARTIFACT_REPLIES_PER_ACTOR_HOUR built-in Hourly comment-reply cap per taskless artifact principal.
AGENT_MCP_ARTIFACT_REPLIES_PER_TASK built-in Comment-reply cap per agent task.
AGENT_MCP_ARTIFACT_RESOLVES_PER_ACTOR_HOUR built-in Hourly comment-resolve cap per taskless artifact principal.
AGENT_MCP_ARTIFACT_RESOLVES_PER_TASK built-in Comment-resolve cap per agent task.
AGENT_MCP_ARTIFACT_VERSIONS_PER_ACTOR_HOUR built-in Hourly artifact-version cap per taskless artifact principal.
AGENT_MCP_ARTIFACT_VERSIONS_PER_TASK built-in Artifact-version cap per agent task.
AGENT_MCP_CATALOG_NOTIFY_RETRY_SECS built-in How long a delivered tools/list_changed notification suppresses the next one, in seconds.
AGENT_MCP_CATALOG_SESSIONS built-in Catalog sessions the external MCP gateway remembers per process, so a repeated tools/list_changed notification is suppressed.
AGENT_MCP_CATALOG_SESSION_TTL_SECS built-in How long the external MCP gateway remembers a catalog session, in seconds.
AGENT_MCP_DEFAULT_ALLOWLIST read-only tier MCP allowlist granted to a task without an agent profile.
AGENT_MCP_EXTERNAL_OPS_HOURLY_LIMIT built-in Hourly Ops-tool cap of the external MCP gateway.
AGENT_MCP_PROFILE_DEPLOY_HOURLY_LIMIT built-in Hourly deploy-tool cap per agent profile.
AGENT_MCP_PROFILE_OPS_HOURLY_LIMIT built-in Hourly Ops-tool cap per agent profile.
AGENT_MCP_PROFILE_PROPOSAL_HOURLY_LIMIT built-in Hourly proposal cap per agent profile.
AGENT_MCP_PROFILE_SPAWN_HOURLY_LIMIT built-in Hourly subtask-spawn cap per agent profile.
AGENT_MCP_PROFILE_TASK_SPAWN_HOURLY_LIMIT built-in Hourly task-spawn cap per agent profile.
AGENT_MCP_TOOL_RATE_LIMIT built-in Per-task MCP tool-call rate limit.
AGENT_MCP_VOICE_OPS_DAILY_SHARE_PCT built-in Share of the workspace daily Ops cap voice calls may use, in percent.
AGENT_MCP_WORKSPACE_DEPLOY_DAILY_LIMIT built-in Daily deploy-tool cap per workspace.
AGENT_MCP_WORKSPACE_OPS_DAILY_LIMIT built-in Daily Ops-tool cap per workspace (the instance default).
AGENT_MCP_WORKSPACE_PROPOSAL_DAILY_LIMIT built-in Daily proposal cap per workspace.
AGENT_MCP_WORKSPACE_SPAWN_DAILY_LIMIT built-in Daily subtask-spawn cap per workspace.
AGENT_MCP_WORKSPACE_TASK_SPAWN_DAILY_LIMIT built-in Daily task-spawn cap per workspace.
AGENT_MEMORY_BYTES built-in Memory limit of a standard agent container.
AGENT_MEMORY_BYTES_HEAVY 2x AGENT_MEMORY_BYTES Memory limit of a heavy-class agent container.
AGENT_NANO_CPUS built-in CPU quota (nano-CPUs) of a standard agent container.
AGENT_NANO_CPUS_HEAVY 2x AGENT_NANO_CPUS CPU quota (nano-CPUs) of a heavy-class agent container.
AGENT_NETWORK built-in Docker network agent containers join.
AGENT_PIDS_LIMIT built-in PID limit of an agent container.
AGENT_READ_ONLY_ROOTFS true Run agent containers with a read-only root filesystem.
AGENT_REDIS_IMAGE built-in Image of the per-task Redis sidecar.
AGENT_TASK_TIMEOUT_MINUTES built-in Wall-clock timeout of one agent task.
AGENT_TEST_DB_IMAGE built-in Image of the per-task test database sidecar.
AGENT_TMPFS_HOME_MB built-in Size of the agent home tmpfs, in MiB.
AGENT_TMPFS_RUN_MB built-in Size of the agent /run tmpfs, in MiB.
AGENT_TMPFS_TMP_MB built-in Size of the agent /tmp tmpfs, in MiB.
ANTHROPIC_API_KEY unset Instance-wide Anthropic API key for internal calls (secret).
ANTHROPIC_BASE_URL provider default Anthropic API base URL override.
ANTHROPIC_DEBATE_MODEL built-in Anthropic model of the issue-debate council.
ARTIFICIAL_ANALYSIS_API_KEY unset Artificial Analysis benchmark-source key for model calibration (secret).
AUTH_COOKIE_SECURE built-in Set the Secure flag on the session cookie.
AUTH_JWT_SECRET unset Legacy alias of SUPACLOUD_JWT_SECRET.
AUTH_JWT_SECRET_PREVIOUS unset Legacy alias of SUPACLOUD_JWT_SECRET_PREVIOUS (secret).
AUTH_PROVIDER builtin Authentication provider.
AUTH_PROXY_EMAIL_HEADER built-in Header carrying the user email in proxy auth.
AUTH_PROXY_LOGOUT_URL unset Logout URL of the fronting auth proxy.
AUTH_PROXY_NAME_HEADER built-in Header carrying the display name in proxy auth.
AUTH_PROXY_REQUIRED_HEADER unset Header a proxy-auth request must carry.
AUTH_PROXY_REQUIRED_VALUE unset Value the required proxy header must hold.
AUTH_PROXY_USER_HEADER built-in Header carrying the user id in proxy auth.
AUTH_SESSION_IDLE_MINUTES built-in Sliding idle window of a browser session, in minutes.
AUTH_SESSION_TTL_MINUTES built-in Browser session lifetime, in minutes.
BW_FINTS_DEBTOR_IBAN_FINGERPRINT empty Expected fingerprint of the payout debtor IBAN.
BW_FINTS_TAN_METHOD unset TAN method the FinTS payout worker uses.
BW_FINTS_WORKER_API_KEY unset API key of the FinTS payout worker (secret).
BW_FINTS_WORKER_URL unset Base URL of the FinTS payout worker.
CORS_ALLOWED_ORIGINS built-in Comma-separated CORS origins.
DATABASE_SSL_MODE built-in PostgreSQL TLS mode of the server pool.
DATABASE_URL required PostgreSQL connection URL.
DEFAULT_SSO_ORG unset Organization whose SSO the login page offers by default.
DISCORD_API_BASE_URL Discord default Discord REST API base URL (SSRF-validated).
DISCORD_BOT_TOKEN unset Discord control-bot token; the bot boots only when set (secret).
GEMINI_API_KEY unset Instance-wide Gemini API key (secret).
GEMINI_BASE_URL provider default Gemini API base URL override.
GEMINI_DEBATE_MODEL built-in Gemini model of the issue-debate council.
GOOGLE_OAUTH_CLIENT_SECRET unset Client secret of the Google agent OAuth connect (secret).
GROQ_API_KEY unset Groq key used for speech-to-text (secret).
GROQ_BASE_URL https://api.groq.com/openai/v1 Groq API base URL.
HUGGINGFACE_API_KEY unset Instance-wide Hugging Face API key (secret).
MANAGEMENT_API_TOKEN unset Legacy alias of SUPACLOUD_MANAGEMENT_API_TOKEN.
MANAGEMENT_BOOTSTRAP_EXPIRES_AT unset Legacy alias of SUPACLOUD_MANAGEMENT_BOOTSTRAP_EXPIRES_AT.
MAX_PARALLEL_TASKS_PER_WORKSPACE built-in Concurrent task cap per workspace.
MINIMAX_API_KEY unset Instance-wide MiniMax API key for media generation (secret).
MINIMAX_BASE_URL https://api.minimax.io MiniMax media-generation API base URL (SC-15).
MODE prod Runtime mode (dev or prod).
MODEL_CATALOG_REFRESH_HOURS built-in Refresh interval of the models.dev catalog.
OAUTH_PROACTIVE_REFRESH_WINDOW_HOURS built-in How many hours before expiry an agent OAuth token is refreshed proactively.
OIDC_CLIENT_ID unset OIDC client id.
OIDC_CLIENT_SECRET unset OIDC client secret (secret).
OIDC_ISSUER_URL unset OIDC issuer URL.
OIDC_MFA_ACCEPTED_ACR empty Comma-separated acr values of the OIDC provider that prove MFA, so they satisfy an armed TOTP.
OIDC_PKCE_ENABLED true Use PKCE in the OIDC flow.
OIDC_REDIRECT_URL unset OIDC redirect URL.
OIDC_SCOPES built-in OIDC scopes requested.
OIDC_TOKEN_AUTH_METHOD basic OIDC token-endpoint client auth method.
OPENAI_API_KEY unset Instance-wide OpenAI API key for internal calls (secret).
OPENAI_BASE_URL provider default OpenAI API base URL override.
OPENAI_DEBATE_MODEL built-in OpenAI model of the issue-debate council.
OPENBAO_ADDR VAULT_ADDR, then built-in OpenBao address.
OPENBAO_KV_MOUNT supacloud OpenBao KV-v2 mount this deployment reads and writes.
OPENBAO_ROLE_ID unset OpenBao AppRole role id.
OPENBAO_SECRET_ID unset OpenBao AppRole secret id (secret).
OPENCODE_API_KEY unset Instance-wide OpenCode Go API key (secret).
OPENCODE_GO_BASE_URL https://opencode.ai/inference/go/openai/v1 OpenCode Go API base URL override.
OPENROUTER_API_KEY unset Instance-wide OpenRouter API key (secret).
OPENROUTER_BASE_URL https://openrouter.ai/api/v1 OpenRouter API base URL.
OPENROUTER_DEBATE_MODEL built-in OpenRouter model of the issue-debate council.
PROMPT_ASSIST_STT_MODEL built-in Speech-to-text model for prompt assist.
PROMPT_ASSIST_STT_PROVIDER unset Speech-to-text provider for prompt assist.
PROMPT_ASSIST_UTILITY_MODEL unset Utility model for prompt assist.
PUBLIC_URL derived Public base URL of the instance.
QWEN_API_KEY unset Instance-wide Qwen API key (secret).
QWEN_BASE_URL https://dashscope-intl.aliyuncs.com/compatible-mode/v1 Qwen (DashScope) API base URL override.
QWEN_DEBATE_MODEL built-in Qwen model of the issue-debate council.
REALTIME_CENTRIFUGO_API_KEY unset API key of the Centrifugo cluster the realtime relay publishes to (secret); required when SUPACLOUD_REALTIME_PILOT is true.
REALTIME_CENTRIFUGO_API_URL unset HTTP(S) API URL of the Centrifugo cluster the realtime relay publishes to; required when SUPACLOUD_REALTIME_PILOT is true.
REALTIME_VALKEY_BUS_URL unset redis:// or rediss:// URL of the shared Valkey bus that holds the per-user realtime credential-mint limit (secret: it may carry the ACL password); required when SUPACLOUD_REALTIME_PILOT is true.
RUST_LOG built-in Log filter (tracing env-filter syntax); laid over the vault-library silence.
SECRET_BACKEND auto-detect Secret backend: openbao or env.
SERVER_HOST 0.0.0.0 HTTP listen address.
SERVER_PORT 8080 HTTP listen port.
STRIPE_API_BASE Stripe default Stripe API base URL (SSRF-validated).
STRIPE_LIVEMODE unset Alias of STRIPE_LIVE_MODE.
STRIPE_LIVE_MODE unset Explicit Stripe live-mode flag.
STRIPE_SECRET_KEY unset Stripe secret key (secret).
STRIPE_SIGNATURE_TOLERANCE_SECS built-in Stripe webhook signature clock tolerance.
STRIPE_WEBHOOK_SECRET unset Stripe webhook signing secret (secret).
SUBTASK_MAX_DESCENDANTS_PER_ROOT built-in Subtask descendants per root task.
SUBTASK_MAX_LIFETIME_CHILDREN_PER_PARENT built-in Subtask children a parent may spawn over its lifetime.
SUBTASK_WAIT_MAX_SECONDS built-in Ceiling of one subtask wait call.
SUPACLOUD_AGENT_EXECUTION unset fleet_only runs agents only on remote runners (queued, never on the hub).
SUPACLOUD_AGENT_NETWORK_DB_GUARD built-in Refuse an agent network that can reach the control-plane database.
SUPACLOUD_AGENT_NETWORK_ISOLATION per_task Agent network isolation: per_task or shared.
SUPACLOUD_AGENT_REDIS unset Instance default for the per-task Redis sidecar.
SUPACLOUD_AGENT_TEST_DB unset Instance default for the per-task test database sidecar.
SUPACLOUD_API_RATE_READ_BURST 600 Burst of the per-IP read tier (GET/HEAD with a credential), fleet-wide; takes effect at process start.
SUPACLOUD_API_RATE_READ_RPS 25 Sustained requests per second of the per-IP read tier, fleet-wide.
SUPACLOUD_API_RATE_STRICT_BURST 200 Burst of the per-IP strict tier (every request without a credential), fleet-wide.
SUPACLOUD_API_RATE_STRICT_RPS 5 Sustained requests per second of the per-IP strict tier, fleet-wide.
SUPACLOUD_API_RATE_WRITE_BURST 600 Burst of the per-IP write tier (POST/PUT/PATCH/DELETE with a credential), fleet-wide; one artifact publication of 51 files is 155 requests.
SUPACLOUD_API_RATE_WRITE_RPS 25 Sustained requests per second of the per-IP write tier, fleet-wide.
SUPACLOUD_APPS_BASE_DOMAIN unset Opt-in separate App content domain.
SUPACLOUD_APPS_DATABASE_URL unset Runtime DSN of the built-in App database (secret).
SUPACLOUD_APPS_HOSTED_FRONTEND false Serve hosted App frontends.
SUPACLOUD_APPS_MIGRATOR_DATABASE_URL runtime DSN Migrator DSN of the built-in App database (secret).
SUPACLOUD_APP_UPLOAD_ROOT /var/lib/supacloud/app-uploads App file-upload root directory.
SUPACLOUD_APP_UPLOAD_S3_BUCKET unset Bucket for App uploads, binary App files and App build artifacts on the instance artifact endpoint (#1532; unset = SUPACLOUD_APP_UPLOAD_ROOT).
SUPACLOUD_ARTIFACT_BACKEND built-in Artifact storage backend.
SUPACLOUD_ARTIFACT_DAILY_QUOTA_BYTES built-in Daily artifact quota per workspace.
SUPACLOUD_ARTIFACT_FORM_MAX_ANSWERS_BYTES built-in Most bytes of one artifact form’s answers object (262144 built in, at most 524288).
SUPACLOUD_ARTIFACT_FORM_MAX_FIELDS built-in Most questions one artifact form declares (500 built in, at most 1000).
SUPACLOUD_ARTIFACT_OBSERVER_DATABASE_URL unset Separate least-privileged orphan sweep database login (secret); unset retains orphan candidates.
SUPACLOUD_ARTIFACT_PROVISIONER_DATABASE_URL unset Dedicated operator-only artifact floor provisioner connection (secret); requires SUPERUSER or BYPASSRLS, never used by server boot or ordinary migrations.
SUPACLOUD_ARTIFACT_ROOT built-in Artifact storage root directory.
SUPACLOUD_ARTIFACT_S3_ACCESS_KEY_ID unset Access key id of the instance artifact bucket (with the secret; else read from OpenBao supacloud/app).
SUPACLOUD_ARTIFACT_S3_BUCKET unset Bucket of the instance artifact store (with the endpoint; both or neither).
SUPACLOUD_ARTIFACT_S3_ENDPOINT unset S3 endpoint of the instance artifact store (https in production).
SUPACLOUD_ARTIFACT_S3_REGION us-east-1 Signing region of the instance artifact bucket.
SUPACLOUD_ARTIFACT_S3_SECRET_ACCESS_KEY unset Secret access key of the instance artifact bucket (with the key id; else read from OpenBao supacloud/app).
SUPACLOUD_ARTIFACT_WITNESS_DATABASE_URL unset Separate server-only artifact witness database login (secret); unset disables the witness.
SUPACLOUD_AUDIT_EVENT_RETENTION_DAYS built-in Retention of audit events, in days.
SUPACLOUD_AUTOSCALE_AGE_PRESSURE_SECS 300 Queue age that counts as scaling pressure, in seconds.
SUPACLOUD_AUTOSCALE_MAX_RUNNERS 20 Upper bound of the recommended runner count.
SUPACLOUD_AUTOSCALE_MIN_RUNNERS 0 Lower bound of the recommended runner count.
SUPACLOUD_AUTOSCALE_PER_RUNNER_TARGET 1 Queued runs one runner is sized for.
SUPACLOUD_BACKLOG_CAPTURE_DIR /var/lib/supacloud/captures Visual-verify capture directory.
SUPACLOUD_BACKLOG_PAUSED_SKIP_DETAIL_LIMIT 20 Paused issue-source projects named in one changed backlog-skip summary line (bounded at 200); the rest is a count.
SUPACLOUD_BROWSER_API_URL PUBLIC_URL API URL handed to browsers.
SUPACLOUD_CALIBRATION_BOARDS unset Calibration leaderboard sources.
SUPACLOUD_CALIBRATION_REFRESH_INTERVAL_SECS built-in Cadence of the calibration source-snapshot refresh, in seconds.
SUPACLOUD_CALIBRATION_SWEEP_INTERVAL_SECS 86400 Cadence of the unattended model-chain calibration, in seconds (0 = off).
SUPACLOUD_CALIBRATION_SWEEP_MIN_AGE_SECS sweep interval Minimum age of the last calibration pass before the next, in seconds.
SUPACLOUD_CALIBRATION_TIER_WEIGHTS unset Calibration tier weights.
SUPACLOUD_CAPTCHA_HMAC_SECRET unset HMAC secret of the ALTCHA proof-of-work captcha; enables it (secret).
SUPACLOUD_CAPTCHA_LOGIN_FAILURE_THRESHOLD 3 Failed logins per IP that arm the captcha.
SUPACLOUD_CAPTCHA_MAXNUMBER 100000 Work factor of the captcha puzzle.
SUPACLOUD_CAPTCHA_TTL_SECS built-in Lifetime of a captcha challenge, in seconds.
SUPACLOUD_CAPTURE_SERVE_SECRET unset Signing secret of the capture serve links (secret).
SUPACLOUD_CODE_NODE_PLACEMENT follows SUPACLOUD_DOCKER Where workflow code nodes without resource bindings run: hub (this host’s Docker daemon) or fleet (runners with capabilities.code_hermetic); unset means hub with SUPACLOUD_DOCKER=on and fleet with off.
SUPACLOUD_CODE_PYTHON_IMAGE built-in Image of the workflow Python code node.
SUPACLOUD_COMMENT_IMAGE_MAX_ALLOC_BYTES built-in Decoder allocation cap of one comment image.
SUPACLOUD_COMMENT_IMAGE_MAX_BYTES built-in Byte cap of one comment image (crop or whole); an image never truncates, it re-encodes or refuses.
SUPACLOUD_COMMENT_IMAGE_MAX_CONCURRENT_DECODES built-in How many comment-image decodes may run at once in one process.
SUPACLOUD_COMMENT_IMAGE_MAX_HEIGHT built-in Decoder height limit of a comment image; a taller header is refused before it allocates.
SUPACLOUD_COMMENT_IMAGE_MAX_WIDTH built-in Decoder width limit of a comment image; a wider header is refused before it allocates.
SUPACLOUD_COMMENT_IMAGE_REGION_MAX_PIXELS built-in Area cap of a comment’s cropped region, in pixels (full_resolution lifts it).
SUPACLOUD_COMMENT_IMAGE_WHOLE_MAX_EDGE built-in Longest edge of the downscaled whole image served with a comment.
SUPACLOUD_CONNECTOR_EXECUTOR_AUTH_TOKEN unset Bearer between the hub and the pooled connector executors (secret).
SUPACLOUD_CONNECTOR_EXECUTOR_BIND built-in Bind address of the in-container connector executor server.
SUPACLOUD_CONNECTOR_EXECUTOR_IMAGE unset Image of the pooled connector executors; required in pooled mode.
SUPACLOUD_CONNECTOR_EXECUTOR_MAX_INFLIGHT built-in Concurrent runs per connector executor container.
SUPACLOUD_CONNECTOR_EXECUTOR_MAX_RUNS built-in Runs before a connector executor container is recycled (0 = never).
SUPACLOUD_CONNECTOR_EXECUTOR_MODE in_process Connector placement: in_process, pooled or runner_fleet.
SUPACLOUD_CONNECTOR_EXECUTOR_NETWORK built-in Dedicated Docker network of the connector executors.
SUPACLOUD_CONNECTOR_EXECUTOR_POOL_SIZE built-in Warm connector executor containers kept ready.
SUPACLOUD_CONNECTOR_EXECUTOR_REQUEST_TIMEOUT_SECS built-in How long a connector run waits for a warm executor slot, in seconds.
SUPACLOUD_CONNECTOR_RUNTIME_DIR built-in Directory of the connector Wasm runtimes.
SUPACLOUD_CREDENTIAL_ENCRYPTION_KEY required in prod Credential encryption key, 32 bytes (secret).
SUPACLOUD_DB_ACQUIRE_TIMEOUT_SECS built-in DB pool acquire timeout.
SUPACLOUD_DB_CONNECT_RETRY_BUDGET_SECS 60 Seconds a boot (server or migrate) keeps retrying a transient database connect failure; 0 disables the retry.
SUPACLOUD_DB_IDLE_IN_TRANSACTION_TIMEOUT_MS built-in PostgreSQL idle-in-transaction timeout.
SUPACLOUD_DB_IDLE_TIMEOUT_SECS built-in DB pool idle-connection timeout.
SUPACLOUD_DB_MAX_CONNECTIONS 10 DB pool size.
SUPACLOUD_DB_STATEMENT_TIMEOUT_MS built-in PostgreSQL statement timeout.
SUPACLOUD_DEPENDENCY_REGISTRY_<NAME> public registry Registry mirror base URL of the delivery dependency check: SUPACLOUD_DEPENDENCY_REGISTRY_{NPM,CRATES,PYPI} (a variable family).
SUPACLOUD_DEPLOYMENT_ENVIRONMENT development in dev, production in prod Trusted runtime environment: development, stage or production.
SUPACLOUD_DEPLOYMENT_ID derived from PUBLIC_URL Stable UUID of this deployment (project-authority audience).
SUPACLOUD_DISPATCH_CAP_PER_HOUR built-in Backlog dispatch cap per hour.
SUPACLOUD_DOCKER on off: the hub holds no Docker daemon (fleet-only hub); boots only with hub mode and fleet_only, any other value than on or off refuses boot.
SUPACLOUD_DOCKER_GUARD_LISTEN built-in Listen socket of the Docker API guard.
SUPACLOUD_DOCKER_GUARD_LIVE_IMAGE the release’s stamped digest Digest-pinned image the Docker guard admits for a live review session. Unset, it is the digest this release built with (SUPACLOUD_LIVE_SESSION_IMAGE_DIGEST, compiled in); an override must still be &lt;path&gt;@sha256:&lt;64 lower-case hex&gt;.
SUPACLOUD_DOCKER_GUARD_LIVE_MEMORY_MAX 4294967296 The most memory (bytes) one live session may request; the guard refuses a larger or missing Memory.
SUPACLOUD_DOCKER_GUARD_LIVE_NANO_CPUS_MAX 2000000000 The most CPU (nano-CPUs) one live session may request; the guard refuses a larger or missing NanoCpus.
SUPACLOUD_DOCKER_GUARD_LIVE_NETWORK supacloud-live The dedicated internal network live review sessions join; its only other member is the egress proxy. It must not also be a general network (the guard refuses to start if it is).
SUPACLOUD_DOCKER_GUARD_LIVE_PIDS_MAX 512 The most processes one live session may request; the guard refuses a larger or missing PidsLimit.
SUPACLOUD_DOCKER_GUARD_LIVE_PROXY http://&lt;relay&gt;:3128 on the live subnet Reviewed forward proxy address a live session may name, exactly http://host:port. Unset, it is the live subnet’s reserved relay address (network + 2) and the shared proxy port, so it follows SUPACLOUD_LIVE_SUBNET.
SUPACLOUD_DOCKER_GUARD_LIVE_TURN_HOST unset The hub’s own public TURN host (the host of PUBLIC_URL), the ONE network alias the live relay’s live-network endpoint may carry so a session’s turn:&lt;host&gt;:3478 resolves to the relay inside the internal live network. The guard compares the body’s single alias against this exact value and refuses a relay create when it is unset (fail closed); a value that is not a plain lowercase DNS name refuses the guard’s boot.
SUPACLOUD_DOCKER_GUARD_NETWORKS built-in Networks a create or connect through the Docker guard may name.
SUPACLOUD_DOCKER_GUARD_NETWORK_PREFIXES built-in Network name prefixes the Docker guard admits (per-task networks).
SUPACLOUD_DOCKER_GUARD_RELAY_CONTROL_NETWORK supacloud-internal Deployment network that carries the server-owned live relay’s control leg. The endpoint takes no static address: Docker’s embedded DNS resolves the relay’s one alias (its container name), so the server dials a name and no address is ever derived or collided with. It must be one of the deployment’s general networks and never the live one.
SUPACLOUD_DOCKER_GUARD_RELAY_IMAGE the image the server itself runs Image the server-owned live-relay container runs. Unset, both the guard and the server resolve it at boot from the image the server container itself runs, so the relay always matches this deployment’s release; an explicit value must be a reference without whitespace.
SUPACLOUD_DOCKER_GUARD_SELF built-in Unlabelled containers the Docker guard lets join a network (the hub).
SUPACLOUD_DOCKER_GUARD_SELF_LABEL unset One exact key=value label that also marks the hub’s container for the Docker guard (Swarm task names); refused on every proxied create.
SUPACLOUD_DOCKER_GUARD_UPSTREAM built-in Docker daemon socket the guard holds.
SUPACLOUD_DOCS_DIR /app/docs Docs corpus directory for the docs MCP tools.
SUPACLOUD_EDITION unset Dev-only edition bypass (MODE=dev only).
SUPACLOUD_EDITION_LICENSE unset Enterprise edition licence token (secret).
SUPACLOUD_EDITION_SECRET unset Secret that verifies the edition licence, at least 32 bytes (secret).
SUPACLOUD_EMAIL_BASE_DOMAIN unset Base domain of inbound email triggers.
SUPACLOUD_EMAIL_MAILBOX_LOCALPART built-in Local part of the inbound email-trigger mailbox address.
SUPACLOUD_EVENT_RETENTION_DAYS built-in Retention of run events, in days.
SUPACLOUD_FORGE_EGRESS_ALLOWLIST empty Internal forges the hub may reach.
SUPACLOUD_FORUM_TOPIC_DELETE_HOURS built-in Age after which Telegram forum topics are deleted.
SUPACLOUD_GLITCHTIP_DSN unset GlitchTip (Sentry-compatible) error-sink DSN (secret).
SUPACLOUD_GLITCHTIP_ENVIRONMENT MODE Environment tag of every GlitchTip event (for example stage); defaults to the MODE.
SUPACLOUD_HUB_AGENT_MEMORY_BUDGET_BYTES unset Memory the hub host may give all agent containers together.
SUPACLOUD_HUB_CONTAINER HOSTNAME The hub’s own container name or id.
SUPACLOUD_HUB_EVENT_RELAY false Relay runner events through the hub.
SUPACLOUD_HUB_INTERNAL_URL derived from the instance id’s host and the hub’s own port This replica’s internal base URL (http(s)://host:port) that a PEER replica dials for the hub-internal live-signal forward. Unset, the peer derives http://&lt;host&gt;:&lt;port&gt; from the owner’s hub@&lt;host&gt;#&lt;process&gt; instance id (the #1468 WP1b registry row) and this hub’s own HTTP port. Set it per replica when those hostnames do not resolve on the private network; with neither, a socket whose runner’s parked stream lives on another replica is refused by name (and counted) instead of guessed.
SUPACLOUD_HUB_MODE false Enable the runner-fleet hub mode.
SUPACLOUD_HUB_REPLICAS 1 Hub replicas behind the load balancer; each enforces 1/N of the per-IP API rate limits (at least one request), and above 1 chat live mode syncs its follows from the event log.
SUPACLOUD_HUB_URL required on a runner Hub URL a runner connects to.
SUPACLOUD_IDENTITY_LOGIN_INTENT_TTL_SECONDS 900 Lifetime of one pending native login intent, in whole seconds from 30 through 3600. A native client’s login wait is bounded by it; the one-use browser transaction that approval creates keeps its own fixed ten-minute window. An invalid value refuses the boot.
SUPACLOUD_IDENTITY_REGISTRATION_PROFILES unset Identity v2 registration profiles (JSON array) the identity provider registration defines; read at use time, served only once the instance admin approves each profile digest.
SUPACLOUD_IDENTITY_RS_<NAME> unset Identity v2 resource-server client credential of one registry handle: SUPACLOUD_IDENTITY_RS_&lt;HANDLE&gt;_CLIENT_ID and _CLIENT_SECRET (secret), read at use time (a variable family).
SUPACLOUD_INFLIGHT_CAP_PER_WORKSPACE built-in In-flight backlog dispatch cap per workspace.
SUPACLOUD_INITIAL_ADMIN_EMAIL unset Alias of SUPACLOUD_INITIAL_ADMIN_EMAILS.
SUPACLOUD_INITIAL_ADMIN_EMAILS required in prod Comma-separated initial instance admins.
SUPACLOUD_INSTANCE_ID HOSTNAME This server’s stable identity: the supacloud.instance container label and the run owner.
SUPACLOUD_JWT_SECRET required Session JWT signing secret, at least 32 bytes (secret).
SUPACLOUD_JWT_SECRET_PREVIOUS unset Previous session root secret, verification only, for a rotation (secret).
SUPACLOUD_LINEAR_OAUTH_CLIENT_ID unset Linear OAuth client id.
SUPACLOUD_LINEAR_OAUTH_CLIENT_SECRET unset Linear OAuth client secret (secret).
SUPACLOUD_LIVENESS_BOOT_GRACE_SECONDS built-in Runner liveness grace after boot.
SUPACLOUD_LIVE_DEFAULTS_TIMEOUT_SECONDS 30 How long installing the live-review defaults (instance relay secret, dedicated live network, relay container) may take before the boot continues without it, in seconds; the bound is floored at 1 and a hung daemon can never hold the server start.
SUPACLOUD_LIVE_RELAY_NEKO_PORT 8080 Live relay sidecar: the Neko port it dials on each session container.
SUPACLOUD_LIVE_RELAY_PROXY_BIND required Live relay sidecar: the forward-proxy listener’s explicit live-network interface address; there is no default and an unspecified address is refused at boot.
SUPACLOUD_LIVE_RELAY_SECRET generated once per instance Shared secret of the live relay, at least 32 bytes (secret); it mints the browser ticket and derives the per-session Neko member password. Unset (and absent from supacloud/app), the server generates 32 random bytes once, stores them encrypted in instance_live_secrets and reads them on every later boot; the value never enters a session container.
SUPACLOUD_LIVE_RELAY_SIGNAL_BIND auto from the server-owned relay Live relay: the signalling and control listener’s bind. auto (the value the server sends) binds the one local IPv4 address outside the live subnet, so the control listener never shares the proxy’s interface; an explicit <ip>:<port> is accepted for an operator who pins one, and an unspecified address is always refused.
SUPACLOUD_LIVE_RELAY_TURN_UPSTREAM required with live TURN The one fixed upstream of the live relay’s TURN forwarder: the HUB’s literal public IPv4, never its DNS name (inside the live network that name is an alias of the relay itself, so resolving it there would loop back into the forwarder’s own listener). The forwarder listens on the relay’s live address at 3478/udp and 3478/tcp and sends only there; a hostname, a port or a non-public address is refused before anything binds.
SUPACLOUD_LIVE_RELAY_URL http://supacloud-live-relay:8081 Internal base URL of the live relay, exactly http(s)://host:port. Unset, the boot step that created the relay container seeded its NAME on the control network (http://supacloud-live-relay:8081), which Docker’s embedded DNS resolves; the URL never carries a derived address.
SUPACLOUD_LIVE_SESSION_ABSOLUTE_SECONDS 3600 Seconds after creation before a live review session ends whatever the input; at least 120 and above the idle limit, else the built-in 600/3600 pair applies and the server says so.
SUPACLOUD_LIVE_SESSION_IDLE_SECONDS 600 Seconds without input before a live review session ends; at least 60, else the built-in 600/3600 pair applies and the server says so.
SUPACLOUD_LIVE_SESSION_INSTANCE_MAX 8 Maximum open live review sessions on this instance (the whole deployment on one database); at least 1, else the built-in 4/8/2 set applies and the server says so.
SUPACLOUD_LIVE_SESSION_PROJECT_EVIDENCE_BYTES 268435456 Live-evidence bytes one project may hold in the rolling 30-day evidence window: the stored size of its live_evidence screenshots, counted once per artifact from the project the ingest stamped on it, so a failure screenshot no comment carries counts too. A start past the bound is refused with live_evidence_quota; below 1048576 falls back to the built-in 256 MiB.
SUPACLOUD_LIVE_SESSION_PROJECT_SESSIONS_24H 20 Live sessions one project may start in a rolling 24-hour window; counted from the document’s project, so a projectless document counts toward no project, and a start that fails counts too. A start past the bound is refused with live_session_quota; below 1 falls back to the built-in 20.
SUPACLOUD_LIVE_SESSION_RETENTION_DAYS 7 Days an ended live review session row is kept before the sweep prunes it; at least 2 (above the 24-hour quota window), else the built-in 7 applies and the server says so. The session’s audit row and its evidence are the durable record and are never pruned with it.
SUPACLOUD_LIVE_SESSION_SHARE_ANONYMOUS_MAX 2 Maximum open live review sessions with an anonymous holder on one share link; at least 1, else the built-in 4/8/2 set applies and the server says so.
SUPACLOUD_LIVE_SESSION_WORKSPACE_MAX 4 Maximum open live review sessions in one workspace (each is a 4 GiB Chromium container); at least 1, else the built-in 4/8/2 set applies and the server says so.
SUPACLOUD_LIVE_SUBNET 172.30.0.0/24 Fixed IPv4 subnet of the dedicated live network: RFC1918-private and not inside 192.168.0.0/16, sized for the instance cap plus the gateway (.1) and the relay (.2); sessions take .3 upward. The guard admits a static session address only inside it. Unset takes the built-in subnet BOTH sides read (sc_live_net::DEFAULT_LIVE_SUBNET); an explicit value that is invalid still refuses with live_subnet_not_configured.
SUPACLOUD_LIVE_TURN_EXTERNAL derived from PUBLIC_URL The public IPv4 the in-process TURN listener advertises in XOR-RELAYED-ADDRESS and accepts as its ONE relay peer. Unset (the normal case), the hub resolves the host of PUBLIC_URL once at boot and takes its ONE public IPv4 (an answer with several distinct public IPv4 addresses is refused, because a browser may reach any of them while the relay forwards to one); set it only to OVERRIDE that choice. A private, link-local, CGNAT or reserved value is refused, and when no public address can be resolved the embedded server does not start and the boot line names why.
SUPACLOUD_LIVE_TURN_LISTEN unset The hub’s own TURN listener, IP:PORT (turn-rs inside the server process). Unset: the embedded server is OFF and live media uses the derived or configured SUPACLOUD_LIVE_TURN_URLS; opening a session then refuses with live_media_not_configured. Set: UDP and TCP bind here, the realm is the host of PUBLIC_URL, and relay ports are virtual on this one server (never published). A non-loopback listener must be port 3478, the port the session’s ICE list names.
SUPACLOUD_LIVE_TURN_SECRET generated once per instance TURN REST shared secret the broker mints one live-session credential from, at least 16 bytes (secret); the value never enters a session container or the browser. Unset, the hub generates 32 random bytes once, stores them encrypted in instance_live_secrets and hands them only to its own in-process TURN listener (turn-rs). Without SUPACLOUD_CREDENTIAL_ENCRYPTION_KEY the hub refuses to store one and every open refuses with live_media_not_configured.
SUPACLOUD_LIVE_TURN_URLS derived from PUBLIC_URL TURN listener URLs placed in each live session’s NEKO_ICESERVERS. Derived from the hub’s own public origin once the TURN secret exists: turn:&lt;hub host&gt;:3478?transport=udp and turn:&lt;hub host&gt;:3478?transport=tcp (the hub serves TURN itself on one port, UDP and TCP; no turns: listener exists). Set it only to front an external TURN server; then the configured secret must be that server’s. Absent derivation makes every open refuse with live_media_not_configured.
SUPACLOUD_LLM_EGRESS_ALLOWLIST empty Internal hosts the server-default LLM base may dial.
SUPACLOUD_LOG_FORMAT text Log output format: text or json (one JSON object per line).
SUPACLOUD_MAILBOX_ADDRESS unset Address of the managed mailbox trigger.
SUPACLOUD_MAILBOX_IMAP_HOST unset IMAP host of the managed mailbox trigger.
SUPACLOUD_MAILBOX_IMAP_PORT 993 IMAP port of the managed mailbox trigger.
SUPACLOUD_MAILBOX_MESSAGES_PER_TICK built-in Messages the managed mailbox reads per poll.
SUPACLOUD_MAILBOX_PASSWORD unset Password of the managed mailbox (secret).
SUPACLOUD_MAILBOX_USERNAME unset User name of the managed mailbox.
SUPACLOUD_MANAGEMENT_API_TOKEN unset Operator bootstrap token of the Management API (secret).
SUPACLOUD_MANAGEMENT_BOOTSTRAP_EXPIRES_AT unset Expiry (RFC 3339) of the management bootstrap token.
SUPACLOUD_MARKETPLACE_AUTO_UPDATE_INTERVAL_SECS built-in Marketplace auto-update interval; 0 disables.
SUPACLOUD_MARKETPLACE_SIGNATURE_SECRET unset Marketplace publisher signing secret (secret).
SUPACLOUD_MCP_CONFIRMATION_SECRET unset HMAC secret of deploy-tier MCP confirmations, at least 32 bytes (secret).
SUPACLOUD_MEMORY_DECAY_INTERVAL_SECS built-in Cadence of the memory decay tick, in seconds.
SUPACLOUD_MEMORY_EMBEDDING_REINDEX_INTERVAL_SECS built-in Cadence of the memory embedding re-index sweep, in seconds.
SUPACLOUD_MEMORY_PIPELINE_INTERVAL_SECS built-in Cadence of the memory pipeline tick, in seconds.
SUPACLOUD_METRICS_TOKEN unset Bearer token guarding /metrics (secret); required when MODE=prod or PUBLIC_URL is not loopback.
SUPACLOUD_MIGRATION_DATABASE_URL DATABASE_URL PostgreSQL URL the migrator (schema owner) connects with; may carry options=-c role=<owner> (secret).
SUPACLOUD_MIGRATION_OWNER_ROLE unset NOLOGIN schema-owner role the migrator assumes with SET ROLE on connect (e.g. supacloud_owner); unset = no SET ROLE.
SUPACLOUD_NAMESPACE_READ_CAPABILITIES [] Operator-only immutable namespace READ bootstrap bindings; exact physical target, protected lock owner, legacy executor, scoped migrator and SELECT-only reader. Requires reviewed external bootstrap/adoption; no credentials or automatic grants.
SUPACLOUD_NAMESPACE_READ_OPERATOR_DATABASE_URL unset Superuser operator connection of the one-shot provision_namespace_read adoption (secret); TCP only, never used by server boot or ordinary migrations.
SUPACLOUD_NOTION_OAUTH_CLIENT_ID unset Notion OAuth client id.
SUPACLOUD_NOTION_OAUTH_CLIENT_SECRET unset Notion OAuth client secret (secret).
SUPACLOUD_OAUTH_ANTHROPIC_PROFILE_URL https://api.anthropic.com/api/oauth/profile Anthropic OAuth profile URL.
SUPACLOUD_OAUTH_ANTHROPIC_TOKEN_URL provider default Anthropic OAuth token URL (SSRF-validated).
SUPACLOUD_OAUTH_COPILOT_CLIENT_ID built-in GitHub Copilot OAuth client id.
SUPACLOUD_OAUTH_COPILOT_DEVICE_CODE_URL https://github.com/login/device/code Copilot device-code URL.
SUPACLOUD_OAUTH_COPILOT_TOKEN_URL https://github.com/login/oauth/access_token Copilot token URL.
SUPACLOUD_OAUTH_GOOGLE_TOKEN_URL provider default Google OAuth token URL (SSRF-validated).
SUPACLOUD_OAUTH_OPENAI_TOKEN_URL provider default OpenAI OAuth token URL (SSRF-validated).
SUPACLOUD_OAUTH_OPENROUTER_KEYS_URL provider default OpenRouter keys URL.
SUPACLOUD_OPERATOR_TOKEN unset Headless operator-console token (secret).
SUPACLOUD_PASSKEY_RP_ID registrable domain of PUBLIC_URL Passkey relying-party ID (#1564, ADR 0087 D6): narrows the default (the eTLD+1 of the PUBLIC_URL host, prod: supacloud.run) to a parent suffix of the host; stage sets stage.supacloud.run so it never shares prod’s RP ID. A wider or foreign value refuses every passkey ceremony.
SUPACLOUD_PROJECT_BUILD_REGISTRY_PASSWORD empty Password of the dedicated project-image push credential (secret); env fallback of vault registry-project-builds, used only without a vault session.
SUPACLOUD_PROJECT_BUILD_REGISTRY_URL empty Registry host of the dedicated project-image push credential; must match the host of SUPACLOUD_PROJECT_IMAGE_PREFIX.
SUPACLOUD_PROJECT_BUILD_REGISTRY_USER empty User of the dedicated project-image push credential; env fallback of vault registry-project-builds, used only without a vault session.
SUPACLOUD_PROJECT_IMAGE_BUILD_PLACEMENT follows SUPACLOUD_DOCKER Where project image builds run: hub (this host’s Docker daemon) or fleet (trusted runners with capabilities.image_build); unset means hub with SUPACLOUD_DOCKER=on and fleet with off.
SUPACLOUD_PROJECT_IMAGE_PREFIX AGENT_IMAGE_PREFIX Registry namespace project images are tagged and pushed under (the Dockerfile FROM keeps AGENT_IMAGE_PREFIX).
SUPACLOUD_PROJECT_IMAGE_REGISTRY_SOURCE instance Which credential pushes a project image built on a runner: instance (vault registry, env fallback) or dedicated (vault registry-project-builds, env fallback SUPACLOUD_PROJECT_BUILD_REGISTRY_); it also picks the identity runners pull project images with (instance, or dedicated vault registry-project-pulls / SUPACLOUD_PROJECT_PULL_REGISTRY_); any other value refuses boot.
SUPACLOUD_PROJECT_PULL_REGISTRY_PASSWORD empty Password of the dedicated project-image pull (read) identity runners pull project images with under SUPACLOUD_PROJECT_IMAGE_REGISTRY_SOURCE=dedicated (secret); env fallback of vault registry-project-pulls, used only without a vault session.
SUPACLOUD_PROJECT_PULL_REGISTRY_URL empty Registry host of the dedicated project-image pull identity; must match the host of SUPACLOUD_PROJECT_IMAGE_PREFIX.
SUPACLOUD_PROJECT_PULL_REGISTRY_USER empty User of the dedicated project-image pull (read) identity; env fallback of vault registry-project-pulls, used only without a vault session; never the push identity.
SUPACLOUD_PROVIDER_BASE_EGRESS_ALLOWLIST empty Internal hosts the other operator-set provider bases may dial.
SUPACLOUD_PROVIDER_PIN_TTL_SECS 3600 Seconds a vetted provider endpoint address stays pinned before it is resolved and vetted again (30-86400, clamped). Logged once at first use.
SUPACLOUD_PUBLIC_VENMAN_FACTS unset Optional server-only public venue facts origin and explicit binding-to-selector registrations; unset disables the adapter.
SUPACLOUD_REALTIME_PILOT false Opt-in switch of the shared realtime relay and its internal proxy: true or false; any other value refuses to boot.
SUPACLOUD_REALTIME_PROXY_BIND unset Explicit socket address the internal realtime proxy listens on; required when SUPACLOUD_REALTIME_PILOT is true.
SUPACLOUD_REALTIME_PROXY_KEY unset Shared secret (32 to 512 bytes) the Centrifugo cluster presents to the internal realtime proxy (secret); required when SUPACLOUD_REALTIME_PILOT is true.
SUPACLOUD_REGISTRY_PASSWORD empty Container registry password (secret).
SUPACLOUD_REGISTRY_URL empty Container registry URL.
SUPACLOUD_REGISTRY_USER empty Container registry user.
SUPACLOUD_RESOURCE_SECRET_RECONCILE_INTERVAL_SECS built-in Cadence of the resource-secret reconcile, in seconds.
SUPACLOUD_RUNNER_ALLOW_INSECURE_TRANSPORT false Let a runner use a plaintext http:// hub URL (trusted private networks only).
SUPACLOUD_RUNNER_ALLOW_UNSANDBOXED false Let a runner use the unsandboxed raw-ssh-exec backend.
SUPACLOUD_RUNNER_AUTOSCALE off Runner autoscaler switch (on enables the loop).
SUPACLOUD_RUNNER_AUTOSCALE_COOLDOWN_SECS built-in Autoscaler cooldown between scaling steps, in seconds.
SUPACLOUD_RUNNER_AUTOSCALE_MAX built-in Most runners the autoscaler keeps.
SUPACLOUD_RUNNER_AUTOSCALE_MIN built-in Fewest runners the autoscaler keeps.
SUPACLOUD_RUNNER_AUTOSCALE_NETWORK unset Docker network of autoscaled runners.
SUPACLOUD_RUNNER_AUTOSCALE_RUNNER_IMAGE unset Image of autoscaled runners.
SUPACLOUD_RUNNER_AUTOSCALE_TOKEN unset Enrollment token autoscaled runners redeem (secret).
SUPACLOUD_RUNNER_CLIENT_CERT_PATH unset Legacy name of SUPACLOUD_RUNNER_TLS_CLIENT_CERT_PATH.
SUPACLOUD_RUNNER_CLIENT_KEY_PATH unset Legacy name of SUPACLOUD_RUNNER_TLS_CLIENT_KEY_PATH.
SUPACLOUD_RUNNER_DOWNLOAD_BASE built-in Download base of the runner installer binaries.
SUPACLOUD_RUNNER_ENROLLMENT_TOKEN unset One-time enrollment token a runner redeems on boot (secret).
SUPACLOUD_RUNNER_EXECUTION_BACKEND docker Runner execution backend: docker, ssh-docker, raw-ssh-exec or microvm.
SUPACLOUD_RUNNER_GRPC_ADDR 127.0.0.1:50061 Listen address of the runner gRPC server.
SUPACLOUD_RUNNER_GRPC_INSECURE_H2C false Allow cleartext h2c on a non-loopback runner gRPC address.
SUPACLOUD_RUNNER_GRPC_PUBLIC_URL unset Runner-facing gRPC URL the install one-liners name.
SUPACLOUD_RUNNER_GRPC_TLS_CERT unset PEM certificate chain of the runner gRPC listener.
SUPACLOUD_RUNNER_GRPC_TLS_CLIENT_CA unset PEM client CA; set, the runner gRPC listener requires mTLS.
SUPACLOUD_RUNNER_GRPC_TLS_KEY unset PEM private key of the runner gRPC listener (secret).
SUPACLOUD_RUNNER_HEARTBEAT_SECS built-in Runner heartbeat interval, in seconds.
SUPACLOUD_RUNNER_HUB_URL unset Hub URL a minted runner token response names for the runner to connect to.
SUPACLOUD_RUNNER_JOBS empty Runner job kinds this runner host runs a job loop for: any of code_hermetic, image_build, artifact_render and live_session (needs the docker execution backend; image_build also needs docker buildx; artifact_render pulls the unified agent image; live_session hosts one live review session and its relay through this host’s guard, one session at a time).
SUPACLOUD_RUNNER_LABELS empty Capability labels a runner advertises.
SUPACLOUD_RUNNER_LONG_POLL_SECS built-in Long-poll hold a runner asks for, in seconds (0 = off).
SUPACLOUD_RUNNER_MICROVM_CMD unset Launcher command of the microVM runner backend.
SUPACLOUD_RUNNER_NAME unset Human label of a runner.
SUPACLOUD_RUNNER_PICKUP_SECS built-in Deadline for a runner to pick up an assignment.
SUPACLOUD_RUNNER_POLL_SECS built-in Runner work poll cadence, in seconds.
SUPACLOUD_RUNNER_RELAY_SPOOL_DIR built-in Directory of a runner’s durable relay spool (default: relay-spool beside the token file).
SUPACLOUD_RUNNER_RELAY_SPOOL_MAX_AGE_HOURS 72 Hours a runner’s relay spool segment may wait for the hub before its events are discarded.
SUPACLOUD_RUNNER_RELAY_SPOOL_MAX_MB 256 Disk ceiling of a runner’s relay spool, in MiB.
SUPACLOUD_RUNNER_STALE_SECS built-in Heartbeat age after which a runner is stale.
SUPACLOUD_RUNNER_TLS_CA_PATH unset PEM CA a runner pins as the only trusted root of the hub.
SUPACLOUD_RUNNER_TLS_CLIENT_CERT_PATH unset PEM client certificate a runner presents to an mTLS hub.
SUPACLOUD_RUNNER_TLS_CLIENT_KEY_PATH unset PEM client key a runner presents to an mTLS hub (secret).
SUPACLOUD_RUNNER_TOKEN unset Static runner bearer token (secret).
SUPACLOUD_RUNNER_TOKEN_FILE built-in File a runner persists its scoped token in.
SUPACLOUD_RUNNER_TOKEN_REFRESH_SECS derived How long before expiry a runner re-exchanges its token, in seconds.
SUPACLOUD_RUNNER_VERSION built-in Runner version offered to installers.
SUPACLOUD_SCRIPT_RUNTIME_DIR built-in Directory of the script Wasm runtimes.
SUPACLOUD_SCRIPT_WARM_COMPILE built-in Precompile the script runtimes at boot.
SUPACLOUD_SECRET_ROTATION_ALLOWED_SECRETS unset Comma-separated exact secret choices admitted by the configured rotation workflow.
SUPACLOUD_SECRET_ROTATION_DISPATCH_MAP unset Register key to configured workflow secret: KEY=secret@stage|prod, comma-separated.
SUPACLOUD_SECRET_ROTATION_DISPATCH_TOKEN unset Forgejo token restricted to dispatching the configured rotation workflow (secret; env or supacloud/app).
SUPACLOUD_SECRET_ROTATION_ENABLED false Enable the secret-rotation register tick.
SUPACLOUD_SECRET_ROTATION_FORGEJO_URL unset Forgejo base URL hosting the configured rotation workflow (https).
SUPACLOUD_SECRET_ROTATION_PROJECT_ID unset Project of the retired review-preparation lane (UUID); the dispatch tick does not read it.
SUPACLOUD_SECRET_ROTATION_TICKET unset Issue the rotation workflow reports its PR to (owner/repo#number).
SUPACLOUD_SECRET_ROTATION_WORKFLOW_FILE unset Configured rotation workflow filename.
SUPACLOUD_SECRET_ROTATION_WORKFLOW_REF unset Configured rotation workflow branch or tag.
SUPACLOUD_SECRET_ROTATION_WORKFLOW_REPO unset Configured rotation workflow repository (owner/repo).
SUPACLOUD_SECRET_ROTATION_WORKSPACE_ID unset The only workspace whose register entries dispatch the rotation workflow (UUID).
SUPACLOUD_SELF_REPO_URLS unset SupaCloud’s own repository URLs (self-hosting detection).
SUPACLOUD_SHUTDOWN_DRAIN_SECONDS built-in Graceful shutdown drain window.
SUPACLOUD_SHUTDOWN_GRACE_SECS 20 Open-request grace in whole seconds, 0 through 3600; larger values refuse startup.
SUPACLOUD_SHUTDOWN_LB_DELAY_SECS 10 Serving window after SIGTERM; whole seconds through 3600, with a 10-second minimum; larger values refuse startup.
SUPACLOUD_SIDE_EFFECTS on Passive drill mode: off starts no background loop with an outside effect, refuses outbound clients and writes; any other value than on or off refuses boot.
SUPACLOUD_SKIP_BOOT_MIGRATIONS false Only verify at boot that every migration is applied; a deploy step migrates.
SUPACLOUD_SLOW_QUERY_LOG_MS built-in Slow-query log threshold.
SUPACLOUD_SMTP_HOST unset System SMTP host.
SUPACLOUD_SMTP_PASSWORD unset SMTP password (secret).
SUPACLOUD_SMTP_PORT unset System SMTP port.
SUPACLOUD_SMTP_STARTTLS unset Use STARTTLS for system SMTP.
SUPACLOUD_SMTP_USERNAME unset System SMTP user.
SUPACLOUD_SMTP_USE_TLS unset Use implicit TLS for system SMTP.
SUPACLOUD_SOCIAL_GITHUB_CLIENT_ID unset GitHub social-login client id.
SUPACLOUD_SOCIAL_GITHUB_CLIENT_SECRET unset GitHub social-login client secret (secret).
SUPACLOUD_SOCIAL_GOOGLE_CLIENT_ID unset Google social-login client id.
SUPACLOUD_SOCIAL_GOOGLE_CLIENT_SECRET unset Google social-login client secret (secret).
SUPACLOUD_SSH_DOCKER_HOSTKEY_DELEGATED false Acknowledge that ssh-docker delegates host-key checks to the ssh client.
SUPACLOUD_SSH_EXEC_AGENT_CMD unset Remote agent launch command of the raw-ssh-exec backend.
SUPACLOUD_SSH_HOST unset SSH endpoint of the SSH runner backends (ssh://user@host:port).
SUPACLOUD_SSH_INSECURE_HOST_KEY false Disable raw-ssh-exec host-key verification (untrusted networks: never).
SUPACLOUD_SSH_KEY_PATH unset SSH private key path of the SSH runner backends.
SUPACLOUD_SSH_KNOWN_HOSTS unset Pinned known_hosts file of the SSH runner backends.
SUPACLOUD_SSO_AUTOREDIRECT unset Force or suppress the SSO auto-redirect.
SUPACLOUD_SYSTEM_SMTP_RESOURCE system Name of the SMTP resource used for system mail.
SUPACLOUD_TLS_CERT_PATH unset TLS certificate of the listener.
SUPACLOUD_TLS_CLIENT_CA_PATH unset Client CA for listener mTLS.
SUPACLOUD_TLS_KEY_PATH unset TLS key of the listener.
SUPACLOUD_TRACKER_LINEAR_API_URL provider default Linear API base URL (SSRF-validated).
SUPACLOUD_TRACKER_LINEAR_TOKEN_URL Linear default Linear OAuth token URL override.
SUPACLOUD_TRACKER_NOTION_API_URL provider default Notion API base URL (SSRF-validated).
SUPACLOUD_TRACKER_NOTION_TOKEN_URL Notion default Notion OAuth token URL override.
SUPACLOUD_TRUSTED_FORWARDING false Trust client-IP forwarding headers for the login-failure counter.
SUPACLOUD_TRUSTED_POSTGRES_RESOURCES [] Operator-only strict JSON resource/IP bindings for private PostgreSQL targets; exact workspace/name/optional existing UUID, target and singleton literal-IP pin; no credentials or hostname exceptions.
SUPACLOUD_TRUSTED_PROXY_CIDRS empty Trusted reverse-proxy CIDRs.
SUPACLOUD_USAGE_FORECAST_HORIZON_SECS 1800 Expected run length of a task, in seconds, for the pre-emptive hand-over off a usage window that would end inside it (0 disables the hand-over; at most 604800). The boot log names the value in force.
SUPACLOUD_USAGE_GOOGLE_CODE_ASSIST_BASE production host Code Assist base the Google usage reader calls; only the two known HTTPS Code Assist hosts are accepted, anything else keeps the pinned production host with a boot warning.
SUPACLOUD_USAGE_READER_BACKDOOR_HIGH_SECS built-in Minimum interval between demand reads of a back-door usage reader above 80 % fill, in seconds.
SUPACLOUD_USAGE_READER_BACKDOOR_LOW_SECS built-in Minimum interval between demand reads of a back-door usage reader below 50 % fill, in seconds.
SUPACLOUD_USAGE_READER_BACKDOOR_MID_SECS built-in Minimum interval between demand reads of a back-door usage reader at 50-80 % fill, in seconds.
SUPACLOUD_USAGE_READER_BACKDOOR_UNCHANGED_CAP_SECS built-in Cap of the doubled interval after repeated unchanged back-door reads, in seconds.
SUPACLOUD_USAGE_READER_BACKOFF_CAP_SECS built-in Upper bound of the usage reader’s failure backoff, in seconds (also caps a provider’s Retry-After).
SUPACLOUD_USAGE_READER_BEFORE_DISPATCH_FLOOR_SECS 300 D4: minimum seconds between two before-dispatch reads of a SHARED (workspace or organisation) credential; the read happens whatever the adaptive schedule says once this floor has passed. Personal credentials keep the schedule.
SUPACLOUD_USAGE_READER_CLAIM_TTL_SECS built-in Lease of the single-flight claim one replica holds while reading a credential; raised above the read timeout when too short.
SUPACLOUD_USAGE_READER_HIGH_BAND_PERCENT built-in Fill percentage above which the shortest usage-reader interval applies (default 80; must be above the low band and at most 100).
SUPACLOUD_USAGE_READER_JITTER_PERCENT built-in Positive jitter added to every adaptive interval, in percent of the interval (0 disables it).
SUPACLOUD_USAGE_READER_LOW_BAND_PERCENT built-in Fill percentage from which the mid usage-reader interval applies (default 50; must be below the high band).
SUPACLOUD_USAGE_READER_MAINTENANCE_INTERVAL_SECS built-in Cadence of the usage HYGIENE lane (stale legacy windows and seed reconciliation); it reads no provider.
SUPACLOUD_USAGE_READER_OFFICIAL_HIGH_SECS built-in Minimum interval between demand reads of an official usage reader above 80 % fill, in seconds.
SUPACLOUD_USAGE_READER_OFFICIAL_LOW_SECS built-in Minimum interval between demand reads of an official usage reader below 50 % fill, in seconds.
SUPACLOUD_USAGE_READER_OFFICIAL_MID_SECS built-in Minimum interval between demand reads of an official usage reader at 50-80 % fill, in seconds.
SUPACLOUD_USAGE_READER_OFFICIAL_UNCHANGED_CAP_SECS built-in Cap of the doubled interval after repeated unchanged official reads, in seconds.
SUPACLOUD_USAGE_READER_READ_TIMEOUT_SECS built-in Timeout of one usage reader request, in seconds.
SUPACLOUD_USAGE_READER_REFRESH_BUDGET_SECS built-in Total time a dispatch decision or refresh request may spend on due reads, in seconds.
SUPACLOUD_USAGE_READING_RETENTION_DAYS 90 Days of provider-usage reading history kept (1-3650); the newest reading per credential and window is always kept. An invalid value falls back to 90 with a boot warning.
SUPACLOUD_WASM_CONCURRENCY 8 Concurrent in-process Wasm runs (1-256).
SUPACLOUD_WORKFLOWS_DATABASE_URL unset Runtime DSN of the built-in workflow database (secret).
SUPACLOUD_WORKFLOWS_MIGRATOR_DATABASE_URL runtime DSN Migrator DSN of the built-in workflow database (secret).
TELEGRAM_API_BASE_URL Telegram default Telegram Bot API base URL.
TELEGRAM_BOT_TOKEN unset Telegram bot token; the bot boots only when set (secret).
TELEGRAM_BOT_USERNAME unset Telegram bot username.
TELEGRAM_FILE_BASE_URL Telegram default Telegram file download base URL.
VAULT_ADDR unset Fallback of OPENBAO_ADDR.
VAULT_TOKEN unset OpenBao token auth (secret).
VERTEX_EXPRESS_BASE_URL https://aiplatform.googleapis.com Vertex AI express-mode base URL of the Lyria music generation (SC-15).
VOICE_GATEWAY_TOKEN unset Token of the voice gateway (secret).