How to Disable Claude Code's 1M Context Window to Reduce Token Usage

Claude Code users can disable the 1M context window feature that may be increasing token usage beyond expectations. According to a Reddit discussion, Anthropic's recent usage limit tightening has led to faster quota consumption, with the company pointing to the 1M context window as a contributing factor.
Configuration Options
The source provides two methods to control context window behavior:
Option 1: Disable 1M Context Completely
Add this to your ~/.claude/settings.json file:
{
"env": {
"CLAUDE_CODE_DISABLE_1M_CONTEXT": "1"
}
}This removes the 1M model variants from the model picker entirely. The configuration is officially documented in Claude Code docs under "Model configuration → Extended context."
Option 2: Cap Your Context Window
For more flexibility, you can cap the auto-compact window instead:
{
"env": {
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "200000"
}
}Anthropic recommends this approach in their recent investigation post. The example value of 200,000 tokens provides a specific cap while maintaining some extended context capability.
The Reddit post notes that these are temporary solutions and expresses skepticism about whether the 1M context window is the complete explanation for increased token usage. Users experiencing unexpected quota consumption may want to test these configurations to see if they make a difference in their specific workflows.
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenClaw token usage investigation reveals configuration issues
A developer burned through their OpenAI Codex weekly subscription in 1.5 days and used Claude Code to identify configuration problems: Telegram bots firing on every message, web fetches returning raw CSS/JS, and orphan session files accumulating.

Field Report: Qwen 3.6 27B on an M2 MacBook Pro (32GB) – Painfully Slow but Smart Output
Running Qwen 3.6 27B IQ4_XS on an M2 MacBook Pro with 32GB RAM yields 7.9 t/s initially, degrading to 3.1 t/s at 52k context. Code quality impresses, but memory bandwidth is the bottleneck.

AGENTS.md Pattern for React Native: Claude Code Generates Better Project-Aware Code
A Reddit user shares their AGENTS.md file for React Native/Expo projects that includes folder structure, theme tokens, custom hooks, and component patterns. The result: Claude Code and Cursor generate code using the exact project conventions instead of generic React Native code.

CLAUDE.md Entries That Disable Opus 4.7’s Human-Pacing Behavior
Three CLAUDE.md directives that suppress Claude 4.7 Opus's break suggestions, time overestimates, and phase-splitting during long coding sessions.