I have a custom OpenAI API key added, and I once turned on the override base URL for testing. After that, I turned it off. But after that, it automatically turns on. I tried to turn it off multiple times, but after a few seconds it turned on automatically.
Steps to Reproduce
Put a custom OpenAI api key and turn on the api key toggle
Turn on override base URL
Send a message in chat
Turn off override base URL
Close the settings page
Open the settings page again (you may need to do this step multiple times)
Expected Behavior
It should stay turned off
Screenshots / Screen Recordings
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
I am also facing this same bug. Here is what I have tried:
turning off the override base url within 30-60 seconds the toggle literally turns itself back on
I have quit cursor, updated, and deleted the app and re-downloaded it
removed openai key
added the api key again (for both openai and anthropic)
No matter what the override OpenAI Base Url toggle keeps turning itself back on and causing Claude series models to fail. For now, I always have my setting page open and I manually disable the OpenAI Base URL toggle every time I send a request, but this is incredibly annoying
So when there is no OpenAI BaseURL I get this error: Request failed with status code 404: {“type”:“error”,“error”:{“type”:“not_found_error”,“message”:“model: claude-4.5-opus-high-thinking”},“request_id”:“req_011CVgQQ8xcuuyVVRp3sjupp”}
So right now the only time my Anthropic model requests work is if I set the OpenAI Base URL to: https://api.openai.com/v1
But if the toggle is on for OpenAI Base URL whilst making an Anthropic request, I get this error:
Request ID: 4c183a66-3b84-4412-bf61-37a0adf2c7ca
{“error”:“ERROR_BAD_USER_API_KEY”,“details”:{“title”:“Bad User API key”,“detail”:“Unauthorized User API key”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [unauthenticated] Error
at jZc.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6331:408701)
at dLo._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6948:21873)
at dLo._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6948:21615)
at dLo._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6948:20377)
at dLo._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6948:19194)
at _Pt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6948:17286)
at _e._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at tpt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6316:12156)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:8977:18439)
same ■■■■is happening to me, not only this, but also another bug happens if i use openrouter’s api there too. Its been like this for months now, and i don’t see them doing a thing to fix this…