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.

Cursor download page

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.

Open Models in Cursor Settings
Add a model in Cursor
Enable the target model in Cursor

3. Configure the ModelGo endpoint

In Settings → Models → API Keys, fill in the values below and click Verify or Save:

SettingValue for ModelGo
OpenAI API KeyYour ModelGo API key
Override OpenAI Base URLhttps://api.modelgo.ai/v1
Configure the ModelGo endpoint in Cursor

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.

Test a ModelGo model in Cursor

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.

Related docs