Credit balance is too low
Bug Description HELP!!! Im on deadline using Claude Code. I gt the message Credit balance too low · Add funds: https://console.anthropic.com/settings/billing
I have almost $50.00 on file.
I have added $$$ 3 times. Please help. URGENT!!! Greg Ames 650-921-2180
Environment Info
- Platform: macos
- Terminal: Apple_Terminal
- Version: 0.2.81
- Feedback ID: 7d8e2f65-5567-4bbf-9bdb-12b062ec0ac9
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.\"}}\n at b3.generate (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:24425)\n at s3.makeStatusError (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:7212)\n at s3.makeRequest (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:8157)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Ua.maxRetries (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1658:6174)\n at async Ua (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1658:4834)\n at async dR2 (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1658:6106)\n at async file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1867:3386","timestamp":"2025-04-24T21:07:23.306Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.\"}}\n at b3.generate (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:24425)\n at s3.makeStatusError (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:7212)\n at s3.makeRequest (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:8157)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-04-24T21:07:23.372Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.\"}}\n at b3.generate (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:24425)\n at s3.makeStatusError (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:7212)\n at s3.makeRequest (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:8157)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-04-24T21:07:26.992Z"},{"error":"SyntaxError: Unexpected token C in JSON at position 0\n at JSON.parse (<anonymous>)\n at WG (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:580:9967)\n at TI2 (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:672)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-04-24T21:07:26.996Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.\"}}\n at b3.generate (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:24425)\n at s3.makeStatusError (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:7212)\n at s3.makeRequest (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:8157)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-04-24T21:07:27.079Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.\"}}\n at b3.generate (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:24425)\n at s3.makeStatusError (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:7212)\n at s3.makeRequest (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:8157)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Ua.showErrors (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1661:1909)\n at async Ua (file:///Users/greg/.npm-global/lib/node_modules/@anthropic-ai/cla
Note: Error logs were truncated.
Hi! Is it possible you are authenticated with a different organization than the one the funds were added to? Please try running
$ claude /logout
$ claude
and then signing in again with your account
I was correctly logged in. I did end up logging out and logging back in, and it fixed the problem. This was last ditch effort before I heard back from you. Very aggravating.
Greg
On Fri, Apr 25, 2025 at 10:40 AM levpopov @.***> wrote:
levpopov left a comment (anthropics/claude-code#867) https://github.com/anthropics/claude-code/issues/867#issuecomment-2831038550
Hi! Is it possible you are authenticated with a different organization than the one the funds were added to? Please try running
$ claude /logout $ claude
and then signing in again with your account
— Reply to this email directly, view it on GitHub https://github.com/anthropics/claude-code/issues/867#issuecomment-2831038550, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIFTNGTWPPMCVY6HGZLFBT23JXQTAVCNFSM6AAAAAB32DPN3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZRGAZTQNJVGA . You are receiving this because you authored the thread.Message ID: @.***>
I had this problem too, which was resolved by running /login.
The error message could be a little clearer, i.e. indicate the currently logged in account, and suggest the /login command.
I think that perhaps I had previously logged in before authentication via plan was available.
Thank you. I figured out that solution.
Greg
On Sat, Jun 7, 2025 at 2:18 PM alittlesliceoftom @.***> wrote:
alittlesliceoftom left a comment (anthropics/claude-code#867) https://github.com/anthropics/claude-code/issues/867#issuecomment-2953052460
I had this problem too, which was resolved by running /login.
The error message could be a little clearer, i.e. indicate the currently logged in account, and suggest the /login command.
I think that perhaps I had previously logged in before authentication via plan was available.
— Reply to this email directly, view it on GitHub https://github.com/anthropics/claude-code/issues/867#issuecomment-2953052460, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIFTNAZGCKU53YO6VSONXL3CNJJPAVCNFSM6AAAAAB32DPN3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNJTGA2TENBWGA . You are receiving this because you authored the thread.Message ID: @.***>
what is the solution @searayca ?
I have the same problem, but neither /login nor /logout fixed it. under /status is the correct account & I can see the API created
I had to run /logout and then when logging in had to make sure I used my Claude workspace instead of Default workspace credentials.
https://console.anthropic.com/settings/workspaces/
The Default workspace is where I had long ago created ANTHROPIC_API_KEY which was in my shell environment that claude code was picking up when I started it up, instead of making sure to use the new Claude workspace with the key it had generated.
I had to make sure to select No when it asks
Detected a custom API key in your environment
ANTHROPIC_API_KEY: sk-ant-...
Do you want to use this API key?
I'm aware of this and tried it many times over. The issue that I have, is that every time I login I get prompted to purchase credits. The first 2-3 times I did; but nothing changed. So I'm currently stuck with unsable credits. and no solution or support for over 2 weeks now. Tried the bot on the website, said it gave my ticket to a human - no answer. I'm really try not being rude, the issue could very well be on my side, but I hope you can understand my frustration @levpopov
I finally what figured out what happened for me. At some point I had claude change my .claude>settings.local.json file to fix some misconfigured settings and it added this:
"forceLoginMethod": "console"
Removing this entry from the JSON file allowed me to select to login using my plan vs using api key.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.