#AI credits billing error persistent

1 messages · Page 1 of 1 (latest)

open tide
#

Getting ⚠️ API provider returned a billing error — your API key has run out of credits or has an insufficient balance. Check your provider's billing dashboard and top up or switch to a different API key. even after adding billing credits to anthropic

edgy cometBOT
dreamy hedgeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

turbid meteorBOT
#

Yeah, that usually means one of these is happening:

  1. OpenClaw is using a different auth path than the one you topped up.
  2. The Anthropic profile got marked disabled after the earlier billing failure.
  3. The gateway is still reading an old/missing key.

Can you paste these first:

openclaw --version
openclaw models status
openclaw models status --json

What I’d check right away:

  • In models status, confirm the model is actually anthropic/...
#
  • if it’s openrouter/anthropic/..., billing is on OpenRouter, not Anthropic
  • In models status --json, look at auth.unusableProfiles
    • if Anthropic shows disabledReason: billing, that’s likely it
  • If you use an API key, make sure ANTHROPIC_API_KEY is on the gateway host (best in ~/.openclaw/.env), then restart:
    openclaw gateway restart
    
  • If you use Claude CLI / subscription auth, adding API credits may not affect that route. Re-login:
    openclaw models auth login --provider anthropic --method cli --set-default
    
  • If an old profile is pinned:
    openclaw models auth order clear --provider anthropic
    

Docs: