Connect Cline to ModelGo: Setup & Troubleshooting

Cline is an AI coding assistant in VS Code. Choose the OpenAI Compatible provider to connect 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

Search for Cline in the VS Code Extensions marketplace and install it.

Install Cline from the VS Code Extensions marketplace

2. Configure ModelGo

Click the Cline icon in the activity bar, open API Configuration, fill in the values below, and click Done:

SettingValue for ModelGo
API ProviderOpenAI Compatible
Base URLhttps://api.modelgo.ai/v1
API KeyYour ModelGo API key
Model IDA ModelGo logical model name
Open Cline API Configuration

Do not append /chat/completions to the Base URL.

3. Verify

Send a simple request in the Cline panel. A normal reply means the setup works.

Complete a conversation in Cline

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: check that the API key is complete with no extra spaces.
  • 403 / model unavailable: the Model ID must be a logical model name your key can call; if the dropdown is empty, type it in manually.
  • 404: the Base URL must be https://api.modelgo.ai/v1.

Related docs