Cursor cannot connect to the third-party relay station

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After upgrading to cursor 3.9.16, when entering the BaseURL and API KEY on the Models page and refreshing, models cannot be retrieved. However, the GET request to https://BaseUrl/v1/models does return model data, and the response message complies with OpenAI specifications.

Steps to Reproduce

  1. Enter the Base URL and API KEY, then click On to enable
  2. Click Refresh Model List
  3. No errors, no results

Expected Behavior

The models were supposed to refresh the available models and use the Agent to select the models supported by the third-party transfer stations. However, nothing happened in reality.
If the problem is solved, please contact me.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.9.16 (user setup)
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Date: 2026-06-27T06:41:01.941Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This isn’t a bug, it’s expected behavior. The Refresh Model List button only refreshes Cursor’s built-in model catalog, not your custom Base URL. Cursor doesn’t auto-discover models from a third-party relay via /v1/models, so even if that endpoint returns valid data, this button won’t use it. Models from a relay need to be added manually.

How to set it up:

  • In Models settings, set Override OpenAI Base URL to your relay URL, with /v1.
  • Keep OpenAI API Key enabled, using your relay key.
  • For each model, type the exact model id returned by the relay into the search field, then click Add Custom Model.
  • Select the added model and use it. You don’t need to refresh.

If chat or agent requests start failing with read ECONNRESET after adding a model, this can happen on 3.9.16 behind a proxy. Switch Settings → Network → HTTP compatibility mode → HTTP/1.1 and fully restart Cursor. That’s a separate known issue.

Let me know how it goes.

Thank you for your reply. In fact, the first and second steps were not problematic. However, when I clicked to add a custom model in the third step, nothing happened and no error message appeared. Moreover, the model I just added was not listed (I have already switched the network to HTTP/1.1)

BaseUrl:https://api.asxs.top/v1

在 2026-07-01 13:01:26,“Dean Rie” [email protected] 写道:

(attachments)


Thank you for your reply. In fact, the first and second steps were not problematic. However, when I clicked to add a custom model in the third step, nothing happened and no error message appeared. Moreover, the model I just added was not listed (I have already switched the network to HTTP/1.1)

hi @wu_bmw, 这种情况属于正常现象,因为 GPT-5.5 已是 Cursor 内置的现有模型,你需要给它设置一个不同的名称;若不修改名称,系统仍会走 Cursor 自带路由,而非自带密钥(BYOK)路由。

Thanks for the screenshots. They show what’s going on. You’re trying to add a custom model named gpt-5.5, but that name is already taken by a built-in Cursor model GPT-5.5. Because of the name conflict, the Add Custom Model button doesn’t create anything, and requests still go through Cursor’s native routing instead of BYOK.

Fix: give your model a unique name that’s different from the built-in ones. For example, use gpt-5.5-relay (or any name that isn’t in Cursor’s list) and click Add Custom Model. It should then appear in the list and route through your Base URL and key.

Your Base URL and API Key are set up correctly, so you don’t need to change anything there.

This was also discussed here if it helps: Routing ambiguity when custom model name matches a built-in Cursor model

Let me know how it goes.