Guide
Claude Max billed as API usage
The short answer: 42 of the 656 verified public cases in our research library describe subscription sessions billed to the API instead of the plan. The shape is consistent: a developer was billed $447.30 to the API instead of a Max subscription when an API key was set (GitHub issue #62338); Max sessions were billed to a Console API key for $141.52 (#84545); a Pro session was billed against the Console API balance instead (#89562, $6.00); and claude -p silently billed a project .env API key while a valid subscription was active (#91777, $42.95). Run /status first. The active credential is usually the whole answer. The same switch shows up at fleet scale: about 374 headless agents billed about $1,600 in 11 hours while the Max subscription sat idle, because a key in the environment silently switched the CLI to API billing — and the daily cap setting in the config was code nothing ever called (#557).
For Claude Pro or Max subscribers who also have an Anthropic API key, and run Claude Code. Not for API-only users with no subscription. Your spend belongs on the API bill by design.
Check it in 3 minutes
- 1
Run /status in Claude Code and read the active credential. it shows your subscription (Pro or Max) as the active login. Abnormal: it shows an API key as active while you expected plan usage. The $447.30 case (#62338) is exactly this mix-up.
- 2
Check the environment for an API key, including project files. no ANTHROPIC_API_KEY is set where you run Claude Code. Abnormal: a key is set in the shell profile or a project .env file. Claude -p silently billed a project .env key while a valid subscription was active (#91777, $42.95).
- 3
Compare the Console Cost page with the plan usage. the Cost page is near zero and the plan usage shows the sessions. Abnormal: the Cost page carries the sessions: Max sessions billed to a Console API key for $141.52 (#84545), or a Pro session billed against the API balance (#89562, $6.00).
Why it happens
| Cause | How to check | What to keep |
|---|---|---|
| API key set in the environment outranks the plan | Run /status, then print the environment in the same shell. If a key is present, Claude Code bills the API, not the plan (#62338, $447.30). | The /status output and the key name (never the full key value). |
| Project .env file carries a key | Look for ANTHROPIC_API_KEY in the project .env file. claude -p uses the key when one is present (#91777, $42.95). | The fact that a key existed in the project file, and the sessions it billed. |
| Sessions billed to a Console API key | Open the Console Cost page grouped by API key. Max sessions on the API side cost $141.52 in one report (#84545). | The Cost export showing the sessions on the API key. |
| Charged twice for the same session | Compare the API bill with the prepaid-credit balance for the same sessions. One report is API billing and prepaid credits consumed simultaneously (#23315, $1.53). | Both sides of the same sessions: API bill lines and the credit-balance change. |
| Headless fleet billed to the API, Max idle | About 374 headless agents billed about $1,600 in 11 hours while the Max subscription sat idle (#557). The maintainer confirmed the switch: with ANTHROPIC_API_KEY in the environment, the claude CLI silently switches from subscription to per-token API billing, and the maxCostPerDay cap in the config is dead code nothing calls. | The fleet log and the environment the agents ran in. |
| Subagents dispatched through the API key | A Max subscriber ($200 a month) was billed $152.04 when subagents dispatched through the Agent tool routed through the API key instead of the plan — about 800 API requests over 5 sessions (#39903). | The Console log showing the subagent requests on the API key. |
| Project .env key picked up silently | A Max subscriber’s project .env key was picked up silently instead of the Max login, for about $52 of API charges; one test session alone made about 1,400 real API calls (#58083). | The project .env file and the sessions it billed. |
| claude -p suggested to a Max subscriber | The built-in guide suggested claude -p to a Max subscriber, and the sessions billed to the API: $1,800+ in two days (#37686). | The guide output and the API bill for those two days. |
Reconcile it step by step
- 1
Lock the scope: subscription (Pro or Max), Console organisation, API key name, and the sessions in question.
- 2
Run /status and record which credential is active; check the shell profile and project .env files for a key.
- 3
Export the Console Cost page for the same days and group it by API key.
- 4
Match each session to one side only: plan usage or API bill. A session on both sides is a double charge (#23315).
- 5
Take the pack to support: /status output, key name, Cost export, and the public issue numbers that match.
What to keep for a dispute
- /status output: which credential was active for the sessions.
- Key name: the API key involved (never the full key value).
- Console Cost export: grouped by API key, for the disputed days.
- Session list: which sessions landed on the API bill instead of the plan.
- Contact record: ticket number and date for every message to support.
The check-up reads your files inside your browser tab and sends nothing anywhere. It does not log in to your account, does not promise a refund, and does not file disputes for you.
FAQ · Claude Max billed as API usage
Why did my Max usage land on my API bill?
Because an API key was active where you ran Claude Code: one developer was billed $447.30 to the API instead of a Max subscription when an API key was set (GitHub issue #62338). A subscription and the API are billed separately, and if a key is in use, Claude Code bills the Console organisation's prepaid credits instead of your plan. Run /status to see which credential is active.
What does /status tell me?
It tells you which credential Claude Code is actually using for the current session. Subscription or API key. If it shows an API key while you expected Max usage, that is the cause: Max sessions billed to a Console API key cost $141.52 in one report (GitHub issue #84545), and a Pro session billed against the API balance cost $6.00 (#89562). Record the /status output before you change anything.
Does claude -p use my API key even when I have a subscription?
Yes, when a key is present: claude -p silently billed a project .env ANTHROPIC_API_KEY while a valid subscription credential was active (GitHub issue #91777, $42.95). Check the project .env file and the shell profile for ANTHROPIC_API_KEY, remove the key if it is not the one you meant to use, then run /status again to confirm the subscription is active.
I was charged twice for the same session. Is that possible?
One public report is exactly that: API billing and prepaid credits consumed simultaneously for the same sessions (GitHub issue #23315, $1.53). Match each session to one side only. Plan usage or API bill. Using the Console Cost export grouped by API key. A session that appears on both sides is the double charge to dispute.
Can a whole fleet of agents bill the API while my Max plan sits idle?
Yes — one report is about 374 headless agents billing about $1,600 in 11 hours while the Max subscription sat idle. The maintainer confirmed the cause: with ANTHROPIC_API_KEY in the environment, the claude CLI silently switches from subscription to per-token API billing, and the maxCostPerDay cap in the config is dead code nothing calls (GitHub issue #557). Unset the key where headless agents run and check /status before the next run.
Sources
- GitHub: Claude Code billed $447.30 to the API instead of a Max subscription (#62338): public case report, opened 2026-11-23.
- GitHub: Max sessions billed to Console API key, $141.52 (#84545): public case report, opened 2026-11-23.
- GitHub: Pro session billed against Console API balance, $6.00 (#89562): public case report, opened 2026-11-23.
- GitHub: claude -p billed a project .env API key, $42.95 (#91777): public case report, opened 2026-11-23.
- GitHub: same sessions charged twice: API billing and prepaid credits (#23315): public case report, opened 2026-11-23.
- GitHub: about 374 headless agents billed about $1,600 in 11 hours, Max idle; maintainer confirms the key silently switches the CLI to API billing (#557): public case report, opened 2026-12-03.
- GitHub: subagents dispatched through the API key, $152.04 on a Max plan (#39903): public case report, opened 2026-12-03.
- GitHub: project .env API key picked up silently instead of Max login, about $52 (#58083): public case report, opened 2026-12-03.
- GitHub: claude -p suggested to a Max subscriber, $1,800+ in API billing in two days (#37686): public case report, opened 2026-12-03.
Case counts on this page come from our research library of 656 verified public AI billing dispute cases (170 curated cases plus 486 collected on 2026-11-24). Counts are keyword counts over the case texts; one case can match more than one pattern or platform.
Fireborn finds and stops surprise charges for free. If money is owed, it gives you a free appeal template to send yourself. Setting up a hard spend cap for you is a paid job on Upwork. It does not promise refunds or log in on your behalf. Figures in this page follow the sources cited; anything without a source is marked as to be verified. Last verified: 2026-12-03. By Fireborn (6hn68).