Cline

Cline is an AI coding assistant for VS Code. Select the OpenAI Compatible provider to call models through ModelGo's OpenAI-compatible API.

Before you start

1. Install Cline

Open the VS Code Extensions marketplace, search for Cline, and install the extension.

Install Cline from the VS Code Extensions marketplace

2. Configure ModelGo

After installation, click the Cline icon in the VS Code activity bar and open API Configuration.

Open Cline API Configuration

Fill in the following values:

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

Click Done to save.

To verify which models the API key can call:

bash
curl https://api.modelgo.ai/v1/models \
  -H "Authorization: Bearer $MODELGO_API_KEY"

3. Start using Cline

Open the Cline panel and send a simple coding request, such as “Describe this project in three sentences.” A normal response confirms the connection.

Complete a conversation in Cline

Troubleshooting

401 or authentication failed

Check that the API key is complete, contains no extra spaces, and is entered in the API Key field.

403 or model unavailable

Make sure Model ID is a logical ModelGo model name allowed by the policy attached to the API key.

404 or endpoint not found

Set Base URL to https://api.modelgo.ai/v1; do not paste a full /chat/completions URL.

The model list is empty

Request GET https://api.modelgo.ai/v1/models to verify the endpoint. If Cline does not show the model in its list, enter Model ID manually.

Related docs