When OpenAi API Key is enabled, block the use of other models

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When open ai API Key is enabled, open ai models works ok. When you try to change the model (new or existing chat), for example to gemini (without api key), the chat request fails without a noticeable error. In the Usage pannel the request shows as “Included” with 0 token use. If the api key from open ai is disabled, the ide works as expected again.

Im using latest stable version of the ide on OSX.

Steps to Reproduce

  1. Add an open AI api key and enable the use.
  2. Create a new chat
  3. Choose gemini
  4. Chat will fail

Expected Behavior

The new chat should work.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.43 (Universal)
VSCode Version: 1.105.1
Commit: 32cfbe848b35d9eb320980195985450f244b3030
Date: 2025-12-19T06:06:44.644Z
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

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

This is a known issue. When an OpenAI API key is enabled, it can be incorrectly applied to all models, so Gemini, Claude, and other subscription models may not work.

Workaround: Turn off the OpenAI API key toggle when you want to use other models (Gemini, Claude), and turn it back on only for OpenAI models. You can use the shortcut Cmd+Shift+0 to toggle it quickly.

Related threads:

1 Like