Caliban reads environment variables in two groups: CALIBAN_* variables that control the harness itself, and per-provider API-key and endpoint variables. Most CALIBAN_* flags mirror a corresponding CLI flag; the CLI flag always wins when both are set.
Optional. Override the Anthropic API base URL (useful for proxies or Bedrock-compatible endpoints).
OPENAI_API_KEY
OpenAI
Required when using OpenAI.
OPENAI_BASE_URL
OpenAI
Optional. Override the OpenAI API base URL (for LM Studio, Mistral, and other OpenAI-compatible endpoints).
OPENAI_ORG_ID
OpenAI
Optional. OpenAI organization ID.
OPENAI_PROJECT
OpenAI
Optional. OpenAI project ID.
AZURE_OPENAI_API_KEY
Azure OpenAI
Required when using Azure OpenAI.
AZURE_OPENAI_RESOURCE
Azure OpenAI
Required when using Azure OpenAI. Azure resource name.
AZURE_OPENAI_API_VERSION
Azure OpenAI
Optional. API version string. Default: 2024-10-21.
GEMINI_API_KEY
Google
Required when using the Google provider. GOOGLE_GEMINI_API_KEY is checked as a fallback.
GOOGLE_GEMINI_API_KEY
Google
Fallback for GEMINI_API_KEY.
OLLAMA_BASE_URL
Ollama
Optional. Base URL for the Ollama server. Default: http://localhost:11434.
OLLAMA_STREAM_IDLE_TIMEOUT_MS
Ollama
Optional. Overrides stream_idle_timeout_ms (mid-content stall window) for ollama runs — widens the watchdog without editing settings. Takes precedence over settings.
OLLAMA_STREAM_PREFILL_TIMEOUT_MS
Ollama
Optional. Overrides stream_prefill_timeout_ms (pre-first-token / slow-prefill budget) for ollama runs. Takes precedence over settings. Useful for slow local models under emulation.
OLLAMA_STREAM_TOTAL_TIMEOUT_MS
Ollama
Optional. Re-imposes a hard total wall-clock timeout (ms) on the ollama streaming path. Unset (default) means no total cap — the stream relies on the connect timeout + the idle watchdog.
Any non-empty value disables the built-in AgentTool.
CALIBAN_DAEMON_RUNTIME_DIR
Platform default
Override the runtime socket directory for the supervisor daemon.
CALIBAN_DAEMON_LISTEN
—
TCP listen address (e.g. 0.0.0.0:7000) that switches the caliband supervisor into networked control-plane mode; the caliban agents CLI dials the same address to reach a remote daemon. Unset means the local Unix-socket path. TLS/token come from the CALIBAN_DAEMON_TLS_* / CALIBAN_DAEMON_TOKEN vars.
Any non-empty value enables OTel telemetry (settings enable_telemetry is also checked).
CALIBAN_OTEL_HEADERS_HELPER
—
Command to supply dynamic OTel export headers.
OTEL_EXPORTER_OTLP_ENDPOINT
—
OTel OTLP exporter endpoint URL.
OTEL_EXPORTER_OTLP_PROTOCOL
grpc
OTel OTLP transport protocol.
OTEL_EXPORTER_OTLP_HEADERS
—
Additional headers for the OTLP exporter.
OTEL_METRIC_EXPORT_INTERVAL
60s
OTel metric export interval.
OTEL_LOG_USER_PROMPTS
false
Opt-in capture of prompt/completion content on gen_ai spans. Off by default; any truthy value records user prompts and model completions as span content (ADR 0053).
OTEL_LOGS_EXPORTER
otlp
OTel logs exporter type.
OTEL_METRICS_EXPORTER
otlp
OTel metrics exporter type.
OTEL_TRACES_EXPORTER
otlp
OTel traces exporter type.
CALIBAN_RATES_YAML
—
Path to a YAML file overriding the built-in provider pricing rate card.
Comma-separated list of marketplace names to block.
CALIBAN_STRICT_KNOWN_MARKETPLACES
—
Any non-empty value blocks installs from unrecognized marketplaces.
CALIBAN_STRICT_PLUGIN_ONLY_CUSTOMIZATION
—
Any non-empty value restricts customization to plugins only (no user-level skills/hooks).
Provider precedence
When CALIBAN_PROVIDER is set, it overrides the --provider flag and settings-derived provider. This is the escape hatch for scripting scenarios where injecting a flag is inconvenient.