Created
August 10, 2025 09:54
-
-
Save unkn0wncode/f87295d055dd0f0e8082358a0b5cc467 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Claude Code CLI Environment Variables | |
# This file lists all environment variables used in cli.js with explanations | |
process.env.__CFB - Internal Node.js buffer flag | |
process.env.__MINIMATCH_TESTING_PLATFORM__ - Testing flag for minimatch library platform detection | |
process.env.ALACRITTY_LOG - Alacritty terminal emulator log level configuration | |
process.env.ALIYUN_REGION_ID - Alibaba Cloud region identifier for Chinese cloud services | |
process.env.ANTHROPIC_API_KEY - Primary API key for authenticating with Anthropic's Claude API | |
process.env.ANTHROPIC_AUTH_TOKEN - Alternative authentication token for Anthropic services | |
process.env.ANTHROPIC_BASE_URL - Custom base URL for Anthropic API endpoints | |
process.env.ANTHROPIC_BETAS - Comma-separated list of beta features to enable | |
process.env.ANTHROPIC_CUSTOM_HEADERS - Custom HTTP headers for Anthropic API requests (JSON format) | |
process.env.ANTHROPIC_MODEL - Specifies the default Claude model to use | |
process.env.ANTHROPIC_SMALL_FAST_MODEL - Specifies a smaller, faster model for quick operations | |
process.env.ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION - AWS region for small fast model when using Bedrock | |
process.env.ANTHROPIC_VERTEX_PROJECT_ID - Google Cloud Project ID for Vertex AI integration | |
process.env.API_TIMEOUT_MS - API request timeout in milliseconds | |
process.env.APPDATA - Windows application data directory path | |
process.env.AWS_ACCESS_KEY_ID - AWS access key for Bedrock authentication | |
process.env.AWS_BEARER_TOKEN_BEDROCK - Bearer token for Bedrock authentication | |
process.env.AWS_DEFAULT_REGION - Default AWS region for services | |
process.env.AWS_EXECUTION_ENV - AWS execution environment identifier | |
process.env.AWS_PROFILE - AWS profile name for credential selection | |
process.env.AWS_REGION - AWS region for Bedrock service calls | |
process.env.AWS_SECRET_ACCESS_KEY - AWS secret key for Bedrock authentication | |
process.env.AWS_SESSION_TOKEN - AWS session token for temporary credentials | |
process.env.BASH_DEFAULT_TIMEOUT_MS - Default timeout for bash command execution | |
process.env.BASH_MAX_OUTPUT_LENGTH - Maximum length of bash command output | |
process.env.BASH_MAX_TIMEOUT_MS - Maximum timeout allowed for bash commands | |
process.env.BEDROCK_BASE_URL - Custom base URL for AWS Bedrock API | |
process.env.BROWSER - Default browser executable path | |
process.env.BUN_INSTALL - Bun JavaScript runtime installation directory | |
process.env.C - System C drive or temporary variable | |
process.env.CF_PAGES_COMMIT_SHA - Cloudflare Pages deployment commit SHA | |
process.env.CHOKIDAR_INTERVAL - File watching polling interval in milliseconds (default: 100ms). Sets how frequently files are checked when CHOKIDAR_USEPOLLING=true. Lower values = more responsive but higher CPU usage. Example: CHOKIDAR_INTERVAL=500 for 500ms polling interval. | |
process.env.CHOKIDAR_USEPOLLING - Controls file watching method. Values: "true"/"1" (use polling), "false"/"0" (use native events). Default: false (native events). Set to "true" when native filesystem events don't work (network drives, Docker volumes, WSL). Polling is more resource-intensive but more reliable across different environments. | |
process.env.CLAUBBIT - Internal Anthropic development/debugging flag. Values: "true"/"false". Not intended for end-user configuration. Used for internal testing and feature flags during development. | |
process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR - Controls working directory consistency for bash commands. Values: "1"/"true"/"yes"/"on" (maintain project directory), "0"/"false"/"no"/"off" (allow directory changes). Default: false. When enabled, all bash commands execute in the project directory context for consistency. | |
process.env.CLAUDE_CODE_ACTION - Controls permission mode for Claude Code operations. Values: "acceptEdits" (ask before file changes), "plan" (analysis only, no modifications), "bypassPermissions" (auto-accept all operations), "default" (standard interactive behavior). Use "plan" for safe analysis, "acceptEdits" for careful interactive mode, "bypassPermissions" for automated/CI environments. | |
process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS - Time-to-live for API key helper cache | |
process.env.CLAUDE_CODE_AUTO_CONNECT_IDE - Boolean flag to automatically connect to IDE | |
process.env.CLAUDE_CODE_CLIENT_CERT - Path to client certificate for TLS authentication | |
process.env.CLAUDE_CODE_CLIENT_KEY - Path to client private key for TLS authentication | |
process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE - Passphrase for encrypted client private key | |
process.env.CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECK - Disables command injection security checks | |
process.env.CLAUDE_CODE_DISABLE_FINE_GRAINED_TOOL_STREAMING - Disables detailed tool execution streaming | |
process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC - Reduces non-critical network requests | |
process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE - Prevents updating terminal window title | |
process.env.CLAUDE_CODE_DONT_INHERIT_ENV - Prevents inheriting environment variables | |
process.env.CLAUDE_CODE_ENABLE_TELEMETRY - Boolean flag to enable telemetry collection | |
process.env.CLAUDE_CODE_ENTRYPOINT - Custom application entrypoint. Allows specifying alternative entry points or initialization modules for specialized deployments. Values: file paths or module names. Used for custom initialization scenarios. | |
process.env.CLAUDE_CODE_EXTRA_BODY - Additional JSON data for API requests | |
process.env.CLAUDE_CODE_GIT_BASH_PATH - Path to Git Bash executable on Windows | |
process.env.CLAUDE_CODE_IDE_HOST_OVERRIDE - Custom host for IDE communication | |
process.env.CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL - Skips automatic IDE extension installation | |
process.env.CLAUDE_CODE_IDE_SKIP_VALID_CHECK - Bypasses IDE validation checks | |
process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS - Maximum number of output tokens for responses | |
process.env.CLAUDE_CODE_MAX_RETRIES - Maximum number of request retries on failure | |
process.env.CLAUDE_CODE_OAUTH_TOKEN - OAuth token for authentication | |
process.env.CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS - OpenTelemetry shutdown timeout | |
process.env.CLAUDE_CODE_SHELL_PREFIX - Prefix for shell commands | |
process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH - Skips AWS Bedrock authentication | |
process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH - Skips Google Vertex AI authentication | |
process.env.CLAUDE_CODE_SSE_PORT - Port for Server-Sent Events communication | |
process.env.CLAUDE_CODE_SUBAGENT_MODEL - Model to use for sub-agent operations | |
process.env.CLAUDE_CODE_USE_BEDROCK - Boolean flag to use AWS Bedrock instead of direct API | |
process.env.CLAUDE_CODE_USE_VERTEX - Boolean flag to use Google Vertex AI | |
process.env.CLAUDE_CONFIG_DIR - Custom directory for Claude Code configuration files | |
process.env.CLAUDE_FORCE_DISPLAY_SURVEY - Forces display of user surveys | |
process.env.CLOUD_ML_REGION - Google Cloud ML region configuration | |
process.env.CLOUD_RUN_JOB - Google Cloud Run job identifier | |
process.env.COMMIT_REF - Git commit reference for deployments | |
process.env.COREPACK_ENABLE_AUTO_PIN - Enables automatic package manager pinning | |
process.env.CURSOR_TRACE_ID - Cursor IDE trace identifier for debugging | |
process.env.DEBUG - General debug flag for verbose logging | |
process.env.DEBUG_AUTH - Enables authentication debugging | |
process.env.DETECT_GCP_RETRIES - Configures GCP retry detection logic | |
process.env.DEV - Development mode flag | |
process.env.DISABLE_AUTOUPDATER - Disables automatic updates | |
process.env.DISABLE_BUG_COMMAND - Disables bug reporting command | |
process.env.DISABLE_COST_WARNINGS - Disables API cost warnings | |
process.env.DISABLE_DOCTOR_COMMAND - Disables diagnostic doctor command | |
process.env.DISABLE_ERROR_REPORTING - Disables automatic error reporting | |
process.env.DISABLE_INSTALL_GITHUB_APP_COMMAND - Disables GitHub app installation command | |
process.env.DISABLE_INTERLEAVED_THINKING - Disables interleaved thinking mode. Values: "1"/"true"/"yes"/"on" (disable interleaved thinking). Interleaved thinking allows reasoning to be interspersed with responses for transparency. Disable for more traditional response patterns or when interleaved thinking causes confusion. | |
process.env.DISABLE_LOGIN_COMMAND - Disables login command | |
process.env.DISABLE_LOGOUT_COMMAND - Disables logout command | |
process.env.DISABLE_MICROCOMPACT - Disables microcompact output formatting/compression. Values: "1"/"true"/"yes"/"on" (disable microcompact). Microcompact likely compacts output for efficiency. Disable when you need verbose output or when microcompact causes formatting issues. | |
process.env.DISABLE_MIGRATE_INSTALLER_COMMAND - Disables installer migration command | |
process.env.DISABLE_PROMPT_CACHING - Disables prompt caching optimization | |
process.env.DISABLE_TELEMETRY - Disables telemetry collection | |
process.env.DISABLE_UPGRADE_COMMAND - Disables upgrade command | |
process.env.DYNO - Heroku dyno identifier | |
process.env.EDITOR - Default text editor executable | |
process.env.FLY_REGION - Fly.io deployment region | |
process.env.FORCE_CODE_TERMINAL - Forces terminal/CLI mode even in environments that might default to GUI. Values: "true"/"false". Use in headless environments or when you want to ensure CLI behavior regardless of the detected environment. | |
process.env.FUNCTION_NAME - Cloud function name identifier | |
process.env.FUNCTION_TARGET - Cloud function target endpoint | |
process.env.GAE_MODULE_NAME - Google App Engine module name | |
process.env.GAE_SERVICE - Google App Engine service identifier | |
process.env.GCE_METADATA_HOST - Google Compute Engine metadata server host | |
process.env.GCE_METADATA_IP - Google Compute Engine metadata server IP | |
process.env.GCLOUD_PROJECT - Google Cloud project identifier | |
process.env.GCP_PROJECT - Google Cloud Platform project ID | |
process.env.GITHUB_ACTIONS - GitHub Actions environment indicator | |
process.env.GITHUB_ACTOR - GitHub Actions actor (user/bot) name | |
process.env.GITHUB_ACTOR_ID - GitHub Actions actor unique identifier | |
process.env.GITHUB_EVENT_NAME - GitHub Actions triggering event name | |
process.env.GITHUB_REPOSITORY_ID - GitHub repository unique identifier | |
process.env.GITHUB_REPOSITORY_OWNER - GitHub repository owner name | |
process.env.GITHUB_REPOSITORY_OWNER_ID - GitHub repository owner unique identifier | |
process.env.GITHUB_SHA - GitHub commit SHA that triggered the action | |
process.env.GNOME_TERMINAL_SERVICE - GNOME terminal service identifier | |
process.env.GOOGLE_APPLICATION_CREDENTIALS - Path to Google Cloud service account JSON | |
process.env.GOOGLE_CLOUD_PROJECT - Google Cloud project identifier | |
process.env.GOOGLE_CLOUD_QUOTA_PROJECT - Google Cloud quota project for billing | |
process.env.GRACEFUL_FS_PLATFORM - Graceful-fs library platform detection | |
process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH - gRPC SSL root certificates file path | |
process.env.GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION - Enables gRPC outlier detection | |
process.env.GRPC_NODE_TRACE - Node.js gRPC tracing configuration | |
process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER - Uses alternative gRPC resolver | |
process.env.GRPC_NODE_VERBOSITY - Node.js gRPC verbosity level | |
process.env.GRPC_SSL_CIPHER_SUITES - gRPC SSL cipher suites configuration | |
process.env.GRPC_TRACE - gRPC tracing configuration | |
process.env.GRPC_VERBOSITY - gRPC verbosity level | |
process.env.HOME - User home directory path (Unix/Linux/macOS) | |
process.env.HTTP_PROXY - HTTP proxy server URL | |
process.env.HTTPS_PROXY - HTTPS proxy server URL | |
process.env.IBM_CLOUD_REGION - IBM Cloud region identifier | |
process.env.IS_DEMO - Demo mode flag | |
process.env.IS_SANDBOX - Sandbox environment flag | |
process.env.JEST_WORKER_ID - Jest test worker process identifier | |
process.env.K_CONFIGURATION - Knative configuration name | |
process.env.K_SERVICE - Knative service name | |
process.env.KITTY_WINDOW_ID - Kitty terminal window identifier | |
process.env.KONSOLE_VERSION - KDE Konsole terminal version | |
process.env.LOCALAPPDATA - Windows local application data directory | |
process.env.MAX_MCP_OUTPUT_TOKENS - Maximum tokens for MCP server outputs | |
process.env.MAX_THINKING_TOKENS - Maximum tokens for model thinking steps | |
process.env.MCP_OAUTH_CALLBACK_PORT - Port for OAuth callback in MCP authentication | |
process.env.MCP_SERVER_CONNECTION_BATCH_SIZE - Batch size for MCP server connections | |
process.env.MCP_TIMEOUT - General timeout for MCP operations | |
process.env.MCP_TOOL_TIMEOUT - Specific timeout for MCP tool execution | |
process.env.METADATA_SERVER_DETECTION - Controls cloud metadata server detection | |
process.env.MSYSTEM - MSYS2/MinGW system type (Windows) | |
process.env.NETLIFY - Netlify deployment environment indicator | |
process.env.NO_PROXY - Domains to exclude from proxy usage | |
process.env.NODE_DEBUG - Node.js debug modules to enable | |
process.env.NODE_EXTRA_CA_CERTS - Path to additional Node.js CA certificates | |
process.env.NODE_OPTIONS - Node.js runtime options | |
process.env.NODE_V8_COVERAGE - V8 code coverage output directory | |
process.env.OSTYPE - Operating system type identifier | |
process.env.OTEL_EXPORTER_OTLP_ENDPOINT - OpenTelemetry OTLP exporter endpoint | |
process.env.OTEL_EXPORTER_OTLP_HEADERS - OpenTelemetry OTLP exporter headers | |
process.env.OTEL_EXPORTER_OTLP_INSECURE - OpenTelemetry OTLP insecure connection flag | |
process.env.OTEL_EXPORTER_OTLP_LOGS_PROTOCOL - OpenTelemetry logs protocol | |
process.env.OTEL_EXPORTER_OTLP_METRICS_PROTOCOL - OpenTelemetry metrics protocol | |
process.env.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - OpenTelemetry metrics temporality | |
process.env.OTEL_EXPORTER_OTLP_PROTOCOL - OpenTelemetry OTLP protocol | |
process.env.OTEL_EXPORTER_PROMETHEUS_HOST - Prometheus exporter host | |
process.env.OTEL_EXPORTER_PROMETHEUS_PORT - Prometheus exporter port | |
process.env.OTEL_LOG_USER_PROMPTS - Enables logging of user prompts in telemetry | |
process.env.OTEL_LOGS_EXPORT_INTERVAL - OpenTelemetry logs export interval | |
process.env.OTEL_LOGS_EXPORTER - OpenTelemetry logs exporter configuration | |
process.env.OTEL_METRIC_EXPORT_INTERVAL - OpenTelemetry metrics export interval | |
process.env.OTEL_METRICS_EXPORTER - OpenTelemetry metrics exporter configuration | |
process.env.PATH - System executable paths (all platforms) | |
process.env.PATHEXT - Windows executable file extensions | |
process.env.PKG_CONFIG_PATH - pkg-config library search paths | |
process.env.PWD - Present working directory | |
process.env.REGION_NAME - Generic region name for cloud services | |
process.env.RUNNER_ENVIRONMENT - CI/CD runner environment type | |
process.env.RUNNER_OS - CI/CD runner operating system | |
process.env.SENTRY_BAGGAGE - Sentry baggage header for distributed tracing | |
process.env.SENTRY_DSN - Sentry Data Source Name for error reporting | |
process.env.SENTRY_ENVIRONMENT - Sentry environment name | |
process.env.SENTRY_NAME - Sentry client name identifier | |
process.env.SENTRY_RELEASE - Sentry release version | |
process.env.SENTRY_TRACE - Sentry trace header for distributed tracing | |
process.env.SENTRY_TRACES_SAMPLE_RATE - Sentry performance monitoring sample rate | |
process.env.SENTRY_USE_ENVIRONMENT - Enables Sentry environment detection | |
process.env.SESSIONNAME - Windows session name | |
process.env.SHARP_FORCE_GLOBAL_LIBVIPS - Forces Sharp to use global libvips | |
process.env.SHARP_IGNORE_GLOBAL_LIBVIPS - Ignores global libvips for Sharp | |
process.env.SHELL - Default shell executable path | |
process.env.SSH_CLIENT - SSH client connection information | |
process.env.SSH_CONNECTION - SSH connection details | |
process.env.SSH_TTY - SSH terminal device | |
process.env.STY - Screen/tmux session name | |
process.env.SWE_BENCH_INSTANCE_ID - SWE-Bench evaluation instance identifier | |
process.env.SWE_BENCH_RUN_ID - SWE-Bench evaluation run identifier | |
process.env.SWE_BENCH_TASK_ID - SWE-Bench evaluation task identifier | |
process.env.SYSTEMROOT - Windows system root directory | |
process.env.TELEPORT_HEADERS - Teleport proxy headers | |
process.env.TELEPORT_RESUME_URL - Teleport session resume URL | |
process.env.TEMP - Temporary directory path (Windows) | |
process.env.TENCENTCLOUD_APPID - Tencent Cloud application ID | |
process.env.TENCENTCLOUD_REGION - Tencent Cloud region | |
process.env.TENCENTCLOUD_ZONE - Tencent Cloud availability zone | |
process.env.TERM - Terminal type identifier | |
process.env.TERM_PROGRAM - Terminal program name | |
process.env.TERMINAL_EMULATOR - Terminal emulator name | |
process.env.TERMINATOR_UUID - Terminator terminal UUID | |
process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH - Testing flag for graceful-fs global patch | |
process.env.TILIX_ID - Tilix terminal session identifier | |
process.env.UNDICI_NO_FG - Disables undici FastGlob usage | |
process.env.USE_API_CONTEXT_MANAGEMENT - Controls API context management for better memory handling and context optimization. Values: "true"/"false". Default: likely true. Enable for better context handling and memory management; disable for debugging context issues or reducing complexity. | |
process.env.USE_BUILTIN_RIPGREP - Controls ripgrep binary selection. Values: "true" (use bundled ripgrep), "false" (use system ripgrep). Enable for consistency across environments; disable to use system-installed ripgrep which may be newer or customized. | |
process.env.USE_LOCAL_OAUTH - Enables local OAuth flow | |
process.env.USERPROFILE - Windows user profile directory path | |
process.env.V - Verbose flag or version indicator | |
process.env.VERCEL - Vercel deployment environment indicator | |
process.env.VERCEL_BITBUCKET_COMMIT_SHA - Vercel Bitbucket commit SHA | |
process.env.VERCEL_GIT_COMMIT_SHA - Vercel Git commit SHA | |
process.env.VERCEL_GITHUB_COMMIT_SHA - Vercel GitHub commit SHA | |
process.env.VERCEL_GITLAB_COMMIT_SHA - Vercel GitLab commit SHA | |
process.env.VERCEL_REGION - Vercel deployment region | |
process.env.VERTEX_BASE_URL - Custom base URL for Google Vertex AI API | |
process.env.VERTEX_REGION_CLAUDE_3_5_HAIKU - GCP region for Claude 3.5 Haiku model | |
process.env.VERTEX_REGION_CLAUDE_3_5_SONNET - GCP region for Claude 3.5 Sonnet model | |
process.env.VERTEX_REGION_CLAUDE_3_7_SONNET - GCP region for Claude 3.7 Sonnet model | |
process.env.VERTEX_REGION_CLAUDE_4_0_OPUS - GCP region for Claude 4.0 Opus model | |
process.env.VERTEX_REGION_CLAUDE_4_0_SONNET - GCP region for Claude 4.0 Sonnet model | |
process.env.VERTEX_REGION_CLAUDE_4_1_OPUS - GCP region for Claude 4.1 Opus model | |
process.env.VISUAL - Visual editor executable (fallback to EDITOR) | |
process.env.VSCODE_GIT_ASKPASS_MAIN - VS Code Git askpass main process | |
process.env.VTE_VERSION - VTE terminal emulator version | |
process.env.WEBSITE_SITE_NAME - Azure App Service website name | |
process.env.WS_NO_BUFFER_UTIL - Disables ws library buffer utilities | |
process.env.WS_NO_UTF_8_VALIDATE - Disables ws library UTF-8 validation | |
process.env.WSL_DISTRO_NAME - Windows Subsystem for Linux distribution name | |
process.env.WT_SESSION - Windows Terminal session identifier | |
process.env.XDG_CACHE_HOME - XDG cache directory path | |
process.env.XDG_CONFIG_HOME - XDG configuration directory path | |
process.env.XDG_DATA_HOME - XDG data directory path | |
process.env.XDG_STATE_HOME - XDG state directory path | |
process.env.XTERM_VERSION - Xterm terminal version | |
process.env.ZDOTDIR - Zsh configuration directory | |
process.env.ZEIT_BITBUCKET_COMMIT_SHA - Zeit (now Vercel) Bitbucket commit SHA | |
process.env.ZEIT_GITHUB_COMMIT_SHA - Zeit (now Vercel) GitHub commit SHA | |
process.env.ZEIT_GITLAB_COMMIT_SHA - Zeit (now Vercel) GitLab commit SHA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment