claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Invalid Request - Third-party App Usage Billing Mismatch [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#45247Fetched 2026-04-09 08:09:51
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
closed ×1commented ×1labeled ×1

Error Message

[{"error":"Error: Failed to delete keychain entry\n at LBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:236:132429)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async vBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:237:626)\n at async yBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:237:530)\n at async sH0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2294:20012)\n at async YkA.startOAuthFlow (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2294:21576)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2299:29023","timestamp":"2026-04-08T14:09:20.602Z"},{"error":"hK1: Another process is currently installing an update\n at XEA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2929:3122)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4935:32621\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-04-08T14:09:29.035Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Third-party apps now draw from your extra usage, not your plan limits. We've added a $20 credit to get you started. Claim it at claude.ai/settings/usage and keep going."},"request_id":"req_011CZrSJbfwqW4AmdrpxjTiz"}\n at D9.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:491:33583)\n at hP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:2195)\n at hP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:5420)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async BJ9.v51.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6288)\n at async v51 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1064:97940)\n at async BJ9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6442)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3799\n at async LZ0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1065:1998)\n at async oHA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3769)","timestamp":"2026-04-08T14:09:35.832Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Third-party apps now draw from your extra usage, not your plan limits. We've added a $20 credit to get you started. Claim it at claude.ai/settings/usage and keep going."},"request_id":"req_011CZrSJyW7UmvHvjkEjCKDy"}\n at D9.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:491:33583)\n at hP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:2195)\n at hP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:5420)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async BJ9.v51.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6288)\n at async v51 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1064:97940)\n at async BJ9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6442)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3799\n at async LZ0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1065:1998)\n at async oHA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3769)","timestamp":"2026-04-08T14:09:40.958Z"},{"error":"hK1: Insufficient permissions for global npm install.\n at Uq0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2929:1139)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async zt (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2939:9872)","timesta

Code Example

[{"error":"Error: Failed to delete keychain entry\n    at LBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:236:132429)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async vBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:237:626)\n    at async yBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:237:530)\n    at async sH0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2294:20012)\n    at async YkA.startOAuthFlow (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2294:21576)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2299:29023","timestamp":"2026-04-08T14:09:20.602Z"},{"error":"hK1: Another process is currently installing an update\n    at XEA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2929:3122)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4935:32621\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-04-08T14:09:29.035Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Third-party apps now draw from your extra usage, not your plan limits. We've added a $20 credit to get you started. Claim it at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrSJbfwqW4AmdrpxjTiz\"}\n    at D9.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:491:33583)\n    at hP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:2195)\n    at hP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async BJ9.v51.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6288)\n    at async v51 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1064:97940)\n    at async BJ9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6442)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3799\n    at async LZ0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1065:1998)\n    at async oHA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3769)","timestamp":"2026-04-08T14:09:35.832Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Third-party apps now draw from your extra usage, not your plan limits. We've added a $20 credit to get you started. Claim it at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrSJyW7UmvHvjkEjCKDy\"}\n    at D9.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:491:33583)\n    at hP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:2195)\n    at hP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async BJ9.v51.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6288)\n    at async v51 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1064:97940)\n    at async BJ9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6442)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3799\n    at async LZ0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1065:1998)\n    at async oHA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3769)","timestamp":"2026-04-08T14:09:40.958Z"},{"error":"hK1: Insufficient permissions for global npm install.\n    at Uq0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2929:1139)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async zt (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2939:9872)","timesta
RAW_BUFFERClick to expand / collapse

Bug Description API Error: 400 {"type":"error","error":{"type":"invalid_request_error","mess age":"Third-party apps now draw from your extra usage, not your plan limits. We've added a $20 credit to get you started. Claim it at
claude.ai/settings/usage and keep
going."},"request_id":"req_011CZrSJyW7UmvHvjkEjCKDy"} ...but i am not using any third party apps nor am I near any usage limits

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.7
  • Feedback ID: 7ef830f8-52bc-4857-9efe-7d8522e66e0d

Errors

[{"error":"Error: Failed to delete keychain entry\n    at LBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:236:132429)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async vBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:237:626)\n    at async yBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:237:530)\n    at async sH0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2294:20012)\n    at async YkA.startOAuthFlow (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2294:21576)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2299:29023","timestamp":"2026-04-08T14:09:20.602Z"},{"error":"hK1: Another process is currently installing an update\n    at XEA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2929:3122)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4935:32621\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-04-08T14:09:29.035Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Third-party apps now draw from your extra usage, not your plan limits. We've added a $20 credit to get you started. Claim it at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrSJbfwqW4AmdrpxjTiz\"}\n    at D9.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:491:33583)\n    at hP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:2195)\n    at hP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async BJ9.v51.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6288)\n    at async v51 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1064:97940)\n    at async BJ9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6442)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3799\n    at async LZ0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1065:1998)\n    at async oHA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3769)","timestamp":"2026-04-08T14:09:35.832Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Third-party apps now draw from your extra usage, not your plan limits. We've added a $20 credit to get you started. Claim it at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrSJyW7UmvHvjkEjCKDy\"}\n    at D9.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:491:33583)\n    at hP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:2195)\n    at hP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:914:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async BJ9.v51.model (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6288)\n    at async v51 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1064:97940)\n    at async BJ9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4371:6442)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3799\n    at async LZ0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1065:1998)\n    at async oHA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4369:3769)","timestamp":"2026-04-08T14:09:40.958Z"},{"error":"hK1: Insufficient permissions for global npm install.\n    at Uq0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2929:1139)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async zt (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2939:9872)","timesta

Note: Error logs were truncated.

extent analysis

TL;DR

The most likely fix is to claim the $20 credit at claude.ai/settings/usage to resolve the "Third-party apps now draw from your extra usage" error.

Guidance

  • Check the usage settings at claude.ai/settings/usage to see if there are any pending credits or usage limits that need to be addressed.
  • Verify that there are no third-party apps drawing from the extra usage, as the error message suggests.
  • Inspect the error logs for any other permission-related errors, such as the "Insufficient permissions for global npm install" error, and address them accordingly.
  • Consider checking for any updates to the @anthropic-ai/claude-code package, as the error logs suggest that an update may be in progress.

Example

No code snippet is provided, as the issue appears to be related to configuration and usage settings rather than code.

Notes

The error logs were truncated, so there may be additional information that is not visible. The $20 credit claim may not be the only solution, and further investigation into the usage settings and permission errors may be necessary.

Recommendation

Apply the workaround by claiming the $20 credit at claude.ai/settings/usage, as this appears to be the most direct solution to the "Third-party apps now draw from your extra usage" error.

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