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.
Variable Provider Purpose
ANTHROPIC_API_KEYAnthropic Required. API key for the Anthropic provider.
ANTHROPIC_BASE_URLAnthropic Optional. Override the Anthropic API base URL (useful for proxies or Bedrock-compatible endpoints).
OPENAI_API_KEYOpenAI Required when using OpenAI.
OPENAI_BASE_URLOpenAI Optional. Override the OpenAI API base URL (for LM Studio, Mistral, and other OpenAI-compatible endpoints).
OPENAI_ORG_IDOpenAI Optional. OpenAI organization ID.
OPENAI_PROJECTOpenAI Optional. OpenAI project ID.
AZURE_OPENAI_API_KEYAzure OpenAI Required when using Azure OpenAI.
AZURE_OPENAI_RESOURCEAzure OpenAI Required when using Azure OpenAI. Azure resource name.
AZURE_OPENAI_API_VERSIONAzure OpenAI Optional. API version string. Default: 2024-10-21.
GEMINI_API_KEYGoogle Required when using the Google provider. GOOGLE_GEMINI_API_KEY is checked as a fallback.
GOOGLE_GEMINI_API_KEYGoogle Fallback for GEMINI_API_KEY.
OLLAMA_BASE_URLOllama Optional. Base URL for the Ollama server. Default: http://localhost:11434.
Variable Default Description
CALIBAN_MAX_ATTACH_BYTES262144 (256 KB)Maximum size of a single @-attachment. Also settable via --max-attach-bytes.
CALIBAN_ATTACH_BUDGET_BYTES1048576 (1 MB)Aggregate size cap across all @-attachments in one message. Also settable via --attach-budget-bytes.
Variable Default Description
CALIBAN_DEFAULT_PERMISSION_MODEdefaultInitial permission mode. Values: default, acceptEdits, plan, auto, dontAsk, bypassPermissions. CLI --permission-mode wins when set.
CALIBAN_NO_PERMISSIONS— Any non-empty value disables permission gating (all tool calls allowed). Conflicts with --allow, --deny, --ask, --auto-allow.
CALIBAN_AUTO_ALLOW— Dangerous. Any non-empty value allows Ask-rule tools without prompting in non-interactive mode.
CALIBAN_DISABLE_AUTO_MODE— Any non-empty value disables the auto-mode classifier; all calls fall through to Ask.
Variable Default Description
CALIBAN_NO_PROMPT_CACHE— Any non-empty value disables Anthropic-style prompt caching.
CALIBAN_NO_PARALLEL_TOOLS— Any non-empty value forces serial tool execution.
CALIBAN_PARALLEL_TOOL_LIMITCPU cores − 1 (min 1) Maximum concurrent tool invocations per turn.
Variable Default Description
CALIBAN_NO_HOOKS— Any non-empty value bypasses every external hook handler. In-process hooks still run.
CALIBAN_NO_SKILLS— Any non-empty value disables skill discovery at startup.
CALIBAN_NO_MCP— Any non-empty value disables MCP server discovery.
CALIBAN_MCP_OAUTH_PORT0 (ephemeral)Loopback port for the MCP OAuth callback server (ADR 0023 Phase C).
CALIBAN_MCP_TIMEOUT— Timeout (ms) for MCP server startup/connection.
CALIBAN_MCP_TOOL_TIMEOUT— Per-tool-call timeout (ms) for MCP tools.
CALIBAN_NO_PLUGINS— Any non-empty value disables plugin discovery.
CALIBAN_ENABLED_PLUGINS— Comma-separated list of plugin names to enable (all others disabled).
CALIBAN_PLUGIN_ROOT— Override the plugin install root directory.
Variable Default Description
CALIBAN_NO_SUB_AGENT— Any non-empty value disables the built-in AgentTool.
CALIBAN_DAEMON_RUNTIME_DIRPlatform default Override the runtime socket directory for the supervisor daemon.
Variable Default Description
CALIBAN_DISABLE_AUTO_MEMORY— Any non-empty value disables auto-memory topic-file writing.
CALIBAN_MEMORY_DIRPlatform default Override the auto-memory topic files directory.
CALIBAN_MEMORY_BUDGET_TOKENS— Total token budget across all memory tiers.
CALIBAN_MEMORY_CAP_TOKENS_AUTO— Token budget cap for the auto-memory tier.
CALIBAN_MEMORY_CAP_TOKENS_CLAUDE_MD— Token budget cap for the CLAUDE.md tier.
CALIBAN_AUTO_MEMORY_DIRECTORY— Override the auto-memory directory (alias form).
CALIBAN_DISABLE_CLAUDE_MD_WALK— Any non-empty value disables the CLAUDE.md walk-up discovery.
CALIBAN_ADDITIONAL_DIRECTORIES_CLAUDE_MD— Colon-separated list of extra directories to search for CLAUDE.md.
CALIBAN_CLAUDE_MD_EXCLUDES— Colon-separated glob patterns to exclude from CLAUDE.md discovery.
CALIBAN_APPROVE_IMPORTS— Any non-empty value auto-approves CLAUDE.md @import statements.
Variable Default Description
CALIBAN_CHECKPOINT_ROOT~/.caliban/projectsOverride the checkpoint root directory.
CALIBAN_CHECKPOINT_DISABLED— Any non-empty value disables checkpoint recording and pruning.
CALIBAN_CHECKPOINT_MAX_FILE_BYTES— Maximum checkpoint file size before rotation.
CALIBAN_CLEANUP_PERIOD_DAYS— Number of days after which old checkpoint files are pruned.
Variable Default Description
CALIBAN_ROUTER_CONFIGWalk-up discovery Explicit path to caliban.toml. Also settable via --config.
CALIBAN_STRICT_ROUTING— Any non-empty value enables strict routing (no fallback to default route on unknown purpose).
CALIBAN_API_KEY_HELPER_TTL_MS— TTL in milliseconds for API key helper subprocess cache.
Variable Default Description
CALIBAN_OUTPUT_STYLE— Name of the active output style (see Output Styles ).
CALIBAN_GRAPHICS— Graphics capability hint (e.g. kitty, sixel).
Variable Default Description
CALIBAN_ENABLE_TELEMETRY— 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_PROTOCOLgrpcOTel OTLP transport protocol.
OTEL_EXPORTER_OTLP_HEADERS— Additional headers for the OTLP exporter.
OTEL_METRIC_EXPORT_INTERVAL60sOTel metric export interval.
OTEL_LOGS_EXPORTERotlpOTel logs exporter type.
OTEL_METRICS_EXPORTERotlpOTel metrics exporter type.
OTEL_TRACES_EXPORTERotlpOTel traces exporter type.
CALIBAN_RATES_YAML— Path to a YAML file overriding the built-in provider pricing rate card.
Variable Default Description
CALIBAN_DEBUG— Any non-empty value enables the file-backed tracing subscriber (appends to the platform debug log). Also settable via --debug.
Variable Default Description
CALIBAN_BLOCKED_MARKETPLACES— 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).
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.