Skip to content

[BUG] Usage credits required for 1M context - Pro plan blocked despite 17% usage #65514

Description

@Rene3481

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 blocks all requests with "API Error: Usage credits required for 1M context" even though Pro plan usage is only 17% of weekly limit.

The error fires before model selection processes, making --model flag and CLAUDE_CODE_DISABLE_1M_CONTEXT workarounds ineffective.

Versions tested: 2.1.104 (WinGet), 2.1.6 (npm), 2.0.0 (npm) — all produce the same error.

To use Claude Code at all, I was forced to purchase additional usage credits (R$ 15.00 / ~$3 USD). Even after purchasing, Claude Code continued showing "credits exhausted" errors despite R$ 17.26 remaining balance confirmed in claude.ai/settings/usage. The system consumed credits rapidly during normal coding sessions without any long-context usage requested by the user.

This is unacceptable: Pro plan users are being forced to purchase extra credits due to a bug, and even after paying, the tool remains unreliable.

What Should Happen?

Claude Code should work normally within Pro plan limits without requiring additional usage credits. The 1M context window should not be forced on users who never requested it. When usage credits are purchased, the remaining balance should be fully accessible without interruption.

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 an active Pro plan (weekly usage at 17%)
  2. Open Claude Code in VS Code on Windows 11
  3. Type any message or command
  4. Error appears immediately: "API Error: Usage credits required for 1M context"
  5. Tried workarounds: --model claude-sonnet-4-6, CLAUDE_CODE_DISABLE_1M_CONTEXT=1, downgrade to 2.1.6 and 2.0.0 — all fail
  6. Purchased R$15.00 in usage credits
  7. Error persists even with R$17.26 balance confirmed in claude.ai/settings/usage

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.6

Claude Code Version

2.0.0 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

User was forced to purchase R$15.00 in usage credits due to this bug. Even after purchase, Claude Code continued blocking with the same error despite R$17.26 confirmed balance in claude.ai/settings/usage. The error affects all versions tested (2.1.104, 2.1.6, 2.0.0) and fires immediately on any command, before any model processing occurs. Related issues: #62063, #62199, #63060, #63634.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions