Connect Cursor to ModelGo: Setup & Troubleshooting
Cursor is an AI code editor. A custom OpenAI Base URL connects it to ModelGo. Before you start, create an API key in the ModelGo console and pick a logical model name your key can call from the Model Catalog.
1. Install
Download and install Cursor from the Cursor website.

2. Add a model
Open the Models page in Cursor settings, click Add model, enter a ModelGo logical model name, and keep only the models you use in Model Names.



3. Configure the ModelGo endpoint
In Settings → Models → API Keys, fill in the values below and click Verify or Save:
| Setting | Value for ModelGo |
|---|---|
| OpenAI API Key | Your ModelGo API key |
| Override OpenAI Base URL | https://api.modelgo.ai/v1 |

Do not append /chat/completions to the Base URL.
4. Verify
Select the model in chat and send a message. A normal reply means the setup works.

To check the key and the models it can call:
bash
export MODELGO_API_KEY="mgk_your_api_key"
curl https://api.modelgo.ai/v1/models \
-H "Authorization: Bearer $MODELGO_API_KEY"Troubleshooting
- 401: make sure the API key is complete and entered in the OpenAI API Key field.
- 403 / Verify fails: the model name must be a logical model name your key can call and must be enabled in Model Names.
- 404: the Base URL must be
https://api.modelgo.ai/v1.