Hey, thanks for the detailed report and the request ID. I’ll look into what’s happening. This isn’t a problem with your setup, it’s how BYOK works right now.
When your OpenAI API key is enabled in Settings > Models, Cursor attaches that key to all models except Claude and Gemini, including Cursor-hosted models like Composer 2.5 and Spark. But those models always run on Cursor infrastructure and can’t be billed to a custom key, so the request gets rejected with This model does not support custom API keys. Important: nothing is sent to OpenAI, the request is rejected before the provider is called.
What to do:
If you want to use Composer 2.5, Spark, Grok, or other Cursor models, turn off the OpenAI key toggle in Settings > Models. You can keep the key saved and turn it back on when you want to use OpenAI models.
As an alternative, use Auto mode. It won’t send BYOK creds when routing to internal models.
We hear you that switching the key on and off is annoying. This is a limitation of the current BYOK implementation, and I’ve shared this feedback with the team. I can’t share an ETA yet.
Hey, there’s no timeline update yet. Like I mentioned above, this is a current limitation of how BYOK works: when the OpenAI API key toggle is enabled in Settings > Models, that key gets attached to every model except Claude and Gemini, including Cursor-hosted models like Composer 2.5, Spark, and Grok. Those models always run on Cursor infrastructure and can’t be billed to a custom key, so the request gets rejected. Nothing is sent to OpenAI, the request is rejected before the provider is called.
For now, the simplest workaround is:
If you need Composer 2.5, Spark, Grok, or other Cursor models, turn off the OpenAI key toggle in Settings > Models. You can keep the key saved and turn it back on when you’re using OpenAI models.
Alternatively, use Auto mode. It doesn’t send BYOK creds when routing to internal models.
I know switching the key on and off is annoying. We’re tracking this limitation, but I can’t share an ETA yet. If there’s an update, I’ll reply in this thread.
Following up on the BYOK + Cursor-hosted models limitation (Composer / Grok rejected with “This model does not support custom API keys” when the OpenAI API key toggle is on).
@deanrie previously said this is tracked and that you’d reply here if there’s an update. Is there any progress toward per-model routing (Cursor-hosted models stay on Cursor billing while OpenAI/OpenRouter BYOK stays on for other models), or at least surfacing unsupported models in the picker while a custom key is enabled?
Workaround of toggling the key still works, but it’s still the main friction when switching between OpenAI-compatible models and Grok/Composer in the same day.
Hey, there’s no update on this issue yet. The behavior is still the same: when the OpenAI API key toggle is enabled in Settings > Models, the key gets applied to all models except Claude and Gemini. Cursor-hosted models like Composer and Grok don’t work with a custom key, so the request gets rejected. We’re tracking this issue, but there’s no timeline yet.
For now, there are 2 working options:
turn off the OpenAI key toggle when you need Composer or Grok. The key will still stay saved.
use Auto. It won’t send the BYOK key when it routes the request to internal models.
The idea of showing in the picker which models aren’t supported when a custom key is enabled is a good temporary fix. I’ve passed that along to the team together with the request for per-model routing.