Skip to content

Environment Variables

Per-section reference for every environment variable recognized by Claude Code CLI v2.1.100.

  1. Authentication & API Access
  2. Model Configuration & Behavior
  3. Providers
  4. OAuth & Login
  5. Core Settings
  6. Feature & Disable Flags
  7. Execution Environment
  8. Agents, Plans, Tasks
  9. Context, Compaction, Session Resume
  10. Observability
  11. Networking
  12. Integrations
  13. Platform & CI Detection
  14. Cloud Platform Detection
  15. Azure Identity
  16. System & Runtime
  17. Testing & Benchmarks
  18. Accessibility & Brief Mode
  19. Security & Sandboxing
  20. Miscellaneous & Internal
  21. Missing From Source or Unavailable Documentation

21 sections, 509 variables total.

#SectionDescriptionVariables
1Authentication & API AccessAPI keys, OAuth tokens, bearer credentials, and base URLs for reaching Anthropic services.9
2Model Configuration & BehaviorModel selection, custom model overrides, output/context limits, and thinking/effort controls.24
3ProvidersProvider routing and credentials for AWS Bedrock, Bedrock Mantle, Anthropic AWS, Vertex AI, and Microsoft Foundry.38
4OAuth & LoginOAuth endpoints, refresh tokens, account/org overrides, and trusted-device bypass.20
5Core SettingsConfig/debug directories, entrypoint identifiers, shell overrides, and simplified-mode toggles.26
6Feature & Disable FlagsBoolean toggles for enabling or disabling features, beta flags, and individual slash commands.61
7Execution EnvironmentBash/shell tooling, tool configuration, MCP, plugins, Node.js/Bun runtime, gRPC, tmux, and terminal detection.72
8Agents, Plans, TasksSub-agent model selection, plan-mode orchestration, agent teams, and task-list tracking.15
9Context, Compaction, Session ResumeContext window sizes, auto-compaction thresholds, and idle/resume prompt behavior.11
10ObservabilityOpenTelemetry exporters, Datadog flush intervals, and profiling/diagnostics traces.35
11NetworkingProxies, TLS certificates, mTLS client auth, and CA bundle configuration.12
12IntegrationsIDE auto-connect, Chrome extension, remote/cowork mode, and session-ingress bridges.50
13Platform & CI DetectionAuto-detection markers for GitHub Actions, GitLab CI, Buildkite, CircleCI, and related Perforce/Git overrides.27
14Cloud Platform DetectionAuto-detection markers for AWS Lambda, Azure, GCP, Vercel, Netlify, Fly.io, Heroku, Replit, and other PaaS/serverless platforms.31
15Azure IdentityAzure AD/Entra credentials: client IDs, secrets, certificates, federated tokens, and authority host overrides.15
16System & RuntimeOS paths, locale, SSH detection, home/temp dirs, editors, and XDG base-directory conventions.31
17Testing & BenchmarksSWE-bench instance identifiers, VCR recording, and test-only fixtures.8
18Accessibility & Brief ModeAccessibility mode (disables animations) and brief/compact output modes.3
19Security & SandboxingBubblewrap sandbox markers, additional protection headers, script capabilities, and extra CLAUDE.md directory permissions.5
20Miscellaneous & InternalBeta tracing, Chokidar file-watcher tuning, voice streaming, and other internal-only knobs.16
21Missing From Source or Unavailable DocumentationVariables where only the original blurb is reliable and behavior beyond that is undetermined.0