Skip to content

Instantly share code, notes, and snippets.

@unkn0wncode
Last active April 24, 2026 05:36
Show Gist options
  • Select an option

  • Save unkn0wncode/f87295d055dd0f0e8082358a0b5cc467 to your computer and use it in GitHub Desktop.

Select an option

Save unkn0wncode/f87295d055dd0f0e8082358a0b5cc467 to your computer and use it in GitHub Desktop.
# Claude Code CLI Environment Variables
# This file lists all environment variables used in v2.1.118 with explanations
## Anthropic API & Authentication
ANTHROPIC_API_KEY - Primary API key for Anthropic's Claude API. Used as fallback when no OAuth token is configured
ANTHROPIC_AUTH_TOKEN - Alternative bearer token for Anthropic services. Takes priority over ANTHROPIC_API_KEY for authorization headers
ANTHROPIC_BASE_URL - Custom base URL for Anthropic API endpoints. Overrides the default api.anthropic.com endpoint
ANTHROPIC_BETAS - Comma-separated list of beta feature headers to include in API requests. Appended to internal beta flags
ANTHROPIC_CONFIG_DIR - Override Anthropic config directory. Falls back to XDG_CONFIG_HOME/anthropic, then HOME/.config/anthropic
ANTHROPIC_CUSTOM_HEADERS - Custom HTTP headers for API requests. Newline-separated Key: Value pairs
ANTHROPIC_LOG - Anthropic SDK internal logging level (from the SDK itself, not Claude Code)
ANTHROPIC_UNIX_SOCKET - Unix socket path for Anthropic API connections. Used with Bun runtime for direct socket communication
API_FORCE_IDLE_TIMEOUT - Force idle timeout on API connections under Bun. When truthy, re-enables the timeout that is disabled by default
API_TIMEOUT_MS - API request timeout in milliseconds. Default: 600000 (10 minutes). Shown in timeout error messages with suggestion to increase
CLAUDE_CODE_API_BASE_URL - Alternative base URL for Anthropic API. Falls back to ANTHROPIC_BASE_URL, then https://api.anthropic.com
## Model Configuration
ANTHROPIC_CUSTOM_MODEL_OPTION - Custom model ID to add to the model selector dropdown. Validated during model selection
ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION - Description text for the custom model option. Falls back to 'Custom model (MODEL_ID)'
ANTHROPIC_CUSTOM_MODEL_OPTION_NAME - Display name for the custom model option in the model selector
ANTHROPIC_DEFAULT_HAIKU_MODEL - Override the default Haiku model ID. Used for non-first-party providers. Falls back to haiku-4.5
ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION - Description text for custom Haiku model override
ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME - Display name for custom Haiku model override
ANTHROPIC_DEFAULT_OPUS_MODEL - Override the default Opus model ID. First-party defaults to opus-4.6, third-party to opus-4.6
ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION - Description text for custom Opus model override
ANTHROPIC_DEFAULT_OPUS_MODEL_NAME - Display name for custom Opus model override
ANTHROPIC_DEFAULT_SONNET_MODEL - Override the default Sonnet model ID. First-party defaults to sonnet-4.6, third-party to sonnet-4.5
ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION - Description text for custom Sonnet model override
ANTHROPIC_DEFAULT_SONNET_MODEL_NAME - Display name for custom Sonnet model override
ANTHROPIC_MODEL - Override the default Claude model. Can be set via CLI flag, env var, or settings file. Checked against known model IDs
ANTHROPIC_SMALL_FAST_MODEL - Override the small/fast model used for quick operations (compaction, summarization). Defaults to Haiku
ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION - Specific AWS region for the small fast model when using Bedrock. Falls back to the general Bedrock region
CLAUDE_CODE_ALWAYS_ENABLE_EFFORT - Boolean. Force effort level support on all models, not just opus-4-6/sonnet-4-6
CLAUDE_CODE_EFFORT_LEVEL - Set reasoning effort level. Accepted values: "low", "medium", "high" (default: "high")
CLAUDE_CODE_EXTRA_BODY - JSON object merged into the API request body. If it contains an anthropic_beta array, those beta flags are merged (deduplicated) with Claude Code's built-in betas. Must be a plain object; arrays/primitives are rejected with an error log
CLAUDE_CODE_EXTRA_METADATA - JSON object whose fields are combined with device_id, account_uuid, and session_id, then hashed to derive the user_id value sent in API request metadata. Must be a plain object; arrays/primitives are rejected
CLAUDE_CODE_MAX_CONTEXT_TOKENS - Max context tokens override. Only applied when DISABLE_COMPACT is set. Parsed as int, must be > 0
CLAUDE_CODE_MAX_OUTPUT_TOKENS - Maximum output tokens for responses. Validated against a per-model upper limit
CLAUDE_CODE_MAX_RETRIES - Maximum API request retries
CLAUDE_CODE_SUBAGENT_MODEL - Force a specific model for all sub-agent/teammate operations. Overrides normal model selection logic
FALLBACK_FOR_ALL_PRIMARY_MODELS - Enable fallback behavior for all primary models, not just specific ones
MAX_THINKING_TOKENS - Maximum tokens for extended thinking. Parsed as int; if > 0, enables thinking with a fixed budget
## Provider: AWS Bedrock
ANTHROPIC_BEDROCK_BASE_URL - Alternative custom endpoint for Bedrock. Passed as endpoint to the Bedrock client
AWS_ACCESS_KEY_ID - AWS access key for Bedrock authentication
AWS_BEARER_TOKEN_BEDROCK - Bearer token for Bedrock authentication. When set, skips SigV4 signing and uses Authorization: Bearer header instead
AWS_DEFAULT_REGION - Fallback AWS region. Used when AWS_REGION is not set. Default: us-east-1
AWS_LOGIN_CACHE_DIRECTORY - Custom directory for AWS SSO login cache. Default: ~/.aws/login/cache
AWS_PROFILE - AWS named profile for credential resolution
AWS_REGION - AWS region for Bedrock service calls. Default: us-east-1
AWS_SECRET_ACCESS_KEY - AWS secret key for Bedrock authentication
AWS_SESSION_TOKEN - AWS session token for temporary credentials
CLAUDE_CODE_SKIP_BEDROCK_AUTH - Boolean. Skip AWS authentication for Bedrock (uses empty credentials)
CLAUDE_CODE_USE_BEDROCK - Boolean. Route all API calls through AWS Bedrock instead of direct Anthropic API
ENABLE_PROMPT_CACHING_1H_BEDROCK - Enable 1-hour prompt caching on Bedrock
## Provider: Bedrock Mantle
ANTHROPIC_BEDROCK_MANTLE_BASE_URL - Custom base URL for Bedrock Mantle endpoint. Defaults to https://bedrock-mantle.{region}.api.aws/anthropic
CLAUDE_CODE_SKIP_MANTLE_AUTH - Skip authentication for Bedrock Mantle
CLAUDE_CODE_USE_MANTLE - Route API calls through Bedrock Mantle
## Provider: Anthropic AWS
ANTHROPIC_AWS_API_KEY - API key for Anthropic AWS service
ANTHROPIC_AWS_BASE_URL - Custom base URL for Anthropic AWS endpoint
ANTHROPIC_AWS_WORKSPACE_ID - Workspace ID for Anthropic AWS service
CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH - Skip authentication for Anthropic AWS service
CLAUDE_CODE_USE_ANTHROPIC_AWS - Route API calls through Anthropic AWS service
## Provider: Google Vertex AI
ANTHROPIC_VERTEX_BASE_URL - Custom base URL for Vertex AI endpoint (replaces VERTEX_BASE_URL)
ANTHROPIC_VERTEX_PROJECT_ID - GCP project ID for Vertex AI service calls
CLAUDE_CODE_SKIP_VERTEX_AUTH - Boolean. Skip GCP authentication for Vertex AI (uses empty credentials)
CLAUDE_CODE_USE_VERTEX - Boolean. Route all API calls through Google Vertex AI instead of direct Anthropic API
CLOUDSDK_CONFIG - Google Cloud SDK configuration directory
CLOUD_ML_REGION - Default GCP region for Vertex AI. Default: us-east5
DETECT_GCP_RETRIES - Number of retries for GCP metadata detection
GCE_METADATA_HOST - Custom hostname for GCE metadata server
GCE_METADATA_IP - Custom IP address for GCE metadata server
GOOGLE_APPLICATION_CREDENTIALS - Path to GCP service account credentials JSON file
GOOGLE_CLOUD_PROJECT - GCP project ID. Used for cloud platform detection
GOOGLE_CLOUD_QUOTA_PROJECT - GCP quota project for billing
METADATA_SERVER_DETECTION - Control GCP metadata server detection behavior
## Provider: Microsoft Foundry
ANTHROPIC_FOUNDRY_API_KEY - API key for Microsoft Foundry authentication. If absent, falls back to Azure DefaultCredential
ANTHROPIC_FOUNDRY_BASE_URL - Custom base URL for Microsoft Foundry API endpoint
ANTHROPIC_FOUNDRY_RESOURCE - Microsoft Foundry resource identifier
CLAUDE_CODE_SKIP_FOUNDRY_AUTH - Boolean. Skip Azure authentication for Foundry (uses empty token provider)
CLAUDE_CODE_USE_FOUNDRY - Boolean. Route all API calls through Microsoft Foundry instead of direct Anthropic API
## OAuth & Login
ANTHROPIC_FEDERATION_RULE_ID - Federation rule ID for OIDC federation auth mode (env-quad)
ANTHROPIC_ORGANIZATION_ID - Organization ID for OIDC federation auth mode (env-quad)
ANTHROPIC_PROFILE - Explicit profile name to use from the credentials file. Defaults to 'default'
CLAUDE_CODE_ACCOUNT_TAGGED_ID - Tagged account ID for OTEL metrics. Falls back to hashing the account UUID
CLAUDE_CODE_ACCOUNT_UUID - Pre-set account UUID, bypassing OAuth lookup
CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR - File descriptor number to read API key from. Must be a valid integer
CLAUDE_CODE_API_KEY_HELPER_TTL_MS - TTL in milliseconds for API key helper cache. Must be a non-negative integer
CLAUDE_CODE_CUSTOM_OAUTH_URL - Custom OAuth URL endpoint. Must be in the approved endpoints list
CLAUDE_CODE_OAUTH_CLIENT_ID - Custom OAuth client ID
CLAUDE_CODE_OAUTH_REFRESH_TOKEN - OAuth refresh token for token renewal
CLAUDE_CODE_OAUTH_SCOPES - OAuth scopes to request during authentication
CLAUDE_CODE_OAUTH_TOKEN - OAuth token for authentication. Checked after ANTHROPIC_AUTH_TOKEN in auth source priority
CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR - File descriptor number to read OAuth token from
CLAUDE_CODE_ORGANIZATION_UUID - Pre-set organization UUID, bypassing OAuth lookup
CLAUDE_CODE_RATE_LIMIT_TIER - Rate limit tier for the OAuth session. Used with CLAUDE_CODE_OAUTH_TOKEN
CLAUDE_CODE_SESSION_ACCESS_TOKEN - Session-specific access token for authentication
CLAUDE_CODE_SUBSCRIPTION_TYPE - Override subscription type for the OAuth session. Used with CLAUDE_CODE_OAUTH_TOKEN
CLAUDE_CODE_USER_EMAIL - Pre-set user email, bypassing OAuth lookup
CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR - File descriptor for WebSocket authentication credentials
CLAUDE_LOCAL_OAUTH_API_BASE - Local OAuth API base URL for development
CLAUDE_LOCAL_OAUTH_APPS_BASE - Local OAuth apps base URL for development
CLAUDE_LOCAL_OAUTH_CONSOLE_BASE - Local OAuth console base URL for development
CLAUDE_TRUSTED_DEVICE_TOKEN - Pre-set trusted device token. When set, skips trusted device enrollment (env var takes precedence)
USE_LOCAL_OAUTH - Use local OAuth endpoint for development
USE_STAGING_OAUTH - Use staging OAuth endpoint for testing
## Core Settings
CLAUDE_CODE_DEBUG_LOGS_DIR - Custom directory for debug log files. Default: CONFIG_DIR/debug/SESSION.txt
CLAUDE_CODE_DEBUG_LOG_LEVEL - Debug log level. Options: verbose, debug, info, warn, error. Default: debug
CLAUDE_CODE_DIAGNOSTICS_FILE - Path to write diagnostics output file
CLAUDE_CODE_DONT_INHERIT_ENV - Boolean. Don't inherit environment variables from parent process
CLAUDE_CODE_ENTRYPOINT - Identifies how Claude Code was launched: cli, sdk-ts, sdk-py, sdk-cli, mcp, claude-code-github-action, claude-desktop, local-agent
CLAUDE_CODE_ENVIRONMENT_KIND - Identifies the environment kind (e.g., local, remote, container)
CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION - Version of the environment runner
CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER - Exit immediately after the first UI render (for testing)
CLAUDE_CODE_EXIT_AFTER_STOP_DELAY - Delay in ms before exiting after stop signal
CLAUDE_CODE_FORCE_FULL_LOGO - Force display of the full ASCII logo on startup
CLAUDE_CODE_HOST_PLATFORM - Override the detected host platform identifier
CLAUDE_CODE_NEW_INIT - Trigger new initialization flow
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST - Indicates the API provider is managed by the host environment. Treated as a provider selector alongside CLAUDE_CODE_USE_BEDROCK/VERTEX/etc
CLAUDE_CODE_QUESTION_PREVIEW_FORMAT - Format for question preview display
CLAUDE_CODE_SHELL - Override the shell used for Bash tool execution
CLAUDE_CODE_SHELL_PREFIX - Prefix command/args added before shell invocations
CLAUDE_CODE_SIMPLE - Boolean. Simplified mode - disables attachments, auto memory, and other advanced features
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT - Use the simple system prompt only. Also implied by CLAUDE_CODE_SIMPLE
CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK - Skip organization check in fast mode
CLAUDE_CODE_SYNTAX_HIGHLIGHT - Control syntax highlighting in output
CLAUDE_CODE_TAGS - Custom tags to include in telemetry and event tracking
CLAUDE_CODE_TMPDIR - Override the temp directory used by Claude Code (alternative var)
CLAUDE_CODE_WORKER_EPOCH - Worker epoch identifier for multi-worker setups
CLAUDE_CONFIG_DIR - Override the default Claude configuration directory path
CLAUDE_DEBUG - Enable debug mode for Claude Code
CLAUDE_ENV_FILE - Path to a custom environment file to load
CLAUDE_TMPDIR - Override the temp directory used by Claude Code
## Enable Flags
CLAUDE_CODE_ENABLE_AWAY_SUMMARY - Override away summary feature. Defaults to tengu_sedge_lantern feature flag and setting
CLAUDE_CODE_ENABLE_CFC - Enable CFC (Claude For Code) feature
CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL - Enable the experimental advisor tool. First-party only, also gated by tengu_sage_compass2 feature flag
CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING - Enable fine-grained streaming for tool use responses
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION - Enable prompt suggestion feature
CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING - Enable file checkpointing in SDK mode
CLAUDE_CODE_ENABLE_TASKS - Enable the task tracking system
CLAUDE_CODE_ENABLE_TELEMETRY - Enable telemetry data collection
CLAUDE_CODE_ENABLE_TOKEN_USAGE_ATTACHMENT - Enable attaching token usage info to responses
CLAUDE_CODE_ENABLE_XAA - Enable XAA (Cross-Application Authentication) support for MCP servers via OIDC IdP
CLAUDE_CODE_ENHANCED_TELEMETRY_BETA - Enable enhanced telemetry beta features
CLAUDE_ENABLE_BYTE_WATCHDOG - Enable byte-level stream watchdog. Default: on via tengu_stream_watchdog_default_on feature flag
CLAUDE_ENABLE_STREAM_WATCHDOG - Enable watchdog for stream health monitoring
ENABLE_BETA_TRACING_DETAILED - Enable detailed beta tracing. Requires BETA_TRACING_ENDPOINT to also be set
ENABLE_CLAUDEAI_MCP_SERVERS - Enable Claude.ai MCP servers
ENABLE_ENHANCED_TELEMETRY_BETA - Alternative flag for enhanced telemetry beta
ENABLE_MCP_LARGE_OUTPUT_FILES - Enable large output file support for MCP tools
ENABLE_PROMPT_CACHING_1H - Enable 1-hour prompt caching. Works for all providers. Also requires not being on overage
ENABLE_TOOL_SEARCH - Enable the tool search/deferred tool loading feature
FORCE_PROMPT_CACHING_5M - Force 5-minute prompt caching (overrides 1-hour caching)
## Disable Flags
CLAUDE_CODE_DISABLE_1M_CONTEXT - Disable 1M token context window support. Prevents [1m] model variants
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING - Disable adaptive thinking mode. Falls back to fixed budget thinking
CLAUDE_CODE_DISABLE_ADVISOR_TOOL - Disable the advisor tool
CLAUDE_CODE_DISABLE_ATTACHMENTS - Disable file attachments in messages
CLAUDE_CODE_DISABLE_AUTO_MEMORY - Disable automatic memory system. Can be set to '0' to force-enable
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS - Disable background task execution and the run_in_background parameter
CLAUDE_CODE_DISABLE_CLAUDE_API_SKILL - Disable the Claude API skill
CLAUDE_CODE_DISABLE_CLAUDE_MDS - Disable loading of CLAUDE.md instruction files
CLAUDE_CODE_DISABLE_CRON - Disable cron/scheduled task functionality
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS - Disable experimental beta features
CLAUDE_CODE_DISABLE_FAST_MODE - Disable fast mode toggle
CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY - Disable feedback survey prompts
CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING - Disable file checkpointing for undo/restore
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS - Disable git-related instructions in system prompt
CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP - Disable legacy model name remapping
CLAUDE_CODE_DISABLE_MOUSE - Disable mouse input in the terminal UI
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC - Disable non-essential network traffic (feature flags, telemetry)
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK - Disable fallback to non-streaming API mode
CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL - Disable automatic installation of official marketplace plugins
CLAUDE_CODE_DISABLE_POLICY_SKILLS - Disable policy-based skill loading
CLAUDE_CODE_DISABLE_PRECOMPACT_SKIP - Disable skipping of pre-compaction optimization
CLAUDE_CODE_DISABLE_TERMINAL_TITLE - Disable setting the terminal title
CLAUDE_CODE_DISABLE_THINKING - Disable extended thinking entirely
CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL - Disable virtual scrolling in the UI
DISABLE_AUTOUPDATER - Disable the automatic update checker
DISABLE_AUTO_COMPACT - Disable automatic context compaction
DISABLE_COMPACT - Disable the /compact command entirely
DISABLE_COST_WARNINGS - Disable cost warning notifications
DISABLE_ERROR_REPORTING - Disable error reporting to Anthropic
DISABLE_INTERLEAVED_THINKING - Disable interleaved thinking in responses
DISABLE_PROMPT_CACHING - Disable prompt caching for all models
DISABLE_PROMPT_CACHING_HAIKU - Disable prompt caching specifically for Haiku model
DISABLE_PROMPT_CACHING_OPUS - Disable prompt caching specifically for Opus model
DISABLE_PROMPT_CACHING_SONNET - Disable prompt caching specifically for Sonnet model
DISABLE_TELEMETRY - Disable all telemetry data collection
DISABLE_UPDATES - Admin-level disable for updates. Takes precedence over DISABLE_AUTOUPDATER. Shows 'Updates are disabled by your administrator' message
DO_NOT_TRACK - Disable telemetry and tracking when set to 1
## Command Disablers
DISABLE_BUG_COMMAND - Disable the /bug command
DISABLE_DOCTOR_COMMAND - Disable the /doctor command
DISABLE_EXTRA_USAGE_COMMAND - Disable the /usage command
DISABLE_FEEDBACK_COMMAND - Disable the /feedback command
DISABLE_INSTALLATION_CHECKS - Disable installation verification checks
DISABLE_INSTALL_GITHUB_APP_COMMAND - Disable the install GitHub app command
DISABLE_LOGIN_COMMAND - Disable the /login command
DISABLE_LOGOUT_COMMAND - Disable the /logout command
DISABLE_UPGRADE_COMMAND - Disable the /upgrade command
## Bash & Shell
BASH_MAX_OUTPUT_LENGTH - Maximum output length for bash commands. Default: 30000, upper limit: 150000
CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR - Boolean. Maintain the project working directory across bash commands
CLAUDE_CODE_GIT_BASH_PATH - Path to git bash executable on Windows
CLAUDE_CODE_PWSH_PARSE_TIMEOUT_MS - PowerShell command parse timeout in milliseconds. Parsed as int, must be > 0
CLAUDE_CODE_USE_POWERSHELL_TOOL - Use PowerShell instead of Bash for shell commands
SLASH_COMMAND_TOOL_CHAR_BUDGET - Character budget for slash command tool output
TASK_MAX_OUTPUT_LENGTH - Maximum output length for task results
## Tool Configuration
CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR - Show 'SandboxedBash' label when sandbox is active
CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES - Emit summary descriptions for tool use actions
CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS - Maximum output tokens when reading files
CLAUDE_CODE_GLOB_HIDDEN - Include hidden files in glob searches
CLAUDE_CODE_GLOB_NO_IGNORE - Don't respect .gitignore in glob searches
CLAUDE_CODE_GLOB_TIMEOUT_SECONDS - Timeout in seconds for glob operations
CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES - Include partial/streaming messages in output
CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY - Maximum concurrent tool use operations. Default: 10
MAX_STRUCTURED_OUTPUT_RETRIES - Maximum retries for structured output parsing. Default: 5
USE_API_CONTEXT_MANAGEMENT - Use API-side context management instead of client-side
USE_BUILTIN_RIPGREP - Use the built-in ripgrep binary instead of system ripgrep
## MCP (Model Context Protocol)
CLAUDE_CODE_MCP_ALLOWLIST_ENV - Enable env var allowlist filtering for MCP servers. Default: enabled only for local-agent entrypoint
MAX_MCP_OUTPUT_TOKENS - Maximum output tokens for MCP tool results. Default: 25000
MCP_CLIENT_SECRET - Client secret for MCP OAuth authentication
MCP_CONNECTION_NONBLOCKING - Make MCP server connections non-blocking
MCP_OAUTH_CALLBACK_PORT - Port for MCP OAuth callback server
MCP_OAUTH_CLIENT_METADATA_URL - URL for MCP OAuth client metadata
MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE - Number of remote MCP servers to connect simultaneously. Default: 20
MCP_SERVER_CONNECTION_BATCH_SIZE - Number of MCP servers to connect to simultaneously. Default: 3
MCP_TIMEOUT - MCP server connection timeout in milliseconds. Default: 30000
MCP_TOOL_TIMEOUT - MCP tool execution timeout in milliseconds
MCP_TRUNCATION_PROMPT_OVERRIDE - Override MCP output truncation prompt mode. Accepts 'subagent' or 'legacy'. Defaults to tengu_mcp_subagent_prompt feature flag
MCP_XAA_IDP_CLIENT_SECRET - IdP client secret for MCP XAA (Cross-Application Authentication). Read by the --client-secret CLI flag
## Plugins & Extensions
CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH - Enable background plugin refresh after initialization when a refresh is needed
CLAUDE_CODE_PLUGIN_CACHE_DIR - Custom cache directory for plugin storage
CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS - Git operation timeout for plugin installation in milliseconds
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE - Keep the existing marketplace clone when git pull fails instead of re-cloning
CLAUDE_CODE_PLUGIN_SEED_DIR - Directory containing seed/pre-installed plugins
CLAUDE_CODE_PLUGIN_USE_ZIP_CACHE - Use zip-based caching for plugin downloads
CLAUDE_CODE_SYNC_PLUGIN_INSTALL - Install plugins synchronously instead of async
CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS - Timeout for synchronous plugin installation in milliseconds
CLAUDE_CODE_USE_COWORK_PLUGINS - Enable cowork-mode plugins
FORCE_AUTOUPDATE_PLUGINS - Force auto-update of installed plugins
## Context & Compaction
CLAUDE_AFTER_LAST_COMPACT - Boolean. When fetching session data, only get messages after the last compaction
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE - Override auto-compaction trigger percentage (0-100). Compaction triggers when context reaches this % of window
CLAUDE_CODE_AUTO_COMPACT_WINDOW - Override the auto-compaction context window size. Parsed as int, must be > 0
CLAUDE_CODE_BLOCKING_LIMIT_OVERRIDE - Override the blocking context limit. Parsed as int, must be > 0
CLAUDE_CODE_RESUME_INTERRUPTED_TURN - Resume an interrupted turn after compaction or reconnection
## Idle & Session Resume
CLAUDE_CODE_IDLE_THRESHOLD_MINUTES - Idle threshold in minutes before prompting for session action. Default: 75
CLAUDE_CODE_IDLE_TOKEN_THRESHOLD - Token count (context size) threshold before prompting for session action. Default: 100000
CLAUDE_CODE_RESUME_THRESHOLD_MINUTES - Minutes since last message before prompting to resume the session. Default: 70
CLAUDE_CODE_RESUME_TOKEN_THRESHOLD - Token threshold for resume prompt. Default: 100000
## Agent SDK
CLAUDE_AGENT_SDK_CLIENT_APP - Client application identifier for Agent SDK. Included in x-client-app header
CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS - Boolean. Disable built-in agent definitions when using the SDK
CLAUDE_AGENT_SDK_MCP_NO_PREFIX - Boolean. Don't prefix MCP tool names with server name in SDK mode
CLAUDE_AGENT_SDK_VERSION - Agent SDK version string. Included in User-Agent and telemetry
CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT - Enable appending to subagent system prompt via appendSubagentSystemPrompt option
CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH - Indicates the SDK host has OAuth refresh capability. Triggers token refresh request via SDK
## Agent Teams & Orchestration
CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS - Async agent stall timeout in milliseconds. Default: 600000 (10 minutes)
CLAUDE_AUTO_BACKGROUND_TASKS - Boolean. Enable automatic background task spawning. Returns 120000ms timeout when enabled
CLAUDE_BG_BACKEND - Background backend mode. Set to 'daemon' to ignore SIGHUP (daemon-managed background)
CLAUDE_CODE_AGENT_COST_STEER - Override agent cost-based steering. Defaults based on subscription tier (pro/max) via feature flag
CLAUDE_CODE_AGENT_LIST_IN_MESSAGES - Override whether the agent list is attached to messages. Defaults to tengu_agent_list_attach feature flag
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS - Enable experimental agent teams/multi-agent orchestration
CLAUDE_CODE_FORK_SUBAGENT - Enable forking subagents. Forced off when signed in with Claude AI OAuth. Otherwise falls back to tengu_copper_fox feature flag
CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE - Control the interview phase in plan mode
CLAUDE_CODE_PLAN_MODE_REQUIRED - Require plan mode approval before implementation
CLAUDE_CODE_PLAN_V2_AGENT_COUNT - Number of agents in plan v2 orchestration
CLAUDE_CODE_PLAN_V2_EXPLORE_AGENT_COUNT - Number of explore agents in plan v2. Default: 3, range 1-10
CLAUDE_CODE_TASK_LIST_ID - ID of the task list for task tracking
CLAUDE_CODE_TEAM_ONBOARDING - Enable the team-onboarding command. Also gated by tengu_flint_harbor feature flag
TEAM_MEMORY_SYNC_URL - URL for team memory synchronization service
## Remote & Cowork
CCR_ENABLE_BUNDLE - Enable code bundle uploads for CCR (Claude Code Remote)
CCR_FORCE_BUNDLE - Force code bundle uploads for CCR regardless of feature flag
CCR_UPSTREAM_PROXY_ENABLED - Enable upstream proxy for Claude Code Remote. Requires CLAUDE_CODE_REMOTE and CLAUDE_CODE_REMOTE_SESSION_ID
CLAUDE_BRIDGE_REATTACH_SEQ - Sequence number for bridge reattach. Parsed as int. Consumed and deleted after read
CLAUDE_BRIDGE_REATTACH_SESSION - Session ID to reattach to in bridge mode. Consumed and deleted after read
CLAUDE_BRIDGE_USE_CCR_V2 - Boolean. Use CCR v2 protocol for bridge/session connections
CLAUDE_CODE_CONTAINER_ID - Container ID for remote sessions. Included in x-claude-remote-container-id header
CLAUDE_CODE_IS_COWORK - Boolean. Indicates Claude Code is running in cowork mode
CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2 - Use POST for session ingress v2 protocol
CLAUDE_CODE_REMOTE - Boolean. Indicates Claude Code is running in remote/headless mode
CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE - Type of remote environment (included in telemetry)
CLAUDE_CODE_REMOTE_MEMORY_DIR - Directory for remote memory storage. Used when auto-memory checks for remote mode
CLAUDE_CODE_REMOTE_SEND_KEEPALIVES - Send keepalive messages in remote mode
CLAUDE_CODE_REMOTE_SESSION_ID - Session ID for remote connections. Included in x-claude-remote-session-id header
CLAUDE_CODE_REPL - Enable/disable REPL mode explicitly. Takes precedence over the default (tengu_slate_harbor feature flag)
CLAUDE_CODE_RESUME_FROM_SESSION - Session ID to hydrate/teleport from when resuming a session
CLAUDE_CODE_RETRY_WATCHDOG - Enable retry watchdog. Only active on linux with CLAUDE_CODE_ENTRYPOINT=remote
CLAUDE_CODE_SYSTEM_PROMPT_GB_FEATURE - GrowthBook feature name to fetch remote system prompt override from. Only read in CLAUDE_CODE_REMOTE mode
CLAUDE_CODE_USE_CCR_V2 - Use CCR v2 for remote sessions
CLAUDE_CODE_WORKSPACE_HOST_PATHS - Host paths for workspace mapping in containerized environments
CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES - Extra guidelines to inject into cowork memory system
CLAUDE_COWORK_MEMORY_PATH_OVERRIDE - Override the memory directory path in cowork mode
CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX - Prefix for remote control session names. Defaults to os.hostname(), sanitized to lowercase-dashed
CLAUDE_REPL_VARIANT - REPL variant identifier string
CLAUDE_SESSION_INGRESS_TOKEN_FILE - Path to file containing session ingress token
CLAUDE_STREAM_IDLE_TIMEOUT_MS - Stream idle timeout in milliseconds before watchdog kicks in. Default: 90000
LOCAL_BRIDGE - Enable local bridge mode
SESSION_INGRESS_URL - URL for session ingress in remote mode
## IDE Integration
CLAUDE_CODE_AUTO_CONNECT_IDE - Boolean. Automatically connect to detected IDE. Can be set to '0' to force-disable
CLAUDE_CODE_IDE_HOST_OVERRIDE - Override the IDE host address
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL - Skip automatic IDE extension installation
CLAUDE_CODE_IDE_SKIP_VALID_CHECK - Skip IDE connection validity check
CLAUDE_CODE_SSE_PORT - SSE (Server-Sent Events) port for IDE communication
CURSOR_TRACE_ID - Trace ID from Cursor IDE
VSCODE_GIT_ASKPASS_MAIN - Path to VS Code git askpass helper. Used for IDE detection
ZED_TERM - Detected when running inside Zed editor terminal
## OpenTelemetry (OTEL)
CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS - OTEL flush timeout in milliseconds. Default: 5000
CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS - Debounce interval for OTEL headers helper in milliseconds
CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS - OTEL shutdown timeout in milliseconds. Default: 2000
OTEL_EXPORTER_OTLP_ENDPOINT - OTLP exporter endpoint URL
OTEL_EXPORTER_OTLP_HEADERS - Headers for OTLP exporter requests
OTEL_EXPORTER_OTLP_INSECURE - Allow insecure (non-TLS) OTLP connections
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL - Override OTLP protocol specifically for logs
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL - Override OTLP protocol specifically for metrics
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - Metrics temporality preference (cumulative, delta)
OTEL_EXPORTER_OTLP_PROTOCOL - OTLP transport protocol (grpc, http/protobuf, http/json)
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL - Override OTLP protocol specifically for traces
OTEL_EXPORTER_PROMETHEUS_HOST - Host for Prometheus metrics exporter
OTEL_EXPORTER_PROMETHEUS_PORT - Port for Prometheus metrics exporter
OTEL_LOGS_EXPORTER - Logs exporter type (otlp, console, none)
OTEL_LOGS_EXPORT_INTERVAL - Logs export interval in milliseconds
OTEL_LOG_RAW_API_BODIES - Enable raw API body logging in OTEL. Values: 'file:/path' for file output, truthy for inline, falsy to disable
OTEL_LOG_TOOL_CONTENT - Boolean. Log tool content (input/output) in OTEL spans
OTEL_LOG_TOOL_DETAILS - Boolean. Log detailed tool use information in OTEL spans
OTEL_LOG_USER_PROMPTS - Boolean. Log user prompts in OTEL spans
OTEL_METRICS_EXPORTER - Metrics exporter type (otlp, prometheus, console, none)
OTEL_METRIC_EXPORT_INTERVAL - Metrics export interval in milliseconds
OTEL_TRACES_EXPORTER - Traces exporter type (otlp, console, none)
OTEL_TRACES_EXPORT_INTERVAL - Traces export interval in milliseconds
TRACEPARENT - W3C Trace Context traceparent header. Extracted as parent span for OTEL interactions
TRACESTATE - W3C Trace Context tracestate header. Used with TRACEPARENT for trace propagation
## Datadog
CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS - Datadog log flush interval in milliseconds. Default: 15000
## Profiling & Diagnostics
CLAUDE_CODE_COMMIT_LOG - Enable React commit (render) performance logging. Not related to git commits
CLAUDE_CODE_DEBUG_REPAINTS - Enable debug logging for UI repaints
CLAUDE_CODE_DECSTBM - Force DECSTBM (scroll region) support. Falls back to tengu_marlin_porch feature flag
CLAUDE_CODE_EAGER_FLUSH - Enable eager flushing of output buffers
CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS - Emit session_state_changed system events when the session transitions between idle/running states
CLAUDE_CODE_FORCE_FULLSCREEN_UPSELL - Force display of the fullscreen mode upsell prompt (bypasses dismiss count)
CLAUDE_CODE_FRAME_TIMING_LOG - Path to write frame timing logs
CLAUDE_CODE_NO_FLICKER - Force fullscreen anti-flicker mode. Set to 1 to enable (overrides tmux -CC auto-disable). Set to 0 to force-disable
CLAUDE_CODE_PERFETTO_TRACE - Enable Perfetto trace collection
CLAUDE_CODE_PROFILE_STARTUP - Enable startup profiling
CLAUDE_CODE_SCROLL_SPEED - Terminal scroll speed multiplier. Parsed as float, clamped to max 20. Default: 3 on Windows Terminal, 1 otherwise
CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS - Skip network error handling in fast mode
CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS - Threshold in ms for logging slow operations
CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING - Stall timeout override for testing purposes
CLAUDE_CODE_TUI_JUST_SWITCHED - Set by the harness when TUI mode just switched (e.g., to 'fullscreen'). Used to display the flicker-free rendering hint
CLAUDE_SLOW_FIRST_BYTE_MS - Threshold in milliseconds for logging slow first byte warnings. Default: 30000
## Proxy & TLS
CLAUDE_CODE_CERT_STORE - CA certificate stores to trust. Comma-separated list of 'bundled' and/or 'system'
CLAUDE_CODE_CLIENT_CERT - Path to mTLS client certificate file
CLAUDE_CODE_CLIENT_KEY - Path to mTLS client private key file
CLAUDE_CODE_CLIENT_KEY_PASSPHRASE - Passphrase for the mTLS client private key
CLAUDE_CODE_ENABLE_PROXY_AUTH_HELPER - Enable the proxy authentication helper
CLAUDE_CODE_PROXY_AUTH_HELPER_TTL_MS - Proxy auth helper cache TTL in milliseconds. Parsed as int, must be >= 0
CLAUDE_CODE_PROXY_RESOLVES_HOSTS - Boolean. Indicate that the proxy handles DNS resolution
CLAUDE_CODE_SIMULATE_PROXY_USAGE - Simulate proxy behavior by stripping beta headers from API requests (for testing)
HTTPS_PROXY - HTTPS proxy URL for outbound connections
HTTP_PROXY - HTTP proxy URL for outbound connections
NODE_EXTRA_CA_CERTS - Path to additional CA certificates file (PEM format)
NODE_TLS_REJECT_UNAUTHORIZED - Set to '0' to disable TLS certificate validation (insecure)
NODE_USE_SYSTEM_CA - Use the system CA certificate store
NO_PROXY - Comma-separated list of hosts/domains that bypass the proxy
SSL_CERT_FILE - Path to SSL certificate bundle file
## Tmux
CLAUDE_CODE_TMUX_PREFIX - Override the tmux prefix key
CLAUDE_CODE_TMUX_PREFIX_CONFLICTS - Handle tmux prefix key conflicts
CLAUDE_CODE_TMUX_SESSION - Tmux session name for Claude Code
CLAUDE_CODE_TMUX_TRUECOLOR - Preserve detected truecolor level under tmux. When set, prevents the automatic downgrade to 256 colors inside tmux
TMUX - Detected when running inside tmux. Used for terminal detection
TMUX_PANE - Current tmux pane identifier
## Git & CI Detection
BUILDKITE - Detected when running in Buildkite CI
CIRCLECI - Detected when running in CircleCI
CLAUDE_CODE_ACTION - Boolean. Indicates running as a GitHub Action. Sets entrypoint to claude-code-github-action
CLAUDE_CODE_BASE_REF - Override the base git ref for diff operations. Falls back to auto-detected default branch
CLAUDE_CODE_BASE_REFS - Env-map (key=value) of base git refs per repo checkout. Used with CLAUDE_CODE_REPO_CHECKOUTS
CLAUDE_CODE_PERFORCE_MODE - Enable Perforce source control mode. Affects file permission/lock handling
CLAUDE_CODE_REPO_CHECKOUTS - Env-map (key=value) of repo name to checkout path. Used with CLAUDE_CODE_BASE_REFS for multi-repo workflows
CLAUDE_CODE_SKIP_PROMPT_HISTORY - Skip saving prompts to history
GITHUB_ACTIONS - Detected when running in GitHub Actions CI
GITHUB_ACTION_INPUTS - JSON-encoded inputs for GitHub Action
GITHUB_ACTION_PATH - Path to the GitHub Action directory
GITHUB_ACTOR - GitHub username that triggered the workflow
GITHUB_ACTOR_ID - GitHub user ID that triggered the workflow
GITHUB_ENV - Path to GitHub Actions environment file
GITHUB_EVENT_NAME - Name of the GitHub event that triggered the workflow
GITHUB_EVENT_PATH - Path to GitHub Actions event payload JSON
GITHUB_REPOSITORY - GitHub repository in owner/repo format
GITHUB_REPOSITORY_ID - GitHub repository numeric ID
GITHUB_REPOSITORY_OWNER - GitHub repository owner
GITHUB_REPOSITORY_OWNER_ID - GitHub repository owner numeric ID
GITHUB_TOKEN - GitHub authentication token
GITHUB_WORKSPACE - GitHub Actions workspace directory path
GITLAB_CI - Detected when running in GitLab CI
RUNNER_ENVIRONMENT - CI runner environment identifier
RUNNER_OS - CI runner operating system
## SWE-Bench & Testing
CLAUDE_CODE_TEST_FIXTURES_ROOT - Root directory for test fixtures
CLAUDE_CODE_ULTRAREVIEW_PREFLIGHT_FIXTURE - Test fixture (JSON) for ultrareview preflight check. For testing only
SWE_BENCH_INSTANCE_ID - SWE-bench instance identifier
SWE_BENCH_RUN_ID - SWE-bench run identifier for benchmarking
SWE_BENCH_TASK_ID - SWE-bench task identifier
TEST_ENABLE_SESSION_PERSISTENCE - Enable session persistence in tests
TEST_GRACEFUL_FS_GLOBAL_PATCH - Enable graceful-fs global patching in tests
VCR_RECORD - VCR recording mode for test replay
## Terminal Detection
ALACRITTY_LOG - Alacritty terminal log path. Used for terminal detection
BAT_THEME - Theme for bat syntax highlighter
CLI_WIDTH - Override terminal width for formatting
COLORFGBG - Terminal foreground/background color hint. Parsed to detect dark (0-6, 8) vs light theme
COLORTERM - Color terminal capability (e.g., truecolor)
FORCE_COLOR - Force color output regardless of terminal detection
GNOME_TERMINAL_SERVICE - GNOME Terminal service name. Used for terminal detection
ITERM_SESSION_ID - iTerm2 session identifier. Used for terminal detection
KITTY_WINDOW_ID - Kitty terminal window ID. Used for terminal detection
KONSOLE_VERSION - KDE Konsole version. Used for terminal detection
LC_TERMINAL - Terminal identifier from locale settings
NO_COLOR - Standard NO_COLOR env var. Disables colors when set (unless FORCE_COLOR is also set)
SESSIONNAME - Windows session name. Used for terminal detection
STY - GNU Screen session identifier
TERM - Terminal type identifier
TERMINAL - Generic terminal identifier for detection
TERMINAL_EMULATOR - Terminal emulator identifier (e.g., JetBrains-JediTerm)
TERMINATOR_UUID - Terminator terminal UUID. Used for terminal detection
TERM_PROGRAM - Terminal program name (e.g., iTerm.app, Apple_Terminal)
TERM_PROGRAM_VERSION - Terminal program version
TILIX_ID - Tilix terminal ID. Used for terminal detection
VTE_VERSION - VTE (GNOME Terminal) version. Used for terminal detection
WT_SESSION - Windows Terminal session ID. Used for terminal detection
XTERM_VERSION - xterm version. Used for terminal detection
ZELLIJ - Detected when running inside Zellij multiplexer
## Cloud Platform Detection
APP_URL - Application URL. Checked for DigitalOcean App Platform detection
AWS_EXECUTION_ENV - AWS execution environment (AWS_ECS_FARGATE, AWS_ECS_EC2). Used for platform detection
AWS_LAMBDA_FUNCTION_NAME - AWS Lambda function name. Used for platform detection
AZURE_FUNCTIONS_ENVIRONMENT - Azure Functions environment. Used for platform detection
C9_PID - AWS Cloud9 process ID. Used for platform detection
C9_USER - AWS Cloud9 user. Used for platform detection
CF_PAGES - Detected when running on Cloudflare Pages
CLOUD_RUN_JOB - Google Cloud Run Job identifier
CLOUD_WORKSTATIONS_CLUSTER_ID - Google Cloud Workstations cluster ID. Used for platform detection
CODER - Detected when running in a Coder workspace
CODER_WORKSPACE_NAME - Coder workspace name. Used for platform detection
CODESPACES - Detected when running in GitHub Codespaces
DAYTONA_WS_ID - Daytona workspace ID. Used for platform detection
DENO_DEPLOYMENT_ID - Deno Deploy deployment ID. Used for platform detection
DEVPOD - Detected when running in a DevPod workspace
DEVPOD_WORKSPACE_UID - DevPod workspace UID. Used for platform detection
DYNO - Heroku dyno identifier. Used for platform detection
FLY_APP_NAME - Fly.io application name. Used for platform detection
FLY_MACHINE_ID - Fly.io machine ID. Used for platform detection
FUNCTION_NAME - Google Cloud Functions function name
FUNCTION_TARGET - Google Cloud Functions target
GAE_MODULE_NAME - Google App Engine module name
GAE_SERVICE - Google App Engine service name
GCLOUD_PROJECT - Legacy GCP project ID
GITPOD_WORKSPACE_ID - Gitpod workspace ID. Used for platform detection
KUBERNETES_SERVICE_HOST - Kubernetes service host. Used for platform detection
K_CONFIGURATION - Google Cloud Run/Knative configuration
K_SERVICE - Google Cloud Run/Knative service name
NETLIFY - Detected when running on Netlify
P4PORT - Perforce server port
PROJECT_DOMAIN - Glitch project domain
RAILWAY_ENVIRONMENT_NAME - Railway environment name
RAILWAY_SERVICE_NAME - Railway service name
RENDER - Detected when running on Render
REPL_ID - Replit repl ID
REPL_SLUG - Replit repl slug
SPACE_CREATOR_USER_ID - HuggingFace Spaces creator user ID
SYSTEM_OIDCREQUESTURI - Azure DevOps OIDC request URI
VERCEL - Detected when running on Vercel
WEBSITE_SITE_NAME - Azure App Service site name. Used for platform detection
WEBSITE_SKU - Azure App Service SKU. Used for platform detection
## Azure Identity
AZURE_ADDITIONALLY_ALLOWED_TENANTS - Semicolon-separated list of additional allowed Azure tenants
AZURE_AUTHORITY_HOST - Azure authority host URL. Default: login.microsoftonline.com
AZURE_CLIENT_CERTIFICATE_PASSWORD - Password for the Azure client certificate
AZURE_CLIENT_CERTIFICATE_PATH - Path to Azure client certificate for certificate-based auth
AZURE_CLIENT_ID - Azure application (client) ID
AZURE_CLIENT_SECRET - Azure client secret for service principal authentication
AZURE_CLIENT_SEND_CERTIFICATE_CHAIN - Boolean. Send the full certificate chain for SNI
AZURE_FEDERATED_TOKEN_FILE - Path to Azure federated token file for workload identity
AZURE_IDENTITY_DISABLE_MULTITENANTAUTH - Disable multi-tenant authentication in Azure Identity
AZURE_PASSWORD - Azure password for username/password authentication
AZURE_POD_IDENTITY_AUTHORITY_HOST - Azure Pod Identity authority host for IMDS
AZURE_REGIONAL_AUTHORITY_NAME - Azure regional authority for token requests (e.g., AutoDiscoverRegion)
AZURE_TENANT_ID - Azure Active Directory tenant ID
AZURE_TOKEN_CREDENTIALS - Azure credential mode: 'dev' for development credentials, 'prod' for production credentials
AZURE_USERNAME - Azure username for username/password authentication
## System & Runtime
APPDATA - Application data directory (Windows). Used for config file discovery
BROWSER - Default browser for opening URLs
DEMO_VERSION - Demo version identifier
EDITOR - Default text editor
HOME - User home directory path
IS_DEMO - Boolean. Indicates running in demo mode
IS_SANDBOX - Boolean. Indicates running inside a sandbox environment
LANG - System locale setting
LC_ALL - Override all locale settings
LC_TIME - Time-related locale setting
LOCALAPPDATA - Local application data directory (Windows)
MSYSTEM - MSYS2/MinGW system type
OSTYPE - Operating system type identifier
PATH - System executable search path
PATHEXT - Executable file extensions (Windows)
PREFIX - Termux PREFIX path. Used with TERMUX_VERSION for tmp directory resolution on Termux
PWD - Current working directory
SAFEUSER - Sanitized username for safe filesystem operations
SHELL - User's default shell
SSH_CLIENT - SSH client connection info. Used for remote detection
SSH_CONNECTION - SSH connection details. Used for remote detection
SSH_TTY - SSH TTY device. Used for remote detection
SYSTEMROOT - Windows system root directory
TERMUX_VERSION - Termux version string. Used to detect Termux and resolve its tmp directory
USER - Current username
USERNAME - Current username (Windows)
USERPROFILE - User profile directory (Windows)
UV_THREADPOOL_SIZE - libuv thread pool size for async I/O
VERBOSE_SSR - Enable verbose server-side rendering logs
VISUAL - Default visual editor
WSL_DISTRO_NAME - WSL distribution name. Used for platform detection
XDG_CONFIG_HOME - XDG configuration directory. Used for config file lookup
XDG_RUNTIME_DIR - XDG runtime directory
## Node.js & Bun
BUN_DISABLE_DYNAMIC_CHUNK_SIZE - Set to '1' to disable dynamic chunk sizing in Bun
BUN_ENV - Bun runtime environment
BUN_FEEDBACK_URL - URL for Bun feedback submission. Default: https://bun.report/v1/feedback
BUN_INSPECT_NOTIFY - URL for Bun inspector notification (unix:// protocol)
BUN_INSTALL - Bun installation directory. Default: ~/.bun
BUN_JS_DEBUG - Enable Bun JavaScript debug logging
COREPACK_ENABLE_AUTO_PIN - Enable Corepack auto-pinning of package managers
GRACEFUL_FS_PLATFORM - Override platform detection for graceful-fs
MODIFIERS_NODE_PATH - Custom Node.js path for module resolution
NODE_CLUSTER_SCHED_POLICY - Node.js cluster scheduling policy
NODE_DEBUG - Node.js debug module filter
NODE_ENV - Node.js environment (development, production, test)
NODE_OPTIONS - Additional Node.js CLI options
NODE_UNIQUE_ID - Node.js cluster worker unique ID
PKG_CONFIG_PATH - pkg-config search path
SHARP_FORCE_GLOBAL_LIBVIPS - Force Sharp to use globally installed libvips
SHARP_IGNORE_GLOBAL_LIBVIPS - Force Sharp to ignore globally installed libvips
## gRPC
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH - Path to custom SSL roots file for gRPC
GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION - Enable experimental gRPC outlier detection
GRPC_NODE_TRACE - gRPC Node.js specific trace categories
GRPC_NODE_USE_ALTERNATIVE_RESOLVER - Use alternative DNS resolver for gRPC in Node.js
GRPC_NODE_VERBOSITY - gRPC Node.js specific verbosity level
GRPC_SSL_CIPHER_SUITES - Override SSL cipher suites for gRPC connections
GRPC_TRACE - gRPC trace categories for debugging
GRPC_VERBOSITY - gRPC log verbosity level
## Brief Mode
CLAUDE_CODE_BRIEF - Enable brief mode for compact output. Requires entitlement or Claude.ai auth
CLAUDE_CODE_BRIEF_UPLOAD - Enable brief attachment uploading. Also enabled when replBridgeEnabled is true
## Accessibility
CLAUDE_CODE_ACCESSIBILITY - Enable accessibility mode. Disables cursor hiding and visual animations
## Chrome Extension
CLAUDE_CHROME_PERMISSION_MODE - Set permission mode for Claude-in-Chrome extension
## Security
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD - Boolean. Load CLAUDE.md files from additional directories
CLAUDE_CODE_ADDITIONAL_PROTECTION - Boolean. Add x-anthropic-additional-protection header to API requests
CLAUDE_CODE_BUBBLEWRAP - Set to '1' to indicate running inside Bubblewrap sandbox. Allows --dangerously-skip-permissions with root
CLAUDE_CODE_SANDBOXED - Boolean. Indicates Claude Code is running in a sandboxed environment. Bypasses trust dialog
CLAUDE_CODE_SCRIPT_CAPS - JSON object mapping script names to numeric capability limits. Scripts not listed have no caps
## Miscellaneous & Internal
AWS_LAMBDA_BENCHMARK_MODE - Set to '1' to enable Lambda benchmark testing mode
BETA_TRACING_ENDPOINT - Endpoint URL for beta tracing. Used together with ENABLE_BETA_TRACING_DETAILED
BUGHUNTER_DEV_BUNDLE_B64 - Base64-encoded development bundle passed to the bughunter agent subprocess
CHOKIDAR_INTERVAL - Polling interval for Chokidar file watcher in milliseconds
CHOKIDAR_USEPOLLING - Force Chokidar to use polling instead of native file watching
CLAUBBIT - Boolean. Indicates running in Claubbit mode. Skips trust dialog
CLAUDE_CODE_ATTRIBUTION_HEADER - Control the attribution header in API requests. Set to '0' to disable
CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS - Timeout in milliseconds for session-end hook execution
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB - Scrub environment variables from subprocesses
CLAUDE_FORCE_DISPLAY_SURVEY - Force display of the user survey
DEBUG - Enable debug output for various modules
DEBUG_AUTH - Enable debug output for authentication
DEBUG_SDK - Enable debug output for the Anthropic SDK
FORCE_CODE_TERMINAL - Force code terminal mode
SRT_DEBUG - Enable SRT (Secure Reliable Transport) debug logging
VOICE_STREAM_BASE_URL - Base URL for voice streaming service
@unkn0wncode
Copy link
Copy Markdown
Author

@n0isy hey, basically from CC binary itself :p

@unkn0wncode
Copy link
Copy Markdown
Author

43 added between 2.1.63 and 2.1.81:

ANTHROPIC_CUSTOM_MODEL_OPTION - Custom model ID to add to the model selector dropdown
ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION - Description text for the custom model option
ANTHROPIC_CUSTOM_MODEL_OPTION_NAME - Display name for the custom model option
ANTHROPIC_UNIX_SOCKET - Unix socket path for Anthropic API connections
CCR_ENABLE_BUNDLE - Enable code bundle uploads for CCR
CCR_FORCE_BUNDLE - Force code bundle uploads for CCR regardless of feature flag
CLAUDE_BRIDGE_USE_CCR_V2 - Use CCR v2 protocol for bridge/session connections
CLAUDE_CODE_ACCOUNT_TAGGED_ID - Tagged account ID for OTEL metrics
CLAUDE_CODE_ALWAYS_ENABLE_EFFORT - Force effort level support on all models
CLAUDE_CODE_AUTO_COMPACT_WINDOW - Override the auto-compaction context window size
CLAUDE_CODE_BRIEF - Enable brief mode for compact output
CLAUDE_CODE_BRIEF_UPLOAD - Enable brief attachment uploading
CLAUDE_CODE_DEBUG_LOG_LEVEL - Debug log level (verbose, debug, info, warn, error)
CLAUDE_CODE_DISABLE_CRON - Disable cron/scheduled task functionality
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS - Disable git-related instructions in system prompt
CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP - Disable legacy model name remapping
CLAUDE_CODE_DISABLE_PRECOMPACT_SKIP - Disable skipping of pre-compaction optimization
CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL - Disable virtual scrolling in the UI
CLAUDE_CODE_EXTRA_METADATA - Extra metadata to include in API request metadata
CLAUDE_CODE_FRAME_TIMING_LOG - Path to write frame timing logs
CLAUDE_CODE_MCP_INSTR_DELTA - Delta value for MCP instruction processing
CLAUDE_CODE_NEW_INIT - Trigger new initialization flow
CLAUDE_CODE_QUESTION_PREVIEW_FORMAT - Format for question preview display
CLAUDE_CODE_SEARCH_HINTS_IN_LIST - Show search hints in list views
CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS - Timeout for session-end hook execution
CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS - Skip network error handling in fast mode
CLAUDE_CODE_SSE_PORT - SSE port for IDE communication
CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING - Stall timeout override for testing
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB - Scrub environment variables from subprocesses
CLAUDE_CODE_USE_POWERSHELL_TOOL - Use PowerShell instead of Bash
CLAUDE_CODE_WORKSPACE_HOST_PATHS - Host paths for workspace mapping in containers
CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES - Extra guidelines for cowork memory
CLAUDE_COWORK_MEMORY_PATH_OVERRIDE - Override memory directory path in cowork mode
CLI_WIDTH - Override terminal width for formatting
EMBEDDED_SEARCH_TOOLS - Enable embedded search tools
LANG - System locale setting
LC_ALL - Override all locale settings
LC_TERMINAL - Terminal identifier from locale settings
LC_TIME - Time-related locale setting
MCP_OAUTH_CLIENT_METADATA_URL - URL for MCP OAuth client metadata
REVIEW_REMOTE - Remote URL for code review service
TEAM_MEMORY_SYNC_URL - URL for team memory synchronization
VCR_RECORD - VCR recording mode for test replay

11 removed since v2.1.63:

AUDIO_CAPTURE_NODE_PATH - Path to audio capture node module
CLAUDECODE - Set to "1" in child shell processes spawned by Claude Code
CLAUDE_CODE_PROFILE_QUERY - Enable per-query profiling
CLAUDE_CODE_SKIP_PRECOMPACT_LOAD - Optimize large session file loading
CLAUDE_CODE_STREAMING_TEXT - Enable streaming text display mode
DISABLE_MICROCOMPACT - Disable microcompact message optimization
ENABLE_BTW - Enable "by the way" suggestions
ENABLE_LSP_TOOL - Enable the LSP tool for code intelligence
ENABLE_SESSION_BACKGROUNDING - Enable session backgrounding via Ctrl+B
MCP_CONNECTION_NONBLOCKING - Make MCP server connections non-blocking
RIPGREP_EMBEDDED - Indicates using the embedded ripgrep binary

@sylasyeager
Copy link
Copy Markdown

THANK YOU SO MUCH!

@unkn0wncode
Copy link
Copy Markdown
Author

Diff: 2.1.81 -> 2.1.100

Added (71):

ANTHROPIC_AWS_API_KEY - API key for Anthropic AWS service
ANTHROPIC_AWS_BASE_URL - Custom base URL for Anthropic AWS endpoint
ANTHROPIC_AWS_WORKSPACE_ID - Workspace ID for Anthropic AWS service
ANTHROPIC_BEDROCK_MANTLE_BASE_URL - Custom base URL for Bedrock Mantle endpoint. Defaults to https://bedrock-mantle.{region}.api.aws/anthropic
ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION - Description text for custom Haiku model override
ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME - Display name for custom Haiku model override
ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION - Description text for custom Opus model override
ANTHROPIC_DEFAULT_OPUS_MODEL_NAME - Display name for custom Opus model override
ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION - Description text for custom Sonnet model override
ANTHROPIC_DEFAULT_SONNET_MODEL_NAME - Display name for custom Sonnet model override
ANTHROPIC_VERTEX_BASE_URL - Custom base URL for Vertex AI endpoint (replaces VERTEX_BASE_URL)
BAT_THEME - Theme for bat syntax highlighter
BUGHUNTER_DEV_BUNDLE_B64 - Base64-encoded development bundle passed to the bughunter agent subprocess
CCR_UPSTREAM_PROXY_ENABLED - Enable upstream proxy for Claude Code Remote. Requires CLAUDE_CODE_REMOTE and CLAUDE_CODE_REMOTE_SESSION_ID
CLAUDE_CODE_AGENT_COST_STEER - Override agent cost-based steering. Defaults based on subscription tier (pro/max) via feature flag
CLAUDE_CODE_AGENT_LIST_IN_MESSAGES - Override whether the agent list is attached to messages. Defaults to tengu_agent_list_attach feature flag
CLAUDE_CODE_COMMIT_LOG - Enable React commit (render) performance logging. Not related to git commits
CLAUDE_CODE_DEBUG_REPAINTS - Enable debug logging for UI repaints
CLAUDE_CODE_DISABLE_ADVISOR_TOOL - Disable the advisor tool
CLAUDE_CODE_DISABLE_CLAUDE_API_SKILL - Disable the Claude API skill
CLAUDE_CODE_DISABLE_MOUSE - Disable mouse input in the terminal UI
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK - Disable fallback to non-streaming API mode
CLAUDE_CODE_DISABLE_POLICY_SKILLS - Disable policy-based skill loading
CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS - Emit session_state_changed system events when the session transitions between idle/running states
CLAUDE_CODE_ENABLE_XAA - Enable XAA (Cross-Application Authentication) support for MCP servers via OIDC IdP
CLAUDE_CODE_IDLE_THRESHOLD_MINUTES - Idle threshold in minutes before prompting for session action. Default: 75
CLAUDE_CODE_IDLE_TOKEN_THRESHOLD - Token count (context size) threshold before prompting for session action. Default: 100000
CLAUDE_CODE_MAX_CONTEXT_TOKENS - Max context tokens override. Only applied when DISABLE_COMPACT is set. Parsed as int, must be > 0
CLAUDE_CODE_MCP_ALLOWLIST_ENV - Enable env var allowlist filtering for MCP servers. Default: enabled only for local-agent entrypoint
CLAUDE_CODE_NO_FLICKER - Force fullscreen anti-flicker mode. Set to 1 to enable (overrides tmux -CC auto-disable). Set to 0 to force-disable
CLAUDE_CODE_PERFORCE_MODE - Enable Perforce source control mode. Affects file permission/lock handling
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE - Keep the existing marketplace clone when git pull fails instead of re-cloning
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST - Indicates the API provider is managed by the host environment. Treated as a provider selector alongside CLAUDE_CODE_USE_BEDROCK/VERTEX/etc
CLAUDE_CODE_PWSH_PARSE_TIMEOUT_MS - PowerShell command parse timeout in milliseconds. Parsed as int, must be > 0
CLAUDE_CODE_RESUME_THRESHOLD_MINUTES - Minutes since last message before prompting to resume the session. Default: 70
CLAUDE_CODE_RESUME_TOKEN_THRESHOLD - Token threshold for resume prompt. Default: 100000
CLAUDE_CODE_SANDBOXED - Boolean. Indicates Claude Code is running in a sandboxed environment. Bypasses trust dialog
CLAUDE_CODE_SCRIPT_CAPS - JSON object mapping script names to numeric capability limits. Scripts not listed have no caps
CLAUDE_CODE_SCROLL_SPEED - Terminal scroll speed multiplier. Parsed as float, clamped to max 20. Default: 3 on Windows Terminal, 1 otherwise
CLAUDE_CODE_SIMULATE_PROXY_USAGE - Simulate proxy behavior by stripping beta headers from API requests (for testing)
CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH - Skip authentication for Anthropic AWS service
CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK - Skip organization check in fast mode
CLAUDE_CODE_SKIP_MANTLE_AUTH - Skip authentication for Bedrock Mantle
CLAUDE_CODE_TEAM_ONBOARDING - Enable the team-onboarding command. Also gated by tengu_flint_harbor feature flag
CLAUDE_CODE_TMUX_TRUECOLOR - Preserve detected truecolor level under tmux. When set, prevents the automatic downgrade to 256 colors inside tmux
CLAUDE_CODE_USE_ANTHROPIC_AWS - Route API calls through Anthropic AWS service
CLAUDE_CODE_USE_MANTLE - Route API calls through Bedrock Mantle
CLAUDE_LOCAL_OAUTH_API_BASE - Local OAuth API base URL for development
CLAUDE_LOCAL_OAUTH_APPS_BASE - Local OAuth apps base URL for development
CLAUDE_LOCAL_OAUTH_CONSOLE_BASE - Local OAuth console base URL for development
CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX - Prefix for remote control session names. Defaults to os.hostname(), sanitized to lowercase-dashed
CLAUDE_SESSION_INGRESS_TOKEN_FILE - Path to file containing session ingress token
CLAUDE_STREAM_IDLE_TIMEOUT_MS - Stream idle timeout in milliseconds before watchdog kicks in. Default: 90000
CLAUDE_TRUSTED_DEVICE_TOKEN - Pre-set trusted device token. When set, skips trusted device enrollment (env var takes precedence)
CLOUDSDK_CONFIG - Google Cloud SDK configuration directory
COLORFGBG - Terminal foreground/background color hint. Parsed to detect dark (0-6, 8) vs light theme
DO_NOT_TRACK - Disable telemetry and tracking when set to 1
GITHUB_ENV - Path to GitHub Actions environment file
GITHUB_EVENT_PATH - Path to GitHub Actions event payload JSON
GITHUB_OUTPUT - Path to GitHub Actions output file
GITHUB_PATH - Path to GitHub Actions PATH file
GITHUB_STATE - Path to GitHub Actions state file
GITHUB_STEP_SUMMARY - Path to GitHub Actions step summary file
GITHUB_TOKEN - GitHub authentication token
MCP_CONNECTION_NONBLOCKING - Make MCP server connections non-blocking
MCP_TRUNCATION_PROMPT_OVERRIDE - Override MCP output truncation prompt mode. Accepts 'subagent' or 'legacy'. Defaults to tengu_mcp_subagent_prompt feature flag
MCP_XAA_IDP_CLIENT_SECRET - IdP client secret for MCP XAA (Cross-Application Authentication). Read by the --client-secret CLI flag
SSL_CERT_FILE - Path to SSL certificate bundle file
SYSTEMROOT - Windows system root directory
TERMINAL - Generic terminal identifier for detection
ZELLIJ - Detected when running inside Zellij multiplexer

Removed (13):

ANALYTICS_LOG_TOOL_DETAILS - Log detailed tool use analytics
BEDROCK_BASE_URL - Custom base URL for AWS Bedrock API endpoint
CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECK - Disable command injection safety checks in Bash tool
CLAUDE_CODE_FORCE_GLOBAL_CACHE - Force use of global cache directory
CLAUDE_CODE_MCP_INSTR_DELTA - Delta value for MCP instruction processing
CLAUDE_CODE_SAVE_HOOK_ADDITIONAL_CONTEXT - Save additional context during hook execution
CLAUDE_CODE_SEARCH_HINTS_IN_LIST - Show search hints in list views
CLAUDE_REPL_MODE - Enable REPL (Read-Eval-Print Loop) mode
DISABLE_AUTO_MIGRATE_TO_NATIVE - Disable automatic migration to native platform
DISABLE_CLAUDE_CODE_SM_COMPACT - Disable smart compaction feature
REVIEW_REMOTE - Remote URL for code review service
TMPDIR - System temporary directory
VERTEX_BASE_URL - Custom base URL for Vertex AI API endpoint

@NubeBuster
Copy link
Copy Markdown

Doing gods (actually, anthropic's) work!

these two
CLAUDE_CODE_EXTRA_BODY - Extra JSON body parameters to include in API requests
CLAUDE_CODE_EXTRA_METADATA - Extra metadata to include in API request metadata field

Have you found any more information on them. Or might you be able to check easily? Or if you don't have the time or will to find out for me, could you share a little more on the extraction method. I really want to know about these. Especially the variable values and their implications. I am not new to reverse engineering. Haven't tried for C... Checked your messages, you said CC binary, not C; what will I have to deal with? I prefer spoonfeed but a rod is greatly appreciated as well. I am a fisherman.

@unkn0wncode
Copy link
Copy Markdown
Author

Diff: 2.1.100 -> 2.1.118

Added (52):

ANTHROPIC_CONFIG_DIR - Override Anthropic config directory. Falls back to XDG_CONFIG_HOME/anthropic, then HOME/.config/anthropic
ANTHROPIC_FEDERATION_RULE_ID - Federation rule ID for OIDC federation auth mode (env-quad)
ANTHROPIC_ORGANIZATION_ID - Organization ID for OIDC federation auth mode (env-quad)
ANTHROPIC_PROFILE - Explicit profile name to use from the credentials file. Defaults to 'default'
API_FORCE_IDLE_TIMEOUT - Force idle timeout on API connections under Bun. When truthy, re-enables the timeout that is disabled by default
C9_PID - AWS Cloud9 process ID. Used for platform detection
C9_USER - AWS Cloud9 user. Used for platform detection
CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS - Async agent stall timeout in milliseconds. Default: 600000 (10 minutes)
CLAUDE_BG_BACKEND - Background backend mode. Set to 'daemon' to ignore SIGHUP (daemon-managed background)
CLAUDE_BRIDGE_REATTACH_SEQ - Sequence number for bridge reattach. Parsed as int. Consumed and deleted after read
CLAUDE_BRIDGE_REATTACH_SESSION - Session ID to reattach to in bridge mode. Consumed and deleted after read
CLAUDE_CODE_BASE_REFS - Env-map (key=value) of base git refs per repo checkout. Used with CLAUDE_CODE_REPO_CHECKOUTS
CLAUDE_CODE_CERT_STORE - CA certificate stores to trust. Comma-separated list of 'bundled' and/or 'system'
CLAUDE_CODE_DECSTBM - Force DECSTBM (scroll region) support. Falls back to tengu_marlin_porch feature flag
CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT - Enable appending to subagent system prompt via appendSubagentSystemPrompt option
CLAUDE_CODE_ENABLE_AWAY_SUMMARY - Override away summary feature. Defaults to tengu_sedge_lantern feature flag and setting
CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH - Enable background plugin refresh after initialization when a refresh is needed
CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL - Enable the experimental advisor tool. First-party only, also gated by tengu_sage_compass2 feature flag
CLAUDE_CODE_ENABLE_PROXY_AUTH_HELPER - Enable the proxy authentication helper
CLAUDE_CODE_FORCE_FULLSCREEN_UPSELL - Force display of the fullscreen mode upsell prompt (bypasses dismiss count)
CLAUDE_CODE_FORK_SUBAGENT - Enable forking subagents. Forced off when signed in with Claude AI OAuth. Otherwise falls back to tengu_copper_fox feature flag
CLAUDE_CODE_PROXY_AUTH_HELPER_TTL_MS - Proxy auth helper cache TTL in milliseconds. Parsed as int, must be >= 0
CLAUDE_CODE_RATE_LIMIT_TIER - Rate limit tier for the OAuth session. Used with CLAUDE_CODE_OAUTH_TOKEN
CLAUDE_CODE_REPL - Enable/disable REPL mode explicitly. Takes precedence over the default (tengu_slate_harbor feature flag)
CLAUDE_CODE_REPO_CHECKOUTS - Env-map (key=value) of repo name to checkout path. Used with CLAUDE_CODE_BASE_REFS for multi-repo workflows
CLAUDE_CODE_RESUME_FROM_SESSION - Session ID to hydrate/teleport from when resuming a session
CLAUDE_CODE_RETRY_WATCHDOG - Enable retry watchdog. Only active on linux with CLAUDE_CODE_ENTRYPOINT=remote
CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH - Indicates the SDK host has OAuth refresh capability. Triggers token refresh request via SDK
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT - Use the simple system prompt only. Also implied by CLAUDE_CODE_SIMPLE
CLAUDE_CODE_SUBSCRIPTION_TYPE - Override subscription type for the OAuth session. Used with CLAUDE_CODE_OAUTH_TOKEN
CLAUDE_CODE_SYSTEM_PROMPT_GB_FEATURE - GrowthBook feature name to fetch remote system prompt override from. Only read in CLAUDE_CODE_REMOTE mode
CLAUDE_CODE_TUI_JUST_SWITCHED - Set by the harness when TUI mode just switched (e.g., to 'fullscreen'). Used to display the flicker-free rendering hint
CLAUDE_CODE_ULTRAREVIEW_PREFLIGHT_FIXTURE - Test fixture (JSON) for ultrareview preflight check. For testing only
CLAUDE_ENABLE_BYTE_WATCHDOG - Enable byte-level stream watchdog. Default: on via tengu_stream_watchdog_default_on feature flag
CLAUDE_REPL_VARIANT - REPL variant identifier string
CLAUDE_SLOW_FIRST_BYTE_MS - Threshold in milliseconds for logging slow first byte warnings. Default: 30000
CLOUD_WORKSTATIONS_CLUSTER_ID - Google Cloud Workstations cluster ID. Used for platform detection
CODER - Detected when running in a Coder workspace
CODER_WORKSPACE_NAME - Coder workspace name. Used for platform detection
DAYTONA_WS_ID - Daytona workspace ID. Used for platform detection
DEVPOD - Detected when running in a DevPod workspace
DEVPOD_WORKSPACE_UID - DevPod workspace UID. Used for platform detection
DISABLE_UPDATES - Admin-level disable for updates. Takes precedence over DISABLE_AUTOUPDATER. Shows 'Updates are disabled by your administrator' message
ENABLE_PROMPT_CACHING_1H - Enable 1-hour prompt caching. Works for all providers. Also requires not being on overage
FORCE_PROMPT_CACHING_5M - Force 5-minute prompt caching (overrides 1-hour caching)
GITHUB_WORKSPACE - GitHub Actions workspace directory path
NO_COLOR - Standard NO_COLOR env var. Disables colors when set (unless FORCE_COLOR is also set)
OTEL_LOG_RAW_API_BODIES - Enable raw API body logging in OTEL. Values: 'file:/path' for file output, truthy for inline, falsy to disable
PREFIX - Termux PREFIX path. Used with TERMUX_VERSION for tmp directory resolution on Termux
TERMUX_VERSION - Termux version string. Used to detect Termux and resolve its tmp directory
TRACEPARENT - W3C Trace Context traceparent header. Extracted as parent span for OTEL interactions
TRACESTATE - W3C Trace Context tracestate header. Used with TRACEPARENT for trace propagation

Removed (6):

EMBEDDED_SEARCH_TOOLS - Enable embedded search tools
ENABLE_CLAUDE_CODE_SM_COMPACT - Enable smart compaction feature
GITHUB_OUTPUT - Path to GitHub Actions output file
GITHUB_PATH - Path to GitHub Actions PATH file
GITHUB_STATE - Path to GitHub Actions state file
GITHUB_STEP_SUMMARY - Path to GitHub Actions step summary file

@unkn0wncode
Copy link
Copy Markdown
Author

@NubeBuster
CLAUDE_CODE_EXTRA_BODY - JSON object merged into the API request body. If it contains an anthropic_beta array, those beta flags are merged (deduplicated) with Claude Code's built-in betas. Must be a plain object; arrays/primitives are rejected with an error log

CLAUDE_CODE_EXTRA_METADATA - JSON object whose fields are combined with device_id, account_uuid, and session_id, then hashed to derive the user_id value sent in API request metadata. Must be a plain object; arrays/primitives are rejected

So for extra body only antrophic_beta as an array and output_config object have special handling and rest is just passed as extraBodyParams and forwarded as is.
and yea in the output_config would be just https://platform.claude.com/docs/en/build-with-claude/structured-outputs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment