All models except for

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After adding GLM apit key following instructions in Cursor - Overview - Z.AI DEVELOPER DOCUMENT, all of my enabled models stop working with error msgs below:

Composer: Unauthorized User API key
Sonnet: We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.
GPT5.3 CODEX: Unauthorized User Openai API key
GLM: We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.

This is degradation, all models worked fine when I first added GLM (I have max plan) but now only auto works.

they work when I disable openAI API KEy and Override OpenAI Base URL options in models settings.

Steps to Reproduce

Enable openAI API KEy and Override OpenAI Base URL options in models settings and follow instructions in Cursor - Overview - Z.AI DEVELOPER DOCUMENT

Expected Behavior

All models should work

Operating System

Windows 10/11

Version Information

Version: 2.5.17 (user setup)
VSCode Version: 1.105.1
Commit: 7b98dcb824ea96c9c62362a5e80dbf0d1aae4770
Date: 2026-02-17T05:58:33.110Z
Build Type: Stable
Release Track: Early Access
Electron: 39.3.0
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Additional Information

full request from GLM and Sonnet:-
GLM:
Request ID: 5effbe39-d26b-4930-b34b-21d4d01291f9
{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.
sXt: Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.
at cpA (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32115:39729)
at opA (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32115:38717)
at ppA (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32116:5088)
at lol.run (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32116:9098)
at async ort.runAgentLoop (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44360:7632)
at async fOl.streamFromAgentBackend (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44408:8884)
at async fOl.getAgentStreamResponse (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44408:9837)
at async ALe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32182:15752)
at async Tr (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:43415:4779)

Sonnet:
Request ID: 383102fa-a3c4-471c-bf30-453ec86267d8
{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.
sXt: Provider Error We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.
at cpA (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32115:39729)
at opA (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32115:38717)
at ppA (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32116:5088)
at lol.run (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32116:9098)
at async ort.runAgentLoop (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44360:7632)
at async fOl.streamFromAgentBackend (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44408:8884)
at async fOl.getAgentStreamResponse (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:44408:9837)
at async ALe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:32182:15752)
at async Tr (vscode-file://vscode-app/c:/Users/AlHasan/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:43415:4779)

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This is a known issue. The “Override OpenAI Base URL” setting applies globally to all models, including Cursor Pro models, so everything breaks when it’s enabled.

Workaround for now:

  • Turn off “Override OpenAI Base URL” when you want to use Cursor Pro models (Sonnet, GPT, Composer, etc.)
  • Turn it on only when you specifically need GLM
  • Manually switch it depending on which model you’re using

The same issue was reported and confirmed here: Cursor Models Fail When Using BYOK OpenAI Key with Overridden Base URL (GLM-4.7)

Also, note that if you use GLM via the override, Cursor may drop the model’s reasoning content, which can affect output quality. Keep that in mind.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.