claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Out of Extra Usage Despite Available Credits [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45319Fetched 2026-04-09 08:08:06
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
closed ×2commented ×1labeled ×1reopened ×1

Error Message

[{"error":"Error: Failed to delete keychain entry\n at Zp9 (/$bunfs/root/claude:186:124210)\n at async wp9 (/$bunfs/root/claude:187:592)\n at async fp9 (/$bunfs/root/claude:187:496)\n at async UIA (/$bunfs/root/claude:2236:19903)\n at async startOAuthFlow (/$bunfs/root/claude:2236:21466)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:17:05.670Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."},"request_id":"req_011CZrNLd8MDKGkwPZC2aNkF"}\n at generate (/$bunfs/root/claude:441:33630)\n at makeRequest (/$bunfs/root/claude:858:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:17:36.120Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."},"request_id":"req_011CZrNbSBhizByQY6uty9pa"}\n at generate (/$bunfs/root/claude:441:33630)\n at makeRequest (/$bunfs/root/claude:858:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:20:56.968Z"},{"error":"Error: 1P event logging: 1 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:211:2077)\n at async doExport (/$bunfs/root/claude:211:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:04.623Z"},{"error":"Error: {"message":"Failed to export 1 events","originalLine":"211","originalColumn":"1336","line":"211","column":"1336","sourceURL":"/$bunfs/root/claude","stack":"Error: Failed to export 1 events\n at doExport (/$bunfs/root/claude:211:1336)\n at processTicksAndRejections (native:7:39)","name":"Error"}\n at error (/$bunfs/root/claude:2225:25028)\n at <anonymous> (/$bunfs/root/claude:205:38580)\n at BQD (/$bunfs/root/claude:205:39124)\n at <anonymous> (/$bunfs/root/claude:206:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:04.623Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."},"request_id":"req_011CZrbearCN8sPiSdvM5URA"}\n at generate (/$bunfs/root/claude:441:33630)\n at makeRequest (/$bunfs/root/claude:858:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:08.095Z"}]

Code Example

[{"error":"Error: Failed to delete keychain entry\n    at Zp9 (/$bunfs/root/claude:186:124210)\n    at async wp9 (/$bunfs/root/claude:187:592)\n    at async fp9 (/$bunfs/root/claude:187:496)\n    at async UIA (/$bunfs/root/claude:2236:19903)\n    at async startOAuthFlow (/$bunfs/root/claude:2236:21466)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:17:05.670Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrNLd8MDKGkwPZC2aNkF\"}\n    at generate (/$bunfs/root/claude:441:33630)\n    at makeRequest (/$bunfs/root/claude:858:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:17:36.120Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrNbSBhizByQY6uty9pa\"}\n    at generate (/$bunfs/root/claude:441:33630)\n    at makeRequest (/$bunfs/root/claude:858:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:20:56.968Z"},{"error":"Error: 1P event logging: 1 events failed to export\n    at queueFailedEvents (/$bunfs/root/claude:211:2077)\n    at async doExport (/$bunfs/root/claude:211:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:04.623Z"},{"error":"Error: {\"message\":\"Failed to export 1 events\",\"originalLine\":\"211\",\"originalColumn\":\"1336\",\"line\":\"211\",\"column\":\"1336\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 1 events\\n    at doExport (/$bunfs/root/claude:211:1336)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:2225:25028)\n    at <anonymous> (/$bunfs/root/claude:205:38580)\n    at BQD (/$bunfs/root/claude:205:39124)\n    at <anonymous> (/$bunfs/root/claude:206:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:04.623Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrbearCN8sPiSdvM5URA\"}\n    at generate (/$bunfs/root/claude:441:33630)\n    at makeRequest (/$bunfs/root/claude:858:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:08.095Z"}]
RAW_BUFFERClick to expand / collapse
<img width="1142" height="397" alt="Image" src="https://github.com/user-attachments/assets/52699436-ed90-4fbf-90cd-756802b6ef33" />

Bug Description Despite having credits, using claude code gives the error below.

 API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."}.

I have attached an image of my usage from the claude console

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.7
  • Feedback ID: fb20f7b1-6c03-45a7-908c-c4e2dfb5d224

Errors

[{"error":"Error: Failed to delete keychain entry\n    at Zp9 (/$bunfs/root/claude:186:124210)\n    at async wp9 (/$bunfs/root/claude:187:592)\n    at async fp9 (/$bunfs/root/claude:187:496)\n    at async UIA (/$bunfs/root/claude:2236:19903)\n    at async startOAuthFlow (/$bunfs/root/claude:2236:21466)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:17:05.670Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrNLd8MDKGkwPZC2aNkF\"}\n    at generate (/$bunfs/root/claude:441:33630)\n    at makeRequest (/$bunfs/root/claude:858:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:17:36.120Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrNbSBhizByQY6uty9pa\"}\n    at generate (/$bunfs/root/claude:441:33630)\n    at makeRequest (/$bunfs/root/claude:858:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:20:56.968Z"},{"error":"Error: 1P event logging: 1 events failed to export\n    at queueFailedEvents (/$bunfs/root/claude:211:2077)\n    at async doExport (/$bunfs/root/claude:211:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:04.623Z"},{"error":"Error: {\"message\":\"Failed to export 1 events\",\"originalLine\":\"211\",\"originalColumn\":\"1336\",\"line\":\"211\",\"column\":\"1336\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 1 events\\n    at doExport (/$bunfs/root/claude:211:1336)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:2225:25028)\n    at <anonymous> (/$bunfs/root/claude:205:38580)\n    at BQD (/$bunfs/root/claude:205:39124)\n    at <anonymous> (/$bunfs/root/claude:206:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:04.623Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrbearCN8sPiSdvM5URA\"}\n    at generate (/$bunfs/root/claude:441:33630)\n    at makeRequest (/$bunfs/root/claude:858:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T16:12:08.095Z"}]

extent analysis

TL;DR

The user is likely experiencing an issue due to exceeding their extra usage limit on Claude AI, despite having credits, and needs to add more usage or wait for the limit to reset.

Guidance

  • Check the usage limits and available credits on the Claude AI settings page to confirm the current status.
  • Add more usage or credits as suggested in the error message to resolve the "out of extra usage" error.
  • Verify that the issue is resolved by retrying the action that previously resulted in the error after adding more usage or credits.
  • If the issue persists, review the error logs for any other potential causes, such as keychain entry deletion errors or event logging failures.

Example

No code snippet is provided as the issue seems to be related to usage limits and credits rather than code-specific errors.

Notes

The provided error messages and logs suggest that the primary issue is related to exceeding the extra usage limit, but there are also other errors mentioned, such as keychain entry deletion and event logging failures, which may need to be addressed separately.

Recommendation

Apply the workaround by adding more usage or credits to the Claude AI account, as this directly addresses the stated error message and is the most straightforward solution to the described problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING