Skip to main content
Internal

Environment Variables

Every environment variable SLAW uses for server configuration.

Server configuration

VariableDefaultDescription
PORT3100Server port
SLAW_BINDloopbackReachability preset: loopback, lan, tailnet, or custom
SLAW_BIND_HOST(unset)Required when SLAW_BIND=custom
HOST127.0.0.1Legacy host override; prefer SLAW_BIND for new setups
DATABASE_URL(embedded)PostgreSQL connection string
SLAW_HOME~/.slawBase directory for all SLAW data
SLAW_INSTANCE_IDdefaultInstance identifier (for multiple local instances)
SLAW_DEPLOYMENT_MODElocal_trustedRuntime mode override
SLAW_DEPLOYMENT_EXPOSUREprivateExposure policy when deployment mode is authenticated
SLAW_API_URL(auto-derived)API base URL. When set externally (Kubernetes ConfigMap, load balancer, reverse proxy), the server preserves it instead of deriving it from the listen host and port.

Secrets

VariableDefaultDescription
SLAW_SECRETS_MASTER_KEY(from file)32-byte encryption key (base64/hex/raw)
SLAW_SECRETS_MASTER_KEY_FILE~/.slaw/.../secrets/master.keyPath to key file
SLAW_SECRETS_STRICT_MODEfalseRequire secret refs for sensitive env vars

Agent runtime (injected into agent processes)

These are set automatically by the server when invoking agents:

VariableDescription
SLAW_AGENT_IDAgent's unique ID
SLAW_SQUAD_IDSquad ID
SLAW_API_URLAPI base URL (inherits the server-level value)
SLAW_API_KEYShort-lived JWT for API auth
SLAW_RUN_IDCurrent heartbeat run ID
SLAW_TASK_IDIssue that triggered this wake
SLAW_WAKE_REASONWake trigger reason
SLAW_WAKE_COMMENT_IDComment that triggered this wake
SLAW_APPROVAL_IDResolved approval ID
SLAW_APPROVAL_STATUSApproval decision
SLAW_LINKED_ISSUE_IDSComma-separated linked issue IDs

LLM provider keys (for adapters)

VariableDescription
ANTHROPIC_API_KEYAnthropic API key (for the Claude Local adapter)
OPENAI_API_KEYOpenAI API key (for the Codex Local adapter)

Next steps