When I use Composer 1 and I have OPENAI_API_KEY set, I get a 403. I pay for cursor, have pro plan, like up to 50 additional usage, but I want to use my own OpenAI API key I get through company when I’ve used that up.
All other cursor features work fine—tab, cmdk, etc.. and this problem does not happen when only setting ANTHROPIC_API_KEY, only with OpenAI.
I should be able to use composer even if I use OpenAI models with my own keys .
Steps to Reproduce
Enable valid OpenAI API key, use it, then try to use Composer-1
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hey, thanks for the report. This is a known bug and the team is already tracking it.
When an OpenAI API key is enabled (either a custom key or via the OPENAI_API_KEY environment variable), it’s mistakenly applied to all models, including subscription models like Composer. That’s why you’re seeing those 403 errors.
Workaround: turn off your OpenAI API key when using Composer, and turn it back on when you need OpenAI models. You can quickly toggle it with CMD+Shift+0.
There’s no ETA for a fix yet, but the team is working on it. Let me know if this workaround helps.