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

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.