Direct answer and boundary
Claude Code can authenticate through a Pro/Max subscription or Console/API credentials. Anthropic warns that an ANTHROPIC_API_KEY causes Code to use the key and incur API charges rather than subscription allowance.
To stay within plan allowance, log in with the subscription, decline API-credit options, and inspect /status. Metered API and auto-reload are managed separately in Console.
Use this sequence
- Check environment variables; logout/login and choose subscription; review Console Billing auto-reload; do not treat API balance as subscription capacity or vice versa.
Never provide passwords, one-time codes, full card numbers, or security codes. For an unrecognized charge, contact the issuer and retain redacted evidence.
What makes this case different
One terminal can switch between two cost models: subscription allowance or metered API use. The most common surprise is an existing ANTHROPIC_API_KEY while the user assumes Pro or Max is still active. Check shell configuration, project .env files, and environment inherited by the IDE, then explicitly logout/login in Code. Only after authentication is known do Usage and Console numbers mean anything.
API mode suits development that needs metering, auto-reload, or Console administration. Subscription mode suits an individual who wants spending to remain within included allowance. Choosing API credits at a subscription limit is an explicit cost decision, not an automatic membership renewal. To avoid that route, follow the official subscription-only login flow and do not add Console credentials.
Decision table
| Situation | First action | Avoid |
|---|---|---|
| Account or platform unclear | Confirm signed-in account and actual billing platform | Opening a second matching subscription |
| Rule or eligibility unclear | Read today’s official account and help screen | Relying on old screenshots or bypasses |
| Payment or status pending | Keep time and order evidence; wait or contact relevant support | Repeated rapid payments |
FAQ
Why did Claude Code charge API while I have a subscription?
An API key or Console login may be active; check authentication and environment variables first.
Is this page an official service?
No. chatchongzhi.chat is an independent guide; official screens control price, eligibility, and support outcomes.
When should I stop?
When account, billing platform, or eligibility remains unclear, stop repeated purchases, keep redacted evidence, and use the relevant official support channel.
Ready to buy or upgrade? Verify the account and plan first
Use the exact domain chatchongzhi.chat. Before ordering, verify the product name, account access, subscription term, and support terms. The purchase guide below leads to the relevant product page.
Official source
Claude official guidance (verified 2026-09-28)
This article summarizes official information available at publication. Prices, allowances, features, and regional availability can change; verify the official page and your account checkout before purchasing.