Skip to content

Environment variables

Every DREADNODE_* variable the TUI, CLI, and runtime read — platform identity, logging, LLM proxy, runtime transport, and capability overrides.

Environment variables override profile config and CLI defaults. They’re useful for scripts, CI, sandboxes, and sharing a runtime between multiple TUI processes.

These mirror the CLI flags — set them in a shell to avoid typing --server, --api-key, etc. every time.

VariableWhat it sets
DREADNODE_SERVERPlatform API URL
DREADNODE_API_KEYAPI key for authentication
DREADNODE_ORGANIZATIONOrganization slug
DREADNODE_WORKSPACEWorkspace key
DREADNODE_PROJECTProject slug

Resolution order: CLI flag → env var → saved profile → built-in default.

VariableEffect
DREADNODE_LOG_LEVELLog level for the TUI and runtime (debug, info, warning, error). Default info
DREADNODE_LOG_FILEWrite logs to this file in addition to stderr
DREADNODE_DEBUGWhen set to any truthy value, print full stack traces on CLI errors

When a model doesn’t ship through the Dreadnode platform, the TUI sends requests through an LLM proxy using these variables. Setting them in the TUI via /secrets writes them into the current process.

VariableEffect
DREADNODE_LLM_BASEBase URL of the LLM proxy (e.g. a LiteLLM router)
DREADNODE_LLM_API_KEYAPI key for the LLM proxy

The TUI and agent runtime talk to each other over a local HTTP server. These control where it binds.

VariableEffect
DREADNODE_RUNTIME_URLConnect to a runtime at this URL instead of starting one locally
DREADNODE_RUNTIME_HOSTHost the local runtime binds to. Default 127.0.0.1
DREADNODE_RUNTIME_PORTPort the local runtime binds to. Default 8787
DREADNODE_RUNTIME_TOKENBearer token gating /api/* when the runtime is reachable from outside
DREADNODE_RUNTIME_IDSet automatically when running inside a managed sandbox. Presence flips a few behaviors (e.g. sandbox-mounted storage, host label sandbox)

DREADNODE_SERVER_HOST, DREADNODE_SERVER_PORT, and SANDBOX_AUTH_TOKEN are deprecated aliases — they still work, but prefer the RUNTIME_* spellings.

VariableEffect
DREADNODE_CAPABILITY_DIRSColon-separated additional capability directories to scan
DREADNODE_CAPABILITY_FLAG__<CAP>__<FLAG>Override a capability’s flag. Example: DREADNODE_CAPABILITY_FLAG__WEB_SECURITY__STRICT_MODE=true
DREADNODE_WORKSPACE_CAPABILITIES_DIRWorkspace-wide capability directory (typically set inside managed sandboxes)

See Capability env vars for how capability authors can declare variables their own tools consume.

Set automatically by the platform — not normally something you override.

VariableSet when
DREADNODE_SESSION_IDA session is active in an automated context (e.g. airt assessment runner)
DREADNODE_PROJECT_ROOTThe runtime starts inside a project directory