Connect Kilo Code to ModelGo: Setup & Troubleshooting

Kilo Code is an AI coding assistant for VS Code and JetBrains that connects to ModelGo through its OpenAI Compatible provider. You need an API key from the ModelGo Console and a logical model name from the Model Catalog.

1. Install

Search for Kilo Code in the VS Code Marketplace or the JetBrains Marketplace (Settings → Plugins), verify that the publisher is Kilo Code, and install it. Restart a JetBrains IDE after installing.

2. Configure ModelGo

In Kilo Code choose Bring my own Key (on the welcome screen in VS Code, in settings in JetBrains), select the OpenAI Compatible provider, and enter:

SettingValue in ModelGo
API ProviderOpenAI Compatible
Base URLhttps://api.modelgo.ai/v1; do not append /chat/completions
API keyYour ModelGo API key
ModelA ModelGo logical model name; if it is not in the picker, choose Use custom and type it
Kilo Code VS Code configuration

In JetBrains, enter the same values and click Save:

ModelGo provider settings in JetBrains

3. Verify

Send a simple task in the Kilo Code panel; a normal response confirms the connection. To list the models available to the API key:

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, has no extra spaces, and is entered in API key, not the Base URL field.
  • 403: make sure Model is a logical model allowed by the policy attached to the API key.
  • 404: set Base URL to https://api.modelgo.ai/v1, not a full /chat/completions URL.
  • The model picker is empty: check the key and endpoint with the curl above; if it works, choose Use custom and enter the model name.

Related docs