← Reddit

Sonnet 4.6 just burnt though my whole extra usage credit budget for exceeding the 200k context even though I had `"env": { "CLAUDE_CODE_DISABLE_1M_CONTEXT": "1" }` explicitly set

Reddit · brianjenkins94 · June 5, 2026

Detailed Analysis

A Claude Code user reports that Anthropic's Sonnet 4.6 model exhausted their entire extra usage credit budget by exceeding the 200,000-token context limit, despite having explicitly configured the `CLAUDE_CODE_DISABLE_1M_CONTEXT` environment variable — a setting designed specifically to prevent the tool from utilizing the extended 1 million token context window. The user received no warning, notification, or confirmation that the configuration flag had failed or been ignored before the charges accumulated, and is now seeking a refund from Anthropic.

The incident raises significant concerns about the reliability of user-controlled configuration settings within Claude Code's environment. The `CLAUDE_CODE_DISABLE_1M_CONTEXT` flag exists precisely because extended context usage carries substantially higher token costs, and users deploying it presumably do so to maintain budget predictability. If that flag failed silently — neither blocking the extended context nor alerting the user to its non-enforcement — it represents a breakdown in both the product's configuration layer and its billing transparency mechanisms. The absence of any in-session warning or cost threshold alert compounds the problem, leaving the user with no opportunity to intervene before significant charges occurred.

This type of complaint sits within a broader pattern of friction that has emerged as Anthropic scales Claude Code as a premium developer product. Extended context windows, while technically powerful, introduce highly variable cost surfaces that are difficult for users to anticipate or control. When environmental guardrails fail without notice, the resulting financial impact can be severe, and the damage to user trust is compounded by the perception that billing systems are opaque or unresponsive to declared preferences.

The broader implication for AI tooling is that as models expand their context capabilities into the millions of tokens, the gap between what a model *can* do and what a user *expects* it to do becomes a critical product and trust problem. Guardrails, flags, and configuration options must function with high fidelity and fail loudly — not silently — when they cannot be honored. Anthropic's handling of this complaint, including whether a refund is issued and whether the underlying configuration bug is acknowledged publicly, will serve as a signal to the developer community about the accountability standards the company holds itself to as it competes in the increasingly crowded AI coding assistant market.

Read original article →