Request ID: 407844fc-401b-4a6e-9b4d-e41090487966
{“error”:“ERROR_BAD_REQUEST”,“details”:{“title”:“Bad Request”,“detail”:“This model does not support custom API keys.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:,“analyticsMetadata”:{“actionRequired”:“config”}},“isExpected”:true}
Bad Request This model does not support custom API keys.
ActionRequiredError: Bad Request This model does not support custom API keys.
at QGg (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6983:82705)
at W$s (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6983:81619)
at fqg (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6984:12878)
at Object.classify (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6984:17456)
at uqg (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6984:5856)
at async n7s.run (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6984:16808)
at async ece.runAgentLoop (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7115:34599)
at async NSo.streamFromAgentBackend (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:15031:14663)
at async NSo.getAgentStreamResponse (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:15031:32134)
at async oIe._submitChatMaybeAbortCurrent (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7094:2524)
Hey, thanks for the report. This is about how the custom API key works.
Grok 4.6, like Composer, is a Cursor-hosted model. It always runs on Cursor infrastructure and can’t be served using your own API key. When the custom OpenAI API key is enabled in Settings → Models, it gets attached to all models except Claude and Gemini, including Grok and Composer. That’s why the request gets rejected with “This model does not support custom API keys”.
What to do: turn off the custom API Key toggle in Settings → Models when you want to use Grok or Composer, or only turn it on when you’re working with your own OpenAI-compatible models. Anthropic and Google keys don’t cause this because they only apply to Claude and Gemini.
Your Cursor usage included with the subscription is not affected. Let me know if you still see an error after turning off the toggle.