Override OpenAI Base URL toggle switch turn on automatically after few seconds no matter how many times I turn off

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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

  1. Put a custom OpenAI api key and turn on the api key toggle
  2. Turn on override base URL
  3. Send a message in chat
  4. Turn off override base URL
  5. Close the settings page
  6. 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)

Version: 2.1.35 (Universal)
VSCode Version: 1.105.1
Commit: 7c2ce39981a2dd9877d57af05db98697e1c20900
Date: 2025-11-26T01:28:06.050Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

2 Likes

Hey, thanks for the report.

This might be an issue with cached settings. Could you try:

  • Turn off the “Override Base URL” toggle
  • Completely quit Cursor CMD+Q
  • Restart Cursor
  • Check if the toggle stays off

If the toggle still automatically turns back on after a full restart, please also try:

  • Remove your OpenAI API key from Settings
  • Restart Cursor completely
  • Add the API key again (without ever enabling “Override Base URL”)
  • Check if the issue still happens

Let me know if the restart helps or if the toggle keeps turning itself back on.

I am also facing this same bug. Here is what I have tried:

  1. turning off the override base url within 30-60 seconds the toggle literally turns itself back on
  2. I have quit cursor, updated, and deleted the app and re-downloaded it
  3. removed openai key
  4. 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

Hey, thanks! A few quick checks and details will help us fix this:

Please try:

  • Clear the Override Base URL field (leave it blank), toggle it off, then fully quit Cursor (Cmd+Q) and relaunch.

And please share:

  • Cursor version and OS (Help > About)
  • The exact Base URL you previously set and which provider it’s for
  • Any DevTools console errors right when the toggle turns itself back on (Help > Toggle Developer Tools)

We’ll prioritize a fix once we have this info.

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)

  • Cursor Version: Version: 2.1.41
    VSCode Version: 1.105.1
    Commit: 1321aa9140784391e83a406174345e818fe156f0
    Date: 2025-11-30T18:58:57.968Z
    Electron: 37.7.0
    Chromium: 138.0.7204.251
    Node.js: 22.20.0
    V8: 13.8.258.32-electron.0
    OS: Darwin arm64 24.6.0
  • Base URL: for OpenAI and is set to https://api.openai.com/v1
1 Like

any updates on this bug?

I’m starting to think this might be a bug intentionally designed to prevent us from using models on our side

1 Like

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…

Still getting same !!