Skip to content

Feature & Disable Flags

This section contains toggles for enabling or disabling features. Most are boolean (1/true enables, 0/false disables).

VariableDefaultEffectExample
CLAUDE_CODE_ENABLE_CFCfalseEnable CFC (Claude For Code) featureexport CLAUDE_CODE_ENABLE_CFC=1
CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMINGfalseEnable fine-grained streaming for tool use responsesexport CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING=1
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTIONfalseEnable prompt suggestion featureexport CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=1
CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTINGfalseEnable file checkpointing in SDK modeexport CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING=1
CLAUDE_CODE_ENABLE_TASKSfalseEnable the task tracking systemexport CLAUDE_CODE_ENABLE_TASKS=1
CLAUDE_CODE_ENABLE_TELEMETRYtrueEnable telemetry data collectionexport CLAUDE_CODE_ENABLE_TELEMETRY=0
CLAUDE_CODE_ENABLE_TOKEN_USAGE_ATTACHMENTfalseEnable attaching token usage info to responsesexport CLAUDE_CODE_ENABLE_TOKEN_USAGE_ATTACHMENT=1
CLAUDE_CODE_ENABLE_XAAfalseEnable XAA (Cross-App Auth) support for MCP servers via OIDC IdPexport CLAUDE_CODE_ENABLE_XAA=1
CLAUDE_CODE_ENHANCED_TELEMETRY_BETAfalseEnable enhanced telemetry beta featuresexport CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1
ENABLE_ENHANCED_TELEMETRY_BETAfalseAlternative flag for enhanced telemetry betaexport ENABLE_ENHANCED_TELEMETRY_BETA=1
CLAUDE_ENABLE_STREAM_WATCHDOGfalseEnable watchdog for stream health monitoringexport CLAUDE_ENABLE_STREAM_WATCHDOG=1
EMBEDDED_SEARCH_TOOLSfalseEnable embedded search toolsexport EMBEDDED_SEARCH_TOOLS=1
ENABLE_TOOL_SEARCHfalseEnable the tool search/deferred tool loading featureexport ENABLE_TOOL_SEARCH=1
ENABLE_CLAUDEAI_MCP_SERVERSfalseEnable Claude.ai MCP serversexport ENABLE_CLAUDEAI_MCP_SERVERS=1
ENABLE_MCP_LARGE_OUTPUT_FILESfalseEnable large output file support for MCP toolsexport ENABLE_MCP_LARGE_OUTPUT_FILES=1
ENABLE_BETA_TRACING_DETAILEDfalseEnable detailed beta tracing (requires BETA_TRACING_ENDPOINT)export ENABLE_BETA_TRACING_DETAILED=1
VariableDefaultEffectExample
CLAUDE_CODE_DISABLE_1M_CONTEXTfalseDisable 1M token context window supportexport CLAUDE_CODE_DISABLE_1M_CONTEXT=1
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKINGfalseDisable adaptive thinking mode; fall back to fixed budgetexport CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1
CLAUDE_CODE_DISABLE_ADVISOR_TOOLfalseDisable the advisor toolexport CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1
CLAUDE_CODE_DISABLE_ATTACHMENTSfalseDisable file attachments in messagesexport CLAUDE_CODE_DISABLE_ATTACHMENTS=1
CLAUDE_CODE_DISABLE_AUTO_MEMORYfalseDisable automatic memory system (set to ‘0’ to force-enable)export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1
CLAUDE_CODE_DISABLE_BACKGROUND_TASKSfalseDisable background task executionexport CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1
CLAUDE_CODE_DISABLE_CLAUDE_API_SKILLfalseDisable the Claude API skillexport CLAUDE_CODE_DISABLE_CLAUDE_API_SKILL=1
CLAUDE_CODE_DISABLE_CLAUDE_MDSfalseDisable loading of CLAUDE.md instruction filesexport CLAUDE_CODE_DISABLE_CLAUDE_MDS=1
CLAUDE_CODE_DISABLE_CRONfalseDisable cron/scheduled task functionalityexport CLAUDE_CODE_DISABLE_CRON=1
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASfalseDisable experimental beta featuresexport CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1
CLAUDE_CODE_DISABLE_FAST_MODEfalseDisable fast mode toggleexport CLAUDE_CODE_DISABLE_FAST_MODE=1
CLAUDE_CODE_DISABLE_FEEDBACK_SURVEYfalseDisable feedback survey promptsexport CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1
CLAUDE_CODE_DISABLE_FILE_CHECKPOINTINGfalseDisable file checkpointing for undo/restoreexport CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING=1
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONSfalseDisable git-related instructions in system promptexport CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1
CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAPfalseDisable legacy model name remappingexport CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP=1
CLAUDE_CODE_DISABLE_MOUSEfalseDisable mouse input in the terminal UIexport CLAUDE_CODE_DISABLE_MOUSE=1
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICfalseDisable non-essential network traffic (feature flags, telemetry)export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACKfalseDisable fallback to non-streaming API modeexport CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=1
CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALLfalseDisable automatic installation of official marketplace pluginsexport CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL=1
CLAUDE_CODE_DISABLE_POLICY_SKILLSfalseDisable policy-based skill loadingexport CLAUDE_CODE_DISABLE_POLICY_SKILLS=1
CLAUDE_CODE_DISABLE_PRECOMPACT_SKIPfalseDisable skipping of pre-compaction optimizationexport CLAUDE_CODE_DISABLE_PRECOMPACT_SKIP=1
CLAUDE_CODE_DISABLE_TERMINAL_TITLEfalseDisable setting the terminal titleexport CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1
CLAUDE_CODE_DISABLE_THINKINGfalseDisable extended thinking entirelyexport CLAUDE_CODE_DISABLE_THINKING=1
CLAUDE_CODE_DISABLE_VIRTUAL_SCROLLfalseDisable virtual scrolling in the UIexport CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL=1
DISABLE_AUTOUPDATERfalseDisable the automatic update checkerexport DISABLE_AUTOUPDATER=1
DISABLE_AUTO_COMPACTfalseDisable automatic context compactionexport DISABLE_AUTO_COMPACT=1
DISABLE_COMPACTfalseDisable the /compact command entirelyexport DISABLE_COMPACT=1
DISABLE_COST_WARNINGSfalseDisable cost warning notificationsexport DISABLE_COST_WARNINGS=1
DISABLE_ERROR_REPORTINGfalseDisable error reporting to Anthropicexport DISABLE_ERROR_REPORTING=1
DISABLE_INTERLEAVED_THINKINGfalseDisable interleaved thinking in responsesexport DISABLE_INTERLEAVED_THINKING=1
DISABLE_PROMPT_CACHINGfalseDisable prompt caching for all modelsexport DISABLE_PROMPT_CACHING=1
DISABLE_PROMPT_CACHING_HAIKUfalseDisable prompt caching specifically for Haikuexport DISABLE_PROMPT_CACHING_HAIKU=1
DISABLE_PROMPT_CACHING_OPUSfalseDisable prompt caching specifically for Opusexport DISABLE_PROMPT_CACHING_OPUS=1
DISABLE_PROMPT_CACHING_SONNETfalseDisable prompt caching specifically for Sonnetexport DISABLE_PROMPT_CACHING_SONNET=1
DISABLE_TELEMETRYfalseDisable all telemetry data collectionexport DISABLE_TELEMETRY=1
DO_NOT_TRACKfalseDisable telemetry when set to 1 (standard DNT convention)export DO_NOT_TRACK=1
VariableDefaultEffectExample
DISABLE_BUG_COMMANDfalseDisable the /bug commandexport DISABLE_BUG_COMMAND=1
DISABLE_DOCTOR_COMMANDfalseDisable the /doctor commandexport DISABLE_DOCTOR_COMMAND=1
DISABLE_EXTRA_USAGE_COMMANDfalseDisable the /usage commandexport DISABLE_EXTRA_USAGE_COMMAND=1
DISABLE_FEEDBACK_COMMANDfalseDisable the /feedback commandexport DISABLE_FEEDBACK_COMMAND=1
DISABLE_INSTALLATION_CHECKSfalseDisable installation verification checksexport DISABLE_INSTALLATION_CHECKS=1
DISABLE_INSTALL_GITHUB_APP_COMMANDfalseDisable the install GitHub app commandexport DISABLE_INSTALL_GITHUB_APP_COMMAND=1
DISABLE_LOGIN_COMMANDfalseDisable the /login commandexport DISABLE_LOGIN_COMMAND=1
DISABLE_LOGOUT_COMMANDfalseDisable the /logout commandexport DISABLE_LOGOUT_COMMAND=1
DISABLE_UPGRADE_COMMANDfalseDisable the /upgrade commandexport DISABLE_UPGRADE_COMMAND=1

← Back to env/README.md