Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

9 pages for claude_code_disable_1m_context.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …ile) entry maps its model to it. To keep a 200K window instead, set [`CLAUDE_CODE_DISABLE_1M_CONTEXT=1`](/docs/en/model-config#turn-off-1m-context). Opus 4.6 and Sonnet 4.6 on the Invoke API reach th… Claude Code changelog Claude Code CLI · in the page changelog …fixes** * Fixed requests failing with a model-not-found error when `CLAUDE_CODE_DISABLE_1M_CONTEXT` is set and the model is an alias with the `[1m]` suffix, such as `opus[1m]` * Fixed the `prompt-ca… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …model IDs that end in `[1m]`. To turn off 1M context instead, set [`CLAUDE_CODE_DISABLE_1M_CONTEXT: "1"`](/docs/en/model-config#extended-context) in the same `env` block. Claude Code then treats eve… Environment variables Claude Code CLI · in the page env-vars …| | `CLAUDE_CODE_DISABLE_1M_CONTEXT` | Set to `1` to disable [1M context window](/docs/en/model-config#extended-… Error reference Claude Code CLI · in the page errors …tion warnings](#denying-bash-also-turns-off-the-powershell-tool) | | `CLAUDE_CODE_DISABLE_1M_CONTEXT is set, but the 200K limit isn't enforced` | [Configuration warnings](#the-200k-limit-isnt-enforced… Claude Code on Google Cloud's Agent Platform Claude Code CLI · in the page google-vertex-ai …m, with no `[1m]` suffix needed. To keep a 200K window instead, set [`CLAUDE_CODE_DISABLE_1M_CONTEXT=1`](/docs/en/model-config#turn-off-1m-context). Opus 4.6 and Sonnet 4.6 reach the 1M window when y… Claude Code on Microsoft Foundry Claude Code CLI · in the page microsoft-foundry …-8": "team-opus-prod" } } ``` To keep a 200K window instead, set [`CLAUDE_CODE_DISABLE_1M_CONTEXT=1`](/docs/en/model-config#turn-off-1m-context). Opus 4.6 and Sonnet 4.6 reach the 1M window when y… Model configuration Claude Code CLI · in the page model-config …). #### Turn off 1M context To keep sessions at a 200K window, set `CLAUDE_CODE_DISABLE_1M_CONTEXT=1` in your shell or in a [settings file](/docs/en/env-vars.md#set-environment-variables). Claude Co… Configure server-managed settings Claude Code CLI · in the page server-managed-settings …dow and compaction settings, such as `DISABLE_AUTO_COMPACT`, but not `CLAUDE_CODE_DISABLE_1M_CONTEXT` * Terminal UI and accessibility options * Numeric limits, budgets, and timeouts Other delivered v…
Feedback