Skip to content

[BUG] Claude Code shows 'Usage limit reached' despite session at 2% and weekly at 32% #61828

Description

@virtools

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?

What's wrong?
Claude Code is blocking all input with a 'Usage limit reached' message, but the claude.ai usage panel shows I am well under both limits.

Plan: Pro

Usage at time of error:

  • Current session: 2% used (resets in ~2h)
  • Weekly (all models): 32% used (resets in ~2h 23min)
  • Claude Design: 0% used

Actual behavior:
Input is completely blocked. The enforcement and the displayed usage panel clearly disagree.

Screenshots:

Image Image

Additional context:
The claude.ai web interface works normally on the same account at the same time, confirming the issue is isolated to Claude Code's internal limit tracking.

What Should Happen?

Expected behavior:
Claude Code should accept prompts normally, since both session and weekly limits are far from exhausted.

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. Open Claude Code
  2. Attempt to send any prompt
  3. Input is blocked with 'Usage limit reached'

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.145 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    api:anthropicarea:costbugSomething isn't workingduplicateThis issue or pull request already existsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions