We're having trouble connecting to the model provider - Claude API Key

Hello supports,

I’ve setup my Anthropic API Key, but some how Cursor shows this error while I use Claude models. Please advise and fix. Thanks.

——–
We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.

Request ID: 77f38bd3-ce6c-4694-91ef-5abebfaf86b3
{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.
aXt: Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.
at upA (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32115:39729)
at cpA (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32115:38717)
at fpA (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32116:5088)
at uol.run (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32116:9098)
at async art.runAgentLoop (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44360:7632)
at async wOl.streamFromAgentBackend (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44408:8884)
at async wOl.getAgentStreamResponse (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44408:9837)
at async ALe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32182:15752)
at async Object.Js [as onSubmit] (vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:43415:4781)
at async vscode-file://vscode-app/d:/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:43389:57281

Hey, this is a common issue with setting up Anthropic BYOK. A few things to check:

  1. Anthropic account balance: Make sure you have API credits on Billing | Claude Developer Platform. You can also confirm your key works by testing it directly with curl or in the Anthropic console.

  2. Conflicting settings: Go to Cursor Settings > Models and make sure Override OpenAI Base URL is turned off, and that no other third party API keys are interfering.

  3. MCP servers: If you have any MCP servers connected (Cursor Settings > Tools & MCP), temporarily disable all of them. This has helped other users with the same error: Again We're having trouble connecting to the model provider. This might be temporary - please try again in a moment

  4. Fresh chat: Start a completely new chat thread after making the changes above.

If none of that helps, try disabling HTTP/2: Cursor Settings > Network > turn on Disable HTTP/2.

Let me know how it goes.