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.