OpenAI Base URL override automatically switches on if a value is present

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In the Cursor settings in the Model section, if you have a custom URL in the OpenAI Base URL override, but turn it off, after a few seconds it automatically switches itself back on. As seen in the video, I toggle the URL override off, but after 30-40 seconds it switches back on.

Steps to Reproduce

  1. Open Cursor Settings
  2. Click on the Models section
  3. Expand the API Keys section at the bottom
  4. Switch Override OpenAI Base URL on
  5. Enter a custom URL (different from the default)
  6. Switch Override OpenAI Base URL off
  7. Wait up to a minute and observe the option switching itself back on

Expected Behavior

Once Override OpenAI Base URL is toggled off, it should stay off.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.5.9
VSCode Version: 1.99.3
Commit: de327274300c6f38ec9f4240d11e82c3b0660b20

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. Could you try disabling the base URL and then restarting Cursor? Also, a new version 1.5.11 has been released, so please try updating as well.

I did both, did not fix the issue.

Yeah, it’s quite strange, when you disable the base URL, it should reset to the default value. However, I see you’ve set it to https://api.claude.com/v1. Could you try changing it to https://api.openai.com/v1? That might solve the issue.

That does solve it. Also I set up on a different computer and now when I switch it off it stays off since when I turn it back on it resets the value back to the OpenAI URL.

1 Like