.env file in your project root (or wherever your process manager loads it).
This page covers only Clawboo’s own configuration variables. Variables that appear inside marketplace agent templates (
FEISHU_*, SUPABASE_*, DATABASE_URL, BETTER_AUTH_SECRET, and similar) are third-party agent content — Clawboo never reads them and they are not documented here.Quick reference
| Variable | Area | Default | Read by |
|---|---|---|---|
CLAWBOO_HOME | State & paths | ~/.clawboo | resolveClawbooDir() |
OPENCLAW_STATE_DIR | State & paths | ~/.openclaw | resolveStateDir() |
MOLTBOT_STATE_DIR | State & paths | — (legacy) | resolveStateDir() |
CLAWDBOT_STATE_DIR | State & paths | — (legacy) | resolveStateDir() |
CLAWBOO_DB_PATH | State & paths | ~/.openclaw/clawboo/clawboo.db | defaultDbPath() (MCP stdio bins) |
CLAWBOO_UI_DIR | State & paths | <server bundle>/ui | server boot |
CLAWBOO_SERVER_PATH | State & paths | (auto-discovered) | CLI dev-fallback |
CLAWBOO_MCP_BIN_DIR | State & paths | (set by CLI) | GET /api/mcp/config |
CLAWBOO_API_PORT | Ports & binding | 18790 (auto-scan) | resolveApiPort() |
CLAWBOO_API_PORT_START | Ports & binding | 18790 | resolveApiPort() |
PORT | Ports & binding | — | resolveApiPort() (production only) |
HOST | Ports & binding | 127.0.0.1 | resolveHost() |
HOSTNAME | Ports & binding | 127.0.0.1 | resolveHost() fallback |
STUDIO_ACCESS_TOKEN | Secrets & auth | — | access gate |
CLAWBOO_SECRETS_MASTER_KEY | Secrets & auth | auto-generated key file | secrets vault |
ANTHROPIC_API_KEY | Runtime keys | — | resolveRuntimeKey() |
OPENAI_API_KEY | Runtime keys | — | resolveRuntimeKey() |
OPENROUTER_API_KEY | Runtime keys | — | resolveRuntimeKey() |
OLLAMA_BASE_URL | Runtime keys | http://localhost:11434/v1 | Native runtime |
CLAWBOO_REVIEWER_MODEL | Runtime tuning | (builder’s model) | executor verification |
LOG_LEVEL | Logging | info | @clawboo/logger |
NODE_ENV | Logging | — (pretty transport) | @clawboo/logger |
CLAWBOO_BOARD_STALE_TTL_MS | Operational tuning | 3600000 (60 min) | board stale-task sweep |
CLAWBOO_BOARD_STALE_SWEEP_MS | Operational tuning | 300000 (5 min) | board stale-task sweep |
CLAWBOO_APPROVAL_TTL_MS | Operational tuning | 86400000 (24 h) | approval reaper |
CLAWBOO_APPROVAL_REAPER_INTERVAL_MS | Operational tuning | 3600000 (1 h) | approval reaper |
CLAWBOO_MCP_PROBE_MS | Operational tuning | 60000 (60 s) | MCP liveness supervisor |
CLAWBOO_ROUTINE_OPENCLAW_TIMEOUT_MS | Operational tuning | 600000 (10 min) | scheduled dispatch watchdog |
OTEL_EXPORTER_OTLP_ENDPOINT | OpenTelemetry | — | OTel bridge gate |
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | OpenTelemetry | — | OTel bridge gate |
OTEL_SERVICE_NAME | OpenTelemetry | clawboo | OTel tracer resource |
There are no feature-flag environment variables. Every subsystem (board, executors, worktrees, MCP, verification, governance, observability) is always on. The only opt-in surface is the OpenTelemetry export bridge, gated by the presence of an OTLP endpoint variable.
How to set variables
Inline, before the command:.env file (loaded by your process manager or a tool like dotenv):
State & paths
Ports & binding
Secrets & auth
Runtime provider keys
These variables are resolved through the credential chainresolveRuntimeKey(envVar): process.env → the encrypted vault → OpenClaw’s ~/.openclaw/.env. Setting a key in your process environment is the highest-priority way to satisfy a runtime’s credential check.
Codex authenticates via interactive ChatGPT OAuth (
codex login), not a pasted API key, so there is no provider-key environment variable for it. See Codex runtime.Runtime tuning
Logging
Operational tuning
These variables tune the always-on background services that start at server boot. Each is parsed as a positive number of milliseconds and falls back to its default when missing or invalid.OpenTelemetry
The OpenTelemetry export bridge is the only opt-in subsystem in Clawboo. Without these variables, the always-on local event log is the trace store and the OpenTelemetry SDK is never imported. When an endpoint is configured, the SDK is lazily loaded and traces are exported via OTLP.See also
- Configuration reference —
settings.jsonschema, state directory, and the OpenClaw token-resolution chain - CLI reference —
npx clawbooand the MCP stdio binaries - Connecting runtimes — install, connect, and the encrypted credential vault
- Security — access gate, loopback binding, vault, and redaction
- Deployment — ports, fallback, state directory, and the bundled server
- Observability — the event log and the OTel bridge