Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When you enable custom OpenAI API key in cursor settings, OpenaAI models using this API key work fine,
But no model from other providers work, Claude, Gemini, Grok etc, they all fail with error that says Unauthorized or Invalid Key of some kind, as if it tried to use OpenAI key for every model there.
This is clearly not expected, instead it should use OpenAI key only for OpenAI model calls and Cursor subscription tokens for other models and tools
Steps to Reproduce
Cursor Settings → Models → Expand API Keys section
Paster OpenAI API Key, Enable the switch near it
Close settings, try asking GPT-5 agent something - it works
Now select any other model (i.e. Gemini 2.5 Pro) and submit request, it will error out with text API key not valid. Please pass a valid API key
Expected Behavior
It should use OpenAI key only for OpenAI model calls and Cursor subscription tokens for other models and tools
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.0.38 (user setup)
VSCode Version: 1.99.3
Commit: 3fa438a81d579067162dd8767025b788454e6f90
Date: 2025-10-29T20:45:40.883Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Does this stop you from using Cursor
No - Cursor works, but with this issue