What it is
Two new environment variables are now recognized: CLAUDE_CODE_DISABLE_ATTRIBUTION_CROSS_REPO and CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.275.
Presence across releases
1Build by build
4One row per release since the first build this name was read out of. Absent means the build was read and the name was not in it, never mined means no bundle for that release was ever archived, and a declared type or a default is only ever what that release's own bundle stated.
First cited
1The earliest release whose published evidence quoted CLAUDE_CODE_DISABLE_ATTRIBUTION_CROSS_REPO was v2.1.275, 17 Sep 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table above.
Names beside it
Every environment variable in the inventory starting claude_code_disable, up to twelve of them.
CLAUDE_CODE_DISABLE_1M_CONTEXTSet to 1 to disable [1M context window](/docs/en/model-config#extended-context) support. When set, 1M model variants are unavailable in the model picker, and Claude Code holds sessions on models with a native 1M window, such as [Sonnet 5](/docs/en/model-config#sonnet-5-context-window) and the Fable models, to a 200K window; see [Extended context](/docs/en/model-config#extended-context) for how the hold is enforced. Useful for enterprise environments with compliance requirements. For its role in correcting the window for an unrecognized [1m] model ID, see [Correct the window for a gateway or custom model ID](/docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id) v2.1.138
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKINGSet to 1 to disable [adaptive reasoning](/docs/en/model-config#adjust-effort-level) on Opus 4.6 and Sonnet 4.6 and fall back to the fixed thinking budget controlled by MAX_THINKING_TOKENS. Has no effect on [Fable models](/docs/en/model-config#extended-thinking), Sonnet 5, or Opus 4.7 and later, which always use adaptive reasoning v2.1.138
CLAUDE_CODE_DISABLE_ADMIN_ENV_UNIONSet to 1 to stop Claude Code from merging [managed settings](/docs/en/managed-settings#precedence-within-the-managed-tier) env blocks per key across admin sources, so only the highest-priority source's whole env block applies, as before v2.1.223. Set it in the environment that launches Claude Code, since Claude Code ignores a copy delivered through a settings env block. Requires Claude Code v2.1.223 or later v2.1.223
CLAUDE_CODE_DISABLE_ADVISOR_TOOLSet to 1 to disable the [advisor tool](/docs/en/advisor). The /advisor command becomes unavailable, any configured advisorModel is ignored, and the --advisor flag is accepted but has no effect, so existing scripts that pass it continue to work without errors v2.1.138
CLAUDE_CODE_DISABLE_AGENT_VIEWSet to 1 to turn off [background agents and agent view](/docs/en/agent-view): claude agents, --bg, /background, and the on-demand supervisor. Equivalent to the [disableAgentView](/docs/en/settings-reference#disableagentview) setting v2.1.139
CLAUDE_CODE_DISABLE_AGENTS_FLEETNo description from anybody. v2.1.138
CLAUDE_CODE_DISABLE_ALTERNATE_SCREENSet to 1 to disable [fullscreen rendering](/docs/en/fullscreen) and use the classic main-screen renderer. The conversation stays in your terminal's native scrollback so Cmd+f and tmux copy mode work as usual. Takes precedence over CLAUDE_CODE_NO_FLICKER and the [tui](/docs/en/settings-reference#tui) setting. You can also switch with /tui default. Does not apply to background sessions opened from [agent view](/docs/en/agent-view), which always use fullscreen rendering v2.1.138
CLAUDE_CODE_DISABLE_ARTIFACTSet to 1 to turn off the [Artifact](/docs/en/artifacts) tool, which publishes session output as a private web page on claude.ai. Once you set it, no settings file turns the tool back on. To turn the tool off from a settings file instead, set [enableArtifact](/docs/en/settings-reference#enableartifact) to false; the deprecated [disableArtifact](/docs/en/settings-reference#disableartifact) key also turns it off v2.1.172
CLAUDE_CODE_DISABLE_ATTACHMENTSSet to 1 to disable attachment processing. File mentions with @ syntax are sent as plain text instead of being expanded into file content v2.1.138
CLAUDE_CODE_DISABLE_AUTO_MEMORYSet to 1 to disable [auto memory](/docs/en/memory#auto-memory). Set to 0 to force auto memory on even when --bare mode or [autoMemoryEnabled: false](/docs/en/settings-reference#automemoryenabled) would otherwise disable it. When disabled, Claude does not create or load auto memory files v2.1.138
CLAUDE_CODE_DISABLE_AWAITING_USER_IDLENo description from anybody. v2.1.265
CLAUDE_CODE_DISABLE_BACKGROUND_TASKSSet to 1 to disable all background task functionality, including the run_in_background parameter on Bash and subagent tools, auto-backgrounding, and the Ctrl+B shortcut v2.1.138
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the environment variable does. All environment variables.