Hey, this is a common issue with setting up Anthropic BYOK. A few things to check:
-
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
curlor in the Anthropic console. -
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.
-
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
-
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.