I’ve encountered a specific issue when using OpenRouter API in Cursor:
Connection failed. If the problem persists, please check your internet connection or VPN
Connections consistently fail ONLY when trying to use Claude models (claude-3.7, etc.). Other OpenRouter models work perfectly fine, and Claude via OpenRouter works normally in other applications. And it has been more than two days.
Details:
Only Claude models through OpenRouter fail in Cursor
Other OpenRouter models (like GPT-4, etc.) work normally in Cursor
Claude through OpenRouter works fine in other applications
Issue persists even after extending timeout settings
Verified my OpenRouter API key is correct (works with other models)
Confirmed my network connection is stable (other models and applications work fine)
When verifying the API using Claude, it works perfectly and shows up in OpenRouter usage logs
Hello, I have the same problem, can you help me solve it?
Cursor Version:0.48.7
Operating System:Windows 11
Request ID:ae041928-c1a4-4f96-9416-9ec9d5256d27
@Ajay-Seed Looked like some SSL issue here, are you using a self-signed certificate or something here?
@TSxingke That ID isn’t showing in our backend, which suggests Cursor isn’t able to connect to our servers, can you try to disable HTTP/2 and try again?
I should clarify that I am using a proxy (V2rayN), but I’ve tested extensively and found that:
Direct Anthropic API works in Cursor (with or without proxy)
Other OpenRouter models work fine (with or without proxy)
Only Anthropic through OpenRouter fails in both cases
Since the issue persists regardless of proxy usage, and I’ve tested the SSL connections all SSL certificates are properly signed, not self-signed certificate. Could there be another reason for this specific Anthropic-OpenRouter connection issue?
Hi everyone, I’m here to report the same issue. I have many other models with OpenRouter and all of them are working fine.
Any “anthropic/...” fails, it just keeps loading forever.
Request ID: c40bc042-f416-41e8-9a5a-371683f9093b
To make sure it’s not about the naming, I used a wrong OpenRouter model name like “claude-3.7-sonnet” and I instantly got the error message.
Request failed with status code 400: {"error":{"message":"claude-3-7-sonnet-20250219 is not a valid model ID","code":400},"user_id":”user_*******"}
Details:
Only Claude models through OpenRouter fail in Cursor
Other OpenRouter models (like GPT-4, etc.) work normally in Cursor
Claude through OpenRouter works fine in other applications
Issue persists even after extending timeout settings
Verified my OpenRouter API key is correct (works with other models)
Confirmed my network connection is stable (other models and applications work fine)
When verifying the API using Claude, it works perfectly and shows up in OpenRouter usage logs
But when trying to use Claude in actual chat:
Connection fails
No usage logs appear in OpenRouter
No error response from OpenRouter
Environment:
Cursor Version: 0.49.5
Operating System: Darwin arm64 24.0.0 (macOS 15.0.1)