docs: Claude Code env variables reference + new vars audit#565
Draft
docs: Claude Code env variables reference + new vars audit#565
Conversation
Documents all ~138 environment variables from the official Claude Code docs (code.claude.com/docs/en/env-vars), compares them against what is already referenced in this repo, and flags 110+ new variables not yet covered. Highlights variables tied to recent features: Microsoft Foundry, fast mode, 1M context, adaptive thinking, agent teams, the plugin system, OAuth, mTLS, and file checkpointing. Also flags inconsistencies in existing component env names: - ANTHROPIC_FOUNDRY_AUTH_TOKEN -> ANTHROPIC_FOUNDRY_API_KEY - ANTHROPIC_ATTRIBUTION -> CLAUDE_CODE_ATTRIBUTION_HEADER - ANTHROPIC_SMALL_FAST_MODEL is deprecated https://claude.ai/code/session_01UZ9YzQ6WdT9xNCEWnecRyQ
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
docs/guides/claude-code-env-variables.md— a complete reference of every environment variable Claude Code supports (synced from code.claude.com/docs/en/env-vars on 2026-05-05).The guide also audits this repository: it compares the official list (~138 vars) against every reference inside
cli-tool/,dashboard/,docs/,api/, andscripts/, and flags 110+ env vars that are new / not yet covered by any component, setting, or doc here.What's "new" (highlights)
ANTHROPIC_FOUNDRY_API_KEY,ANTHROPIC_FOUNDRY_BASE_URL,ANTHROPIC_FOUNDRY_RESOURCE,CLAUDE_CODE_SKIP_FOUNDRY_AUTHCLAUDE_CODE_DISABLE_FAST_MODECLAUDE_CODE_DISABLE_1M_CONTEXTCLAUDE_CODE_DISABLE_ADAPTIVE_THINKING,CLAUDE_CODE_EFFORT_LEVEL,MAX_THINKING_TOKENS,CLAUDE_CODE_DISABLE_THINKINGCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS,CLAUDE_CODE_TEAM_NAMEANTHROPIC_DEFAULT_*_NAME/_DESCRIPTION/_SUPPORTED_CAPABILITIES,ANTHROPIC_CUSTOM_MODEL_OPTION*,CLAUDE_CODE_SUBAGENT_MODELCLAUDE_CODE_PLUGIN_CACHE_DIR,CLAUDE_CODE_PLUGIN_SEED_DIR,CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE,CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL,CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH,CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS,CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MSCLAUDE_CODE_OAUTH_TOKEN,CLAUDE_CODE_OAUTH_REFRESH_TOKEN,CLAUDE_CODE_OAUTH_SCOPESCLAUDE_CODE_CERT_STORE,CLAUDE_CODE_CLIENT_CERT,CLAUDE_CODE_CLIENT_KEY,CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,CLAUDE_CODE_PROXY_RESOLVES_HOSTSCLAUDE_CODE_DISABLE_FILE_CHECKPOINTINGCLAUDE_CODE_REMOTE_SESSION_ID,CCR_FORCE_BUNDLEInconsistencies found in existing components
ANTHROPIC_FOUNDRY_AUTH_TOKEN(used in components) → official isANTHROPIC_FOUNDRY_API_KEYANTHROPIC_ATTRIBUTION(used in components) → official isCLAUDE_CODE_ATTRIBUTION_HEADERANTHROPIC_SMALL_FAST_MODELis deprecated → useANTHROPIC_DEFAULT_HAIKU_MODELANTHROPIC_TOOLSis referenced but does not exist in the official docsTest plan
cli-tool/components/settings/environment/*presets covering the highest-value new toggles (fast mode, 1M context, plugin cache, mTLS, agent teams, OAuth)https://claude.ai/code/session_01UZ9YzQ6WdT9xNCEWnecRyQ
Generated by Claude Code
Summary by cubic
Adds a full Claude Code environment variable reference and a repo-wide audit to surface gaps. Improves configuration clarity and flags 110+ uncovered vars plus a few naming inconsistencies.
docs/)docs/guides/claude-code-env-variables.md(synced 2026-05-05) covering ~138 vars, including new provider and feature togglesANTHROPIC_FOUNDRY_AUTH_TOKEN→ANTHROPIC_FOUNDRY_API_KEY,ANTHROPIC_ATTRIBUTION→CLAUDE_CODE_ATTRIBUTION_HEADER, and deprecatesANTHROPIC_SMALL_FAST_MODELdocs/components.json) does not need regenerationWritten for commit 92f50cf. Summary will update on new commits.