I am unable to use custom models because the openai toggle does not switch on when I toggle it. it says “are you sure you want to enable…”, I click “Enable…”, it thinks for a split second, and then nothing happens. Clicking the “verify” button also shows this meessage and then does nothing; not even an error message or anything.
the other api toggles work as expected.
Steps to Reproduce
just click the toggle or verify buttons under openai.
Expected Behavior
When I click the toggle, it should switch on/off states.
when I click verify, it should toggle on and then run a curl command to test api.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
I have encountered a similar issue. To understand what the error is, you need to click Help → Developer Tools, and usually, the error will be visible in the console. Alternatively, you can check the Network tab. Typically, this is due to an incorrect key, an incorrect API host, or CORS not being configured properly.
I’m running into this issue as well. Steps I’ve taken:
I’ve updated to the latest version of Cursor (Version: 1.1.6).
I’m using the same API key that worked previously.
I’ve hit the “Verify” button a few times and there’s no obvious error or confirmation. (A side request: Can we make the verify confirm in a more explicit way? It’s quite ambiguous when it finishes verifying.)
I’ve restarted and the issue still persists
Attempting to enable the openAI key will trigger the Verify API key flow and then fail. The toggle state stays in disabled.
I’ve restarted Cursor a few times. I cannot get my original openAI key to verify, which was working previously. I tried verifying with a made up API, and as expected, that didn’t verify. Side note, I would still like like a more useful verification feedback instead of it doing nothing on pass or fail. I created another API key on openAI and that new API key does not verify.
I am able to get Anthropic and Google’s API keys to verify fine and enable their models with no problem.
Can I get some help with this? When I look at the openAI billing dashboard, it appears to be more costly to go through Cursor than directly through my API key.
Ah-hah! I found another post with how to fix this. You have to enable chatGPT’s gpt-4o model, because that’s the model that’s used for verification.
Separately, perhaps it makes sense to auto-enable the model used for verification when people try to verify their openAI key instead of having things silently fail.