We encountered an issue when using your API key: Streaming error

Where does the bug appear (feature/product)?

Somewhere else…

Describe the Bug

Hey, I’ve added my Anthropic API key to Cursor to get more usage from Claude, but it doesn’t work consistently. In the screenshot, you can see the error message I’m getting. Cursor is expensive, and this is very disappointing. I’ve been encountering this bug for a couple of days now. I can see the same issue reported in your forum. You really need to fix this; otherwise, you’re going to lose customers.

Steps to Reproduce

Get an Antropic API key, add to Cursor and you’ll get stuck.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.44
VSCode Version: 1.105.1
Commit: 20adc1003928b0f1b99305dbaf845656ff81f5d0
Date: 2025-12-24T21:41:47.598Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.3.0

For AI issues: which model did you use?

Claude Sonnet 4.5

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. I can see the error details. It’s a provider error when using your Anthropic API key.

Can you click Copy Request Details and share the full request ID? That will really help the engineers pinpoint the issue on their side.

Also, for now please check:

  1. Credits in your account: Dashboard > Manage Subscription. Even with BYOK, you still need credits for Cursor infrastructure.
  2. Override Anthropic Base URL: Settings > Models. This should be turned off.
  3. Privacy Mode: Settings. Try turning it off.

encountered same issue today, removed external model I added recently and it worked.

I have the same issues when using Open AI Key and override OpenAI Base Url:

{“error”:{“type”:“provider”,“reason”:“provider_error”,“message”:“Provider returned 400”,“retryable”:false,“provider”:{“status”:400,“body”:“{“error”:{“message”:“unknown provider for model gpt-5.2”,“type”:“invalid_request_error”}}”}}}

Version: 2.3.21 (user setup)
VSCode Version: 1.105.1
Commit: 68e0a0385b87408d050869ea543e3778ad53f780
Date: 2026-01-02T23:46:13.381Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.22000

Thanks for the info. When the Override OpenAI Base URL setting is enabled, it affects all models, including Cursor Pro models (like gpt-5.2). Cursor will try to send requests for every model through your overridden Base URL.

Fix:

  • Turn off Override OpenAI Base URL in Settings > Models when you want to use Cursor Pro models
  • Turn it back on only when you’re using custom models via your Base URL
  • Switch it manually depending on which model you’re using

A similar issue is discussed here: Cursor Models Fail When Using BYOK OpenAI Key with Overridden Base URL (GLM-4.7)

The team is working on a fix.

1 Like

Thanks for the explanation.

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