claude-code - 💡(How to fix) Fix [BUG] official VS Code extension does not work due to API error [2 comments, 3 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#45057Fetched 2026-04-09 08:14:18
View on GitHub
Comments
2
Participants
3
Timeline
9
Reactions
0
Author
Timeline (top)
labeled ×4cross-referenced ×3commented ×2

Error Message

API 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":"/request_id/"}

Code Example

API 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":"/request_id/"}

---

API 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":"/request_id/"}
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When I try to use (type a prompt) in VS Code extenstion, I get the following error:

API 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":"/request_id/"}

I'm using official vs code extension: https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code

What Should Happen?

I should be able to use the Claude Code (with Pro plan) with native VS Code extension. It shouldn't been treated as 3rd party.

Error Messages/Logs

API 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":"/request_id/"}

Steps to Reproduce

Having win 11

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.96

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

fyi using Claude via powershell terminal, or integrated VS code terminal works; what's not working is the official VS Code extension

extent analysis

TL;DR

Claim the $20 credit at claude.ai/settings/usage to potentially resolve the API Error 400 issue with the VS Code extension.

Guidance

  • The error message suggests that the issue is related to the new policy of drawing from extra usage instead of plan limits, so claiming the $20 credit might resolve the issue.
  • Try checking the usage settings at claude.ai/settings/usage to see if there are any other configuration options that can be adjusted to resolve the issue.
  • Since the issue is specific to the VS Code extension, try using the Claude Code via the PowerShell terminal or integrated VS Code terminal as a temporary workaround.

Notes

The issue seems to be related to a change in the Anthropics API policy, and claiming the $20 credit might be a necessary step to resolve the issue. However, without more information about the previous working version and the exact changes made, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Claim the $20 credit at claude.ai/settings/usage, as this is the most direct solution suggested by the error message.

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