claude/for
Search
Subscribe
Claude Code

“Credit balance too low” in Claude Code when you have credit

Claude Code is billing a Console key with no usable credit, often an ANTHROPIC_API_KEY that outranks your Pro or Max login. Run /status to see which.

"Credit balance too low · Add funds" means Claude Code sent your request with a Claude Console credential (an API key or a Console sign-in) whose organization has no credit Claude Code can spend. It is rarely an Anthropic outage: usually Claude Code is billing a different account than you think, most often because an ANTHROPIC_API_KEY in your environment outranks your Pro or Max login. Type /status to see which credential is in use.

claude-for is an independent guide, not affiliated with Anthropic. Everything below was checked on December 5, 2026 against Anthropic's error reference, its authentication docs, the Claude Code CHANGELOG and public GitHub reports. We did not trigger the error ourselves.

TL;DR. Run /status. If you pay for Pro, Max, Ultra or Team and it shows an API key, run unset ANTHROPIC_API_KEY, delete the key from your shell profile, relaunch and /login with your Claude account. If you meant to use the key, add purchased credit to the Console organization that owns it.

The exact wording, and its variants

In the terminal it reads as below, quoted in Anthropic's error reference and in GitHub #106458 (Claude Code 2.1.316):

Credit balance too low · Add funds: https://platform.claude.com/settings/billing

Variants with a source behind them:

  • "Credit balance is too low": the short form, from the same reference. 36 GitHub report titles start with it.
  • "Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.": the raw API error behind both, quoted in Anthropic's API credits doc and visible in debug logs.
  • A login-expired version. Since Claude Code 2.1.323 (November 12, 2026, per the changelog), when an expired claude.ai login falls back to a saved Console key with no credit, the message starts "Login expired · Please run /login" and adds "Claude Code tried your saved Claude Console API key instead, but it doesn't have enough credit". That string is present in Claude Code 2.1.337, checked December 5, 2026.

The link now redirects to platform.claude.com/spending/billing (checked December 5, 2026), the Console Billing page that Anthropic's credits doc names.

Messages it gets confused with

  • "You've hit your session limit · resets 3:45pm" is your subscription's own allowance, covered in the same reference. Anthropic ties "Credit balance too low" only to Console credentials, so seeing it means your subscription is not the account paying.
  • "Usage credits ran out before the response was finished." is about usage credits on a paid Claude plan, bought with /usage-credits, not Console credit.

Why Claude Code says this when you have credit

Anthropic's reference names two causes: a Console organization out of prepaid credit, or a Console API key in use when you meant your subscription. GitHub reports split that into four situations.

An API key outranks your login. In Anthropic's precedence list, ANTHROPIC_API_KEY sits above your /login subscription. You approve it once in an interactive session and the choice sticks; claude -p uses it without asking. Anthropic's support article says you are then charged "via API pay-as-you-go rates using the API account associated with that key."

In #105540 (October 28, 2026, Windows), a user saved a key with setx for a separate Python app, and Claude Code billed it until its credit ran out. In #108904, /login printed "Login successful" while the approved key kept paying, about USD 80 by the reporter's count. Anthropic closed it as fixed in 2.1.326 (November 16, 2026).

Your login expired and another credential took over. Anthropic's docs say that after a claude.ai login expires, "requests can use that credential instead, billed to its organization" if you saved another one. #86794 (August 2026) describes a Max subscriber whose sessions moved to old Console credentials until the balance hit zero. Choosing the Claude Console account at /login lands you in the same place.

The credit is the wrong kind. The monthly API credits included with Max, Ultra and Team do not cover Claude Code, and Anthropic's credits doc says an organization holding only those credits shows this message. In #106458, interactive claude failed while claude -p worked with the same key. One commenter traced his case to those credits, which do cover the Agent SDK. That reading is his, not Anthropic's.

Our guide to those credits lists what they pay for. Also check that the key belongs to the organization you funded, since credit sits in one Console organization. And per the credits doc, "Usage is never charged to your Claude plan," so your subscription cannot cover an empty Console balance.

You just paid, and the balance lags. status.claude.com logged three such incidents this autumn. On September 1, 2026, purchases made between 12:10 and 21:35 UTC led to "'credit balance is too low' errors erroneously." October 1 and December 2 brought similar delays, the latter leaving "Some customers" blocked "after purchasing credits" for about three and a half hours.

The Claude moves worth stealing, by email

Workflows tested on real jobs, sent only when they are worth it. Free.

Check which credential Claude Code is using

  • Inside a session, /status. When a login and an API key are both configured, it "marks the credential that isn't in use," per Anthropic. Its Login row also shows an expired claude.ai login.
  • In your shell, claude auth status. The CLI reference lists its JSON authMethod values. api_key or api_key_helper means a Console key is paying; claude.ai means your subscription.
  • Your environment. Run env | grep ANTHROPIC, or Get-ChildItem Env:ANTHROPIC* in PowerShell, as the error reference suggests. It catches keys that direnv, a dotenv plugin or an IDE terminal loaded from a .env file.

Our guide to claude auth status explains its login expiry fields.

Fix it, fastest first

now

Run /status

Decide which account should pay: your Claude subscription or a Console API key.

next

Meant your subscription? Remove the key

Run unset ANTHROPIC_API_KEY, delete the export line from ~/.zshrc or ~/.bashrc (or the user variable on Windows), then relaunch claude. The Use custom API key toggle in /config also switches an approved key off.

next

Sign in again with your Claude account

Run /login and choose your Claude subscription, not the Console option. This also ends an expired login that was falling back to a Console key.

next

Meant the key? Fund the right organization

Open the Billing page of the Console organization that owns the key and add purchased credit, or turn on auto-reload. Included Max, Ultra or Team credits will not pay for Claude Code.

next

Just paid? Check status, then /login

Look for a credits incident on status.claude.com. In GitHub #31537, several users cleared a stale balance by running /login again inside the session. That is a community workaround.

next

Still stuck? Contact support

Keep the request ID from the error or the debug log. Reporters in #86794 and #108904 say support did not refund credits already spent.

The /login workaround comes from #31537, opened March 6, 2026 and still open with 25 comments; others there created a fresh key instead. Anthropic's How to get support page explains where to reach a person.

When to stop and wait

If status.claude.com shows an open incident about credits or the Claude Console, stop changing settings: the three incidents above were resolved within hours. If the page is green an hour after paying, go back to /status: the problem is your account or credential.

To keep it from coming back, set ANTHROPIC_API_KEY for one terminal rather than in your shell profile (our Claude Code API key guide covers safer places), and update to 2.1.326 or later. Per the changelog, /login there warns when an approved key still pays.

The honest limits

Anthropic does not explain why some funded keys fail in an interactive session but work with claude -p: #106458 is still open, and the included-credits explanation comes from one commenter. We did not reproduce the error; the login-expired wording comes from strings in the 2.1.337 binary. GitHub search finds 114 issues mentioning the message since March 2025; Anthropic publishes no count.

Questions people ask

Why does Claude Code say credit balance too low when I pay for Pro or Max?

Because it is not billing your subscription. Anthropic ties this message to Console credentials only. Usually an ANTHROPIC_API_KEY in your environment is paying, or a saved Console key took over after your login expired. Run /status, unset the key, then /login with your Claude account.

Do the monthly API credits from Max, Ultra or Team pay for Claude Code?

No. Anthropic's credits doc lists Claude Code as not covered, and says an organization holding only those credits shows "Credit balance too low · Add funds" in Claude Code. They do pay for the Claude API, Managed Agents, the Agent SDK and the Console Playground.

Why does the error stay after I bought credits?

Either the credit went to a different Console organization from the one that owns your key, or Anthropic's billing is lagging. status.claude.com logged credit-delay incidents on September 1, October 1 and December 2, 2026. Check the status page, then run /login again, a workaround users report in GitHub #31537.

Is "Credit balance too low" a Claude outage?

Rarely. It usually means the wrong account is paying. The exception is a billing incident after a purchase, which status.claude.com lists by name. If the page is green and /status shows the credential you expect with credit behind it, contact Anthropic support.

Claude Code's sign-in and billing rules change often. The newsletter flags the changes that can cost you money.

The Claude moves worth stealing, by email

Workflows tested on real jobs, sent only when they are worth it. Free.