Claude Pro subscription: API billing allowed instead of being blocked
Resolved 💬 3 comments Opened Apr 5, 2026 by PVMatsiras Closed Apr 9, 2026
Description
When running Claude Code with a Claude Pro subscription (claudepro), the CLI still permitted usage under API billing. The expected behavior is that API billing should be refused and the user should be directed to use claudeapi with an explicit API key instead.
Expected Behavior
- Claude Code detects active Claude Pro subscription
- Refuses to fall back to API billing
- Suggests switching to
claudeapibilling mode if API usage is intended
Actual Behavior
- Claude Code allowed API billing to proceed without warning or refusal
- No prompt to switch billing modes
Environment
- OS: Windows 11 Pro
- Claude Code: CLI
- Subscription: Claude Pro
- Shell: bash (via Windows)
Notes
ANTHROPIC_API_KEY was not set in the environment at time of testing, so the fallback trigger is unclear. This may be a billing mode enforcement gap in the CLI.
🤖 Generated with Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗