Cursor and Claude API Key

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

HI,

I have a claude account, and when I try to use my API key in Cursor IDE, I got this issue when querying various Claude models (Sonnet4, sonnet4.5 ..):

We encountered an issue when using your API key: Provider was unable to process your request
API Error:
}
(Request ID: 2bd0da6e-1735-4824-bc82-4d9b724ccdbb)

WOuld you know why?

Steps to Reproduce

Add the API key from Claude in Cursor > Settings > Models > API Keys > Anthropic

Expected Behavior

prompt is processed with the User API key

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.33
VSCode Version: 1.99.3
Commit: a84f941711ad680a635c8a3456002833186c4840

For AI issues: which model did you use?

Claude-4-sonnet

For AI issues: add Request ID with privacy disabled

Request ID: 2bd0da6e-1735-4824-bc82-4d9b724ccdbb

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Thanks for reporting this!

Could you please confirm:

  1. Does your Claude API key work when tested directly with Anthropic’s API or other tools?

  2. Are you on a corporate network or using any proxy/VPN?

Also, try these quick steps:

  • Check Cursor Settings > Network > Run Diagnostics to verify connectivity

Let me know what you find!

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.