Claude Code uses the 1M context window by default on Bedrock, Vertex, Foundry and the apps gateway
From Claude Code 2.1.287, Opus 4.7 and later and Fable use the 1M context window by default on Bedrock, Vertex, Foundry and the Claude apps gateway, with no [1m] suffix. CLAUDE_CODE_DISABLE_1M_CONTEXT=1 keeps 200K.
What does this mean for me?
Action needed
Engineering leadership
Cost, risk, timeline, team impact Action neededTeams running Claude Code on Bedrock, Vertex, Foundry or the Claude apps gateway can now send requests above 200K tokens by default. Check that cloud quotas and budgets cover long-context requests, or have teams set CLAUDE_CODE_DISABLE_1M_CONTEXT=1.
Engineer
What to change, what breaks, what to test Action neededOn Bedrock, Vertex, Foundry or the apps gateway, Claude Code 2.1.287 uses the 1M window for Opus 4.7+ and Fable with no [1m] suffix. If your deployment or quota cannot take requests over 200K tokens, set CLAUDE_CODE_DISABLE_1M_CONTEXT=1.
General consumer
Using the Claude apps, not the API No impactNothing to do. This only affects Claude Code running on cloud platforms, not the Claude apps.
Claude Code 2.1.287 changes sessions on Amazon Bedrock, Google Vertex AI, Microsoft Foundry and the Claude apps gateway to use the 1M token context window by default for Opus 4.7 and later and for Fable. The [1m] suffix on the model name is no longer needed to get the larger window.
Previously these sessions used the 200K window unless the suffix was set. Now a long session can send requests above 200K tokens without any configuration change. Where the platform account, quota, or pricing tier treats long-context requests differently, cost and rate-limit behaviour can change; where a deployment does not accept requests that large, long sessions can start failing.
To keep the previous behaviour, set CLAUDE_CODE_DISABLE_1M_CONTEXT=1, which keeps the 200K window.
This follows the same change for sessions behind a custom ANTHROPIC_BASE_URL in 2.1.285. The model list maps the changelog’s family names (“Opus 4.7+” and “Fable”) to API IDs and should be checked; the changelog does not mention Sonnet for this change. The changelog carries no dates. 2.1.287 was absent when the changelog was fetched on 30 September at about 21:07 UTC and present on 1 October at about 21:10 UTC, so the date is inferred from that window.
Topics: Coding tools
Terms on this page: Context window, Rate limit