Skip to content
BENIBIX Learn

CLAUDE_CODE_DISABLE_1M_CONTEXT

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_DISABLE_1M_CONTEXT=1

Set to 1, it holds every model to a 200K window.

Think of it like

It is like you give someone a small desk. Less can sit on it at once.

Example

Jack's company caps how much code may go to a model at once. He sets this in managed settings, and no session goes past 200K.

Why it matters

A smaller window caps how much a single request can hold, which some rules need.

Definition

CLAUDE_CODE_DISABLE_1M_CONTEXT set to 1 turns off the 1M context window. The 1M choices leave the model picker. Models that use 1M by default are held to 200K tokens. Some companies need this for their rules on data.

Example code

bash
export CLAUDE_CODE_DISABLE_1M_CONTEXT=1
claude
Keep every session at 200K tokens.

Common mistake

Expecting long chats to keep all their history. With 200K, the chat is squeezed sooner.

Key takeaways

  1. 1
    200K cap. On every model.
  2. 2
    1M leaves the picker. No [1m] choices.
  3. 3
    For rules. Compliance.