Skip to content

Light version: pages open quickly, without the 3D graphics. You are seeing the light version because the 3D graphics would be slow on this device. The content is the same.

Turn on 3D

Preparing the graphics. This can take a moment on the first visit.

Henry Lõiv

Web design & development

Quick Answer

Why does Claude Code show API costs when I have a subscription?

Artificial Intelligence 3 min read

A dollar amount in Claude Code is not automatically an additional charge. The session cost shown by /usage is a token-cost calculation; for subscription users, that figure is not the bill. Check the billing account before changing anything. 1

Checked on 22 October 2026. The steps below target the local terminal CLI.

If Console usage is actually increasing, inspect authentication. In current interactive Claude Code, an approved ANTHROPIC_API_KEY can take priority over subscription login. In non-interactive -p mode, a present API key is used without that interactive choice. 2, 3

Check the account without exposing your API key

Inside Claude Code, run:

/status

Check the active login method and organization. Outside Claude Code, this macOS/Linux shell check reports whether the variable has a value without printing the secret:

if [ -n "${ANTHROPIC_API_KEY:-}" ]; then
  printf '%s\n' 'ANTHROPIC_API_KEY is set'
else
  printf '%s\n' 'ANTHROPIC_API_KEY is not set'
fi

A configured key is a clue, not proof that it caused a particular charge. Use /status to confirm what the running session selected. 2, 3

Use your subscription instead of an unintended API key

Exit Claude Code. In the same terminal, remove the variable from that shell:

unset ANTHROPIC_API_KEY

On Windows PowerShell, the equivalent is:

Remove-Item Env:ANTHROPIC_API_KEY -ErrorAction SilentlyContinue

These commands do not revoke the key or permanently edit your environment. If an unintended export exists in a shell startup file, remove that specific setting and restart the terminal. Review your editor’s inherited environment as well. Do not delete configuration files wholesale. 3

Start Claude Code again, use /login to select the account with your subscription, and verify /status before the next task. Avoid selecting Console/API billing when your intention is to use your plan. 2, 4

For a managed workplace setup, ask the administrator before removing credentials. Provider settings, bearer tokens or credential helpers can select a different authentication route. 2

Check paid extra usage separately

A subscription login can still use separately paid usage credits after included limits are reached, when that option is enabled. Review Settings → Usage, the spending cap and auto-reload. This is separate from Console/API billing. 5

Max’s included monthly API credits do not cover interactive Claude Code extra usage. See what the Max API credits cover. 5

Confirm the outcome: /status should show the intended account, and the relevant billing view should match it. Changing authentication does not undo earlier charges. Keep API keys, personal account details and repository contents out of public troubleshooting screenshots.

Sources

  1. Manage costs effectively
  2. Claude Code authentication
  3. Manage API key environment variables in Claude Code
  4. Use Claude Code with your Pro or Max plan
  5. Manage usage credits for paid Claude plans

Fact checked:

Hi!

I really love the sea, yachts, sunsets and starry skies.

Through this little 3D world, I can share a small part of myself with you.

Thank you for opening this bottle and reading my letter.

Henry

Let’s talk about your project

Tell me about your project

Tell me what you’d like to build or improve. You don’t need a finished brief — we’ll work out the scope and next steps together.

01 How can I help?
02 How many pages do you need?
03 Which extras do you need? Choose all that apply
04 When does it need to be ready?
05 Project details
06 Your contact details

Enquiry received

Thank you!

Your enquiry has been received. I usually reply by email within 2 working days.