Environment Variables
Per-section reference for every environment variable recognized by Claude Code CLI v2.1.100.
Table of Contents
Section titled “Table of Contents”- Authentication & API Access
- Model Configuration & Behavior
- Providers
- OAuth & Login
- Core Settings
- Feature & Disable Flags
- Execution Environment
- Agents, Plans, Tasks
- Context, Compaction, Session Resume
- Observability
- Networking
- Integrations
- Platform & CI Detection
- Cloud Platform Detection
- Azure Identity
- System & Runtime
- Testing & Benchmarks
- Accessibility & Brief Mode
- Security & Sandboxing
- Miscellaneous & Internal
- Missing From Source or Unavailable Documentation
Overview
Section titled “Overview”21 sections, 509 variables total.
| # | Section | Description | Variables |
|---|---|---|---|
| 1 | Authentication & API Access | API keys, OAuth tokens, bearer credentials, and base URLs for reaching Anthropic services. | 9 |
| 2 | Model Configuration & Behavior | Model selection, custom model overrides, output/context limits, and thinking/effort controls. | 24 |
| 3 | Providers | Provider routing and credentials for AWS Bedrock, Bedrock Mantle, Anthropic AWS, Vertex AI, and Microsoft Foundry. | 38 |
| 4 | OAuth & Login | OAuth endpoints, refresh tokens, account/org overrides, and trusted-device bypass. | 20 |
| 5 | Core Settings | Config/debug directories, entrypoint identifiers, shell overrides, and simplified-mode toggles. | 26 |
| 6 | Feature & Disable Flags | Boolean toggles for enabling or disabling features, beta flags, and individual slash commands. | 61 |
| 7 | Execution Environment | Bash/shell tooling, tool configuration, MCP, plugins, Node.js/Bun runtime, gRPC, tmux, and terminal detection. | 72 |
| 8 | Agents, Plans, Tasks | Sub-agent model selection, plan-mode orchestration, agent teams, and task-list tracking. | 15 |
| 9 | Context, Compaction, Session Resume | Context window sizes, auto-compaction thresholds, and idle/resume prompt behavior. | 11 |
| 10 | Observability | OpenTelemetry exporters, Datadog flush intervals, and profiling/diagnostics traces. | 35 |
| 11 | Networking | Proxies, TLS certificates, mTLS client auth, and CA bundle configuration. | 12 |
| 12 | Integrations | IDE auto-connect, Chrome extension, remote/cowork mode, and session-ingress bridges. | 50 |
| 13 | Platform & CI Detection | Auto-detection markers for GitHub Actions, GitLab CI, Buildkite, CircleCI, and related Perforce/Git overrides. | 27 |
| 14 | Cloud Platform Detection | Auto-detection markers for AWS Lambda, Azure, GCP, Vercel, Netlify, Fly.io, Heroku, Replit, and other PaaS/serverless platforms. | 31 |
| 15 | Azure Identity | Azure AD/Entra credentials: client IDs, secrets, certificates, federated tokens, and authority host overrides. | 15 |
| 16 | System & Runtime | OS paths, locale, SSH detection, home/temp dirs, editors, and XDG base-directory conventions. | 31 |
| 17 | Testing & Benchmarks | SWE-bench instance identifiers, VCR recording, and test-only fixtures. | 8 |
| 18 | Accessibility & Brief Mode | Accessibility mode (disables animations) and brief/compact output modes. | 3 |
| 19 | Security & Sandboxing | Bubblewrap sandbox markers, additional protection headers, script capabilities, and extra CLAUDE.md directory permissions. | 5 |
| 20 | Miscellaneous & Internal | Beta tracing, Chokidar file-watcher tuning, voice streaming, and other internal-only knobs. | 16 |
| 21 | Missing From Source or Unavailable Documentation | Variables where only the original blurb is reliable and behavior beyond that is undetermined. | 0 |
See Also
Section titled “See Also”- Original gist by @unkn0wncode — upstream source of the variable list.
- ../ENV.md — local copy of the original one-line-per-variable source.
- ../ENV_FULL.md — single-file consolidated reference with quick-lookup index.