Skip to main content

Kilo Code

Kilo Code is an open-source AI programming assistant that supports two usage modes: the VS Code extension and the CLI.

Prerequisites

  • You have activated a TCB environment and obtained the environment ID cloudBaseEnvID.

  • Enable the required model in the AI console.

  • Obtain the Base URL and API Key in the AI console.

codebuddy

Configuration Steps

Kilo Code provides both an IDE extension and a CLI tool. If you have installed Kilo CLI, you can add or modify the provider through the model configuration file.

The example uses VS Code.

  1. Open VS Code, click the Kilo Code icon in the sidebar, click the settings icon at the top of the panel, go to the Model settings, select Custom provider, and click Connect.

kilocode.png

  1. Fill in the custom large model configuration.

The meanings of each field are as follows:

Field to EnterExplanation
Provider IDThe vendor ID, which can be any value. In the screenshot example, cloudbase is entered for distinction.
Display nameThe display name, which can be any value. In the screenshot example, cloudbase is entered for distinction.
BaseURLThe Base URL for the large model, which is obtained from the AI console.
API keyThe API key for calling the large model, which is obtained from the AI console.
models.IDThe large model ID. Copy the identifier of an enabled large model from the model list in the AI console and enter it here.
models.NameThe display name of the large model, which can be filled in arbitrarily.

kilocode2.png

  1. Click Save, select the custom model you added from the conversation model list, and then you can start a conversation.

kilocode3.png