I configured local model,but it take out this problem, why?
Hey, thanks for the report.
I need a bit more info to understand what’s going on:
- What endpoint are you using? Is it a local address (localhost/127.0.0.1) or a public URL?
- What model name are you entering in the settings?
- What subscription plan are you on? (Free/Pro/Business)
- What Cursor version are you using? (Menu > About Cursor > Copy)
Key notes about BYOK:
- Local models don’t work directly. Cursor sends requests through its backend to build prompts, so local addresses (localhost, LAN IP) aren’t reachable. You need a public HTTPS endpoint. You can use ngrok or a similar tunnel: Unable to use LM Studio with override
- BYOK doesn’t work on the Free plan. You need Pro or higher.
- Recent model validation. Cursor started validating model names on the client side, which blocks some custom models. This is a known issue and the team is working on a fix: Custom Model problems
Share your config details and we’ll figure out what exactly is wrong.
use a public URL : https://openrouter.ai/api/v1/chat/completions
model name: deepseek/deepseek-v3.2
Pro account
version info: ===>
Version: 2.3.41 (system setup)
VSCode Version: 1.105.1
Commit: 2ca326e0d1ce10956aea33d54c0e2d8c13c58a30
Date: 2026-01-16T19:14:00.150Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26220
{“error”:{“type”:“provider”,“reason”:“provider_error”,“message”:“Provider returned 400”,“retryable”:false,“provider”:{“status”:400,“body”:“{\“error\”:{\“code\”:\“400\”,\“message\”:\“Invalid request\”,\“param\”:\“404 NOT_FOUND \\\“No static resource v1/chat/completions.\\\”\”,\“type\”:\”\“}}”}}}
Request ID: 1d4c6e99-f28a-4325-86ab-5b5e975e470b
{“error”:“ERROR_OPENAI”,“details”:{“title”:“Unable to reach the model provider”,“detail”:“We encountered an issue when using your API key: Streaming error\n\nAPI Error:\n\n\n{\"error\":{\"type\":\"provider\",\"reason\":\"provider_error\",\"message\":\"Provider returned 400\",\"retryable\":false,\"provider\":{\"status\":400,\"body\":\"{\\\"error\\\":{\\\"code\\\":\\\"400\\\",\\\"message\\\":\\\"Invalid request\\\",\\\"param\\\":\\\"404 NOT_FOUND \\\\\\\"No static resource v1/chat/completions.\\\\\\\"\\\",\\\"type\\\":\\\"\\\"}}\"}}}\n\n”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
mje: [invalid_argument] Error
at mdf (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9094:26624)
at ddf (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9094:25527)
at xdf (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9095:4393)
at kfa.run (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9095:7579)
at async Byt.runAgentLoop (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:34199:57735)
at async apc.streamFromAgentBackend (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:34248:7695)
at async apc.getAgentStreamResponse (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:34248:8436)
at async DTe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9168:74456)
at async Ui (vscode-file://vscode-app/d:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:33000:3808)
