[BUG] Unexpected Logout Followed by "Credit Balance Too Low" Error
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?
Describe the bug
Claude Code suddenly logged out on its own without any action from my side. After re-authenticating, it prompted me to select a subscription plan again, and then showed a "credit balance is too low" error — even though I'm on a Pro plan and rarely hit usage limits.
The issue resolved itself after doing a manual claude logout followed by claude login again without selecting any plan or adding API credits.
Steps to reproduce
- Using Claude Code normally on a Pro plan
- Claude Code suddenly logs out on its own (no action triggered)
- Re-authenticate via
claude login - After authorization completes, prompted to select a subscription plan
- "Credit balance is too low" error appears
- Workaround: run
claude logout→claude loginagain → issue resolved
Expected behavior
Claude Code should maintain the authenticated session and recognize the active Pro plan without requiring re-selection or showing a credit error.
Actual behavior
Unexpected logout → re-auth triggers plan selection prompt → "credit balance is too low" error despite active Pro subscription.
Workaround
Running claude logout and claude login a second time (without selecting a plan or adding API credits) resolves the issue.
Environment
- Plan: Claude Pro
- Claude code
Additional context
This seems like a session token issue where re-authentication incorrectly routes to API/Console billing instead of the existing Pro plan credentials.
What Should Happen?
<img width="646" height="529" alt="Image" src="https://github.com/user-attachments/assets/12189bf0-301a-4f5b-a1ea-866832581bf8" />
Error Messages/Logs
CREDIT CLAUDE IS TO LOW
Steps to Reproduce
No screenshots available, but the steps above are reproducible.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.150 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗