[BUG] Usage counter desync after switching between API key and subscription OAuth auth
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
After switching from subscription OAuth to API key auth, then back to subscription OAuth, the usage counter became permanently desynced. Simple messages consume 1-3% of the session limit. Logging into Claude Code consumed 2% instantly. Issue persists across full uninstall/reinstall and wiping all local config files. Affects both Claude Code CLI and the Claude.ai mobile app.
What Should Happen?
Normal usage consumption — simple messages should use a fraction of a percent at most
Error Messages/Logs
No explicit error messages. Just abnormally fast usage drain visible in the session counter
Steps to Reproduce
- Use Claude Code with subscription OAuth
- Hit weekly limit, switch to API key auth to continue working
- Weekly limit resets, switch back to subscription OAuth
- Usage counter is now desynced — burns 1-3% per simple interaction
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.96
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
This appears to be an account-level server-side bug, not a local config issue, as it persists across devices and full reinstalls. Plan is Claude Pro
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗