Kilo Code

Kilo Code is an AI coding assistant for VS Code and JetBrains. Use its OpenAI-compatible provider to connect Kilo Code to ModelGo models and API keys.

Before you start

  • Install VS Code or a JetBrains IDE.
  • Create an API key in the ModelGo Console.
  • Confirm a logical model name allowed for the API key in the Model Gallery.

1. Install Kilo Code

VS Code

Open the VS Code Marketplace, search for Kilo Code, verify the publisher, and install the extension. Then open the Kilo Code panel from the activity bar.

Install Kilo Code from the VS Code Marketplace

On the first install, VS Code asks you to confirm the publisher. Verify that it is Kilo Code, then click Trust Publisher & Install.

Trust the Kilo Code publisher

JetBrains

Open Settings / Preferences → Plugins, search the Marketplace for Kilo Code, and install the plugin. Restart the IDE after installation so the plugin takes effect.

Install Kilo Code from the JetBrains Marketplace

When installing a third-party plugin, JetBrains displays its plugin notice. Confirm it and click Accept to finish the installation.

Confirm the JetBrains third-party plugin notice

2. Configure ModelGo in VS Code

Open Kilo Code settings, go to Providers, select OpenAI Compatible, and enter:

From the Kilo Code welcome screen, first choose Bring my own Key:

Choose Bring my own Key
SettingValue in ModelGo
API ProviderOpenAI Compatible
Base URLhttps://api.modelgo.ai/v1
API keyA ModelGo API key created in the Console
ModelA ModelGo logical model name
Kilo Code VS Code configuration

After saving, Kilo Code attempts to load models from the compatible /v1/models endpoint. If the target model is not in the picker, choose Use custom and enter the logical model name from the Model Gallery.

3. Configure ModelGo in JetBrains

Open Kilo Code settings, click Bring my own Key, select OpenAI Compatible, and use the same values as in VS Code:

Choose Bring my own Key in JetBrains
  1. Base URL: https://api.modelgo.ai/v1
  2. API key: your ModelGo API key
  3. Model: a ModelGo logical model name
  4. Click Save.
ModelGo provider settings in JetBrains

If the model picker is empty, verify that the Base URL is reachable, then choose the custom-model option and enter the logical model name manually.

Kilo Code completing a task in JetBrains

4. Verify the connection

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

Kilo Code completing a coding task

To inspect the models available to the current API key:

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

Troubleshooting

401 or authentication failed

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

403 or model unavailable

Make sure Model is a logical model listed in the ModelGo Model Gallery and allowed by the policy attached to the API key. Do not use an upstream provider's raw model ID unless the gallery explicitly lists it.

404 or endpoint not found

Set Base URL to https://api.modelgo.ai/v1, not a full /chat/completions URL. Kilo Code appends the endpoint path when it sends the request.

The model picker is empty

Use GET https://api.modelgo.ai/v1/models to check the API key and endpoint. If the endpoint works, choose Use custom and enter the logical model name manually.

Related docs