claude-code - 💡(How to fix) Fix Claude Code VS Code extension forces 1M context on Pro plan - Windows

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

API Error: Usage credits required for 1M context · turn on usage credits at claude.ai/settings/usage, or use --model to switch to standard context

Fix Action

Fix / Workaround

Workarounds tried - none worked:

  • "claude.model" in settings.json
  • "claudeCode.model" in settings.json
  • ANTHROPIC_MODEL environment variable
  • ANTHROPIC_DEFAULT_SONNET_MODEL environment variable
  • .claude.json in %USERPROFILE%
  • claude.json in %APPDATA%\Claude
  • /model command returns "isn't available in this environment"

Code Example

API Error: Usage credits required for 1M context · turn on usage credits at claude.ai/settings/usage, or use --model to switch to standard context
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code is forcing 1M context on every message, even simple "hello" messages, making the extension completely unusable on Pro plan.

Plan: Pro ($20/month) Platform: Windows 10 x64 VS Code: 1.122.1 Claude Code: 2.1.158

Every single message returns the error below.

What Should Happen?

Claude Code should work within Pro plan limits without requiring Usage Credits. Simple messages should not require 1M context. Model configuration options should be respected.

Error Messages/Logs

API Error: Usage credits required for 1M context · turn on usage credits at claude.ai/settings/usage, or use --model to switch to standard context

Steps to Reproduce

  1. Have Pro plan ($20/month)
  2. Install Claude Code extension on VS Code 1.122.1 (Windows 10)
  3. Open any project folder
  4. Send any message, even just "hello"
  5. Error appears immediately

Workarounds tried - none worked:

  • "claude.model" in settings.json
  • "claudeCode.model" in settings.json
  • ANTHROPIC_MODEL environment variable
  • ANTHROPIC_DEFAULT_SONNET_MODEL environment variable
  • .claude.json in %USERPROFILE%
  • claude.json in %APPDATA%\Claude
  • /model command returns "isn't available in this environment"

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown - worked before May 2026

Claude Code Version

2.1.158

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Claude Code VS Code extension forces 1M context on Pro plan - Windows