For AI agents: the documentation index is at /docs/interbox/llms.txt. A Markdown version of this page is available at /docs/interbox/reference/environment-variables.md or by requesting it with the Accept: text/markdown header.
Interbox Docs

Environment variables

The environment variables an operator sets on Interbox: the engine, the API and dashboard, the workspace service, the command-line tool and the Docker image. Each row gives the default the code applies, what the variable sets, and the page that explains it. Values that workspace code reads through env() in a pipeline belong to your workspace and are on Env and config, not here.

The Helm chart sets some of them for you. The last section lists the ones where its value differs from the default below.

Database

variabledefaultwhat it setssee
DATABASE_URLnone, requiredthe PostgreSQL connection string of the engine, the API and the migration scriptsDeployment
INTERBOX_DB_BOOTSTRAPpostgresthe maintenance database the start-up script connects to when it creates the target database
INTERBOX_SKIP_ENSURE_DBunsetany non-empty value skips creating the database at start, for a database you created yourselfDeployment
INTERBOX_DB_AUTH_METHODpasswordhow Interbox authenticates to PostgreSQL: password or databricks-autoscaleDatabricks Lakebase
INTERBOX_DB_DATABRICKS_HOSTnonethe Databricks workspace address, required with databricks-autoscaleDatabricks Lakebase
INTERBOX_DB_DATABRICKS_CLIENT_IDnonethe service principal's client id, required with databricks-autoscaleDatabricks Lakebase
INTERBOX_DB_DATABRICKS_CLIENT_SECRETnonethe service principal's secret, required with databricks-autoscaleDatabricks Lakebase
INTERBOX_DB_DATABRICKS_ENDPOINTnonethe Lakebase endpoint to mint credentials for, required with databricks-autoscaleDatabricks Lakebase
FACET_WORK_MEM128MBthe PostgreSQL work_mem of the dashboard's facet queries; a value that is not digits followed by kB, MB or GB uses the defaultSystem requirements

Workspace and workspace service

variabledefaultwhat it setssee
INTERBOX_WORKSPACE_GIT_URLnonethe workspace repository: an https:// or SSH remote, a file: URL or a local pathThe workspace
INTERBOX_WORKSPACE_GIT_REFmainthe branch or tag to run; a branch wins over a tag of the same nameThe workspace
INTERBOX_WORKSPACE_GIT_KEYnonethe credential for a private remote: a token for https://, a PEM or base64 PEM private key for SSHThe workspace
INTERBOX_WORKSPACE_GIT_KEY_PATHnonethe same credential, read from a file; the inline variable wins when both are setThe workspace
INTERBOX_WORKSPACE_SSH_KNOWN_HOSTSnoneinline known_hosts lines for an SSH remote, added to the image's built-in host keysThe workspace
INTERBOX_WORKSPACE_SSH_KNOWN_HOSTS_PATHnonea known_hosts file for an SSH remote; a path that cannot be read fails the cloneThe workspace
INTERBOX_WORKSPACE_MODEclone for a remote URL, else worktreeclone: the workspace service owns a copy it fetches; worktree: it builds a local directory in placeThe workspace
INTERBOX_WORKSPACE_ACCESSreadwhat the dashboard may do to the workspace: read, push or applyThe workspace
INTERBOX_WORKSPACE_POLL_MS30000how often the engine and the workspace service look for a new build or a moved ref, in milliseconds; 0 turns polling offThe workspace
INTERBOX_WORKSPACE_CACHEinterbox-engine in the system temp directorywhere the workspace service keeps its clone and unpacked builds
INTERBOX_WORKSPACE_LINK_SDKunset; the image sets 11 or true runs the workspace against the SDK built into the image; 0 resolves it from the registryNetwork access
INTERBOX_WORKSPACE_SERVICE_URLunsetthe address of the workspace service; unset, the API routes that need it answer 404Operating pipelines
INTERBOX_COMMIT_NAMEinterbox-dashboardthe author name of commits the dashboard makes
INTERBOX_COMMIT_EMAILinterbox-dashboard@users.noreply.github.comthe author email of those commits
WORKSPACE_ACTION_TIMEOUT_MS900000the deadline of one workspace action, in millisecondsThe workspace
WORKSPACE_ACTION_RESULT_MAX_BYTES262144the largest action result kept, in bytes; 0 keeps noneThe workspace

Sign-in and dashboard access

variabledefaultwhat it setssee
INTERBOX_PUBLIC_URLnone, requiredthe origin browsers use to reach the dashboard, with no pathSecuring dashboard access
INTERBOX_AUTH_ENABLEDtruefalse or 0 turns dashboard sign-in offSecuring dashboard access
INTERBOX_AUTH_ADMIN_ENABLEDtruefalse or 0 removes the password account, which needs an OIDC issuerSecuring dashboard access
INTERBOX_AUTH_ADMIN_PASSWORDnonethe password account's password, at least 20 characters; required while that account is onSecuring dashboard access
INTERBOX_AUTH_ISSUERnonethe OIDC issuer URL; set, the dashboard offers sign-in through itSign-in provider examples
INTERBOX_AUTH_CLIENT_IDnonethe client id registered with the issuer; required with an issuerSign-in provider examples
INTERBOX_AUTH_CLIENT_SECRETnonethe client secret registered with the issuerSign-in provider examples
INTERBOX_AUTH_PROVIDER_LABELnonethe provider name on the sign-in button, up to 64 charactersSecuring dashboard access
INTERBOX_AUTH_ALLOWED_EMAILSnonecomma-separated email addresses that may sign in through the issuerSecuring dashboard access
INTERBOX_AUTH_ALLOWED_DOMAINSnonecomma-separated email domains that may sign inSecuring dashboard access
INTERBOX_AUTH_ALLOWED_GROUPSnonecomma-separated provider groups that may sign inSecuring dashboard access
INTERBOX_AUTH_ALLOWED_SUBJECTSnonecomma-separated provider subject ids that may sign inSecuring dashboard access
INTERBOX_AUTH_REQUIRED_CLAIMSnonea JSON object of claims the sign-in must carry, narrowing the rules aboveSecuring dashboard access
INTERBOX_AUTH_ALLOW_INSECURE_HTTPfalsetrue permits plain http for the public URL and the issuer on a private networkSecuring dashboard access
INTERBOX_ALLOWED_ORIGINSnonecomma-separated extra origins the same-origin guard accepts for writesSecuring dashboard access

API

variabledefaultwhat it setssee
API_PORT3001the port of the API and the dashboardNetwork access
INTERBOX_API_READ_TIMEOUT_MS10000the time budget of one dashboard read, in millisecondsOperating pipelines
TERMINOLOGY_URLhttps://tx.fhir.org/r4the terminology server the dashboard queries for LOINCNetwork access
TERMINOLOGY_AUTHnonethe Authorization header value sent to the terminology server, as writtenNetwork access

Sources and webhooks

variabledefaultwhat it setssee
INTERBOX_WEBHOOK_PORT3002the one port every webhook source and pull sender listens on; 0 picks a free portOperating pipelines
WEBHOOK_EGRESS_ALLOWLISTempty, which denies every deliverycomma-separated hosts outbound webhooks may reach, with *. wildcardsWebhooks
WEBHOOK_RETENTION_DAYS30days to keep delivered webhook outbox rows; 0 turns the sweep offWebhooks
WEBHOOK_BLOCK_PRIVATEfalsetrue or 1 also refuses webhook targets on private addressesWebhooks
S3_REGIONAWS_REGION, else the SDK's own lookupthe region of an Amazon S3 file transportAmazon S3
AWS_REGIONnonethe same, when S3_REGION is unsetAmazon S3
S3_ENDPOINT, AWS_ENDPOINTnoneeither one found without an endpoint on the transport fails the transport; set the endpoint on the transport insteadAmazon S3
S3_ACCESS_KEY_IDnonethe access key for credentials: "keys", with S3_SECRET_ACCESS_KEY; AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are the fallbackAmazon S3
S3_SECRET_ACCESS_KEYnonethe secret key that goes with itAmazon S3
AZURE_STORAGE_KEYnonethe account key for an Azure Blob Storage transport with credentials: "key"Azure Blob Storage
AZURE_CLIENT_IDnonethe user-assigned managed identity an Azure transport signs in asAzure Blob Storage
STORAGE_EMULATOR_HOSTnonefound without an endpoint on a Google Cloud Storage transport, it fails the transportGoogle Cloud Storage

The image sets MLLP_HOST (0.0.0.0) and MLLP_PORT (2575) for the workspace's MLLP source, which reads them through env(). Interbox itself does not read them.

Aidbox

variabledefaultwhat it setssee
AIDBOX_URLnonethe Aidbox base URL the dashboard checks for health and licence, and the assistant's Aidbox command readsNetwork access
AIDBOX_PUBLIC_URLderived from AIDBOX_URL and the request's hostthe Aidbox address the dashboard links toNetwork access
AIDBOX_AUTHnonethe Authorization header value of the dashboard's health check
AIDBOX_CLIENT_IDrootthe client the command-line tool's Aidbox query signs in asCLI
AIDBOX_CLIENT_SECRETnonethat client's secret; required with AIDBOX_URL for the queryCLI
INTERBOX_AIDBOX_MAX_BODY_BYTES8388608the largest body of one aidbox() sender requestBuilt-in sources, steps and senders
INTERBOX_AIDBOX_MAX_ENTRIES_PER_REQUESTnonethe most entries in one requestBuilt-in sources, steps and senders
INTERBOX_AIDBOX_CONCURRENCY4requests in flight within one sendBuilt-in sources, steps and senders
INTERBOX_AIDBOX_REQUEST_TIMEOUT_MSnonethe timeout of one request, in millisecondsBuilt-in sources, steps and senders

Logging and instances

variabledefaultwhat it setssee
LOG_LEVELinfothe engine's log level@health-samurai/interbox
NODE_ENVunset; the image sets productionproduction writes JSON log lines; anything else writes pretty ones
INTERBOX_INSTANCE_IDthe host namethe instance's id on the Instances page and in its logsOperating pipelines
INTERBOX_STOP_GRACE_MS10000how long a stop lets started work finish, in millisecondsUpdating the engine

Dashboard assistant

variabledefaultwhat it setssee
CLAUDE_CODE_OAUTH_TOKENnonethe assistant's credential from a Claude subscription
ANTHROPIC_API_KEYnonethe assistant's credential from an API key
ANTHROPIC_AUTH_TOKENnonethe assistant's credential as a bearer token

Licence

variabledefaultwhat it setssee
INTERBOX_LICENSEnonethe licence token; a licence stored by dashboard activation wins over itNetwork access

Command-line tool

variabledefaultwhat it setssee
INTERBOX_API_URLhttp://localhost:3001the API the command-line tool callsCLI
INTERBOX_SERVICE_TOKENnoneset by the dashboard assistant for its own commands; a value you set yourself is rejected with 401Securing dashboard access
INTERBOX_VERSIONnonethe version interbox pin uses when you give noneCLI
INTERBOX_UPSTREAM_URLthe public workspace templatethe upstream repository of interbox workspace commandsCLI

What the Helm chart sets

The chart sets the variables below on its pods. Variables not listed keep the defaults above.

engine variablewhat the chart sets it to (a chart value is in code with its name)engine default
INTERBOX_WORKSPACE_POLL_MS5000, a default you can override under config30000
INTERBOX_WORKSPACE_SERVICE_URLthe workspace service's addressunset
INTERBOX_API_URLhttp://localhost:<apiPort>, for the assistant's toolhttp://localhost:3001
API_PORTapiPort, 30013001
INTERBOX_WEBHOOK_PORTwebhook.port, 30023002
MLLP_HOST and MLLP_PORT0.0.0.0 and 2575the image's values, the same
AIDBOX_URLhttp://aidbox:8080none
INTERBOX_SKIP_ENSURE_DB1 when the chart value database.createDatabase is falseunset

The chart refuses DATABASE_URL, API_PORT, INTERBOX_INSTANCE_ID, INTERBOX_WEBHOOK_PORT and INTERBOX_WORKSPACE_CACHE under config. It does not check that INTERBOX_WORKSPACE_GIT_URL and INTERBOX_PUBLIC_URL are set. Each pod's host name, which is its name, is its instance id.

Last updated: