Using Ling in Kilo Code
Kilo Code is an AI coding extension for VS Code. With a simple configuration, you can connect Ant Ling models to Kilo Code for code generation, refactoring, explanation, and multi-step Agent tasks.
What You Need
- Create API Key
- Install the Kilo Code extension in VS Code
Configuration
1. Open Kilo Code Settings
Click the Kilo Code icon in the VS Code sidebar to open the extension panel, then click the Settings (gear icon) in the top-right corner.
2. Select an API Provider
In the API Provider dropdown, select OpenAI Compatible.
3. Fill In the Configuration
| Field | Value |
|---|---|
| Provider ID | Any value, e.g. ant-ling |
| Display name | Any value, e.g. ant-ling |
| Base URL | https://api.ant-ling.com/v1 |
| API Key | Your Ling API Key |
| Model ID | Ling-2.6-1T, Ling-2.6-flash, Ling-2.5-1T, or Ring-1T |
| Model Name | Any value, e.g. Ling-2.6-flash |
4. Save Settings
Click Submit and the configuration takes effect immediately.
Configuring via VS Code settings.json
You can also edit VS Code’s config file (settings.json) directly:
{
"kilocode.apiProvider": "openai",
"kilocode.openAiBaseUrl": "https://api.ant-ling.com/v1",
"kilocode.openAiApiKey": "<YOUR_API_KEY>",
"kilocode.openAiModelId": "Ling-2.6-flash"
}The exact configuration key names may vary depending on the Kilo Code version. Please refer to the extension settings UI for the current field names.
Usage Examples
Code Explanation
Select a block of code in the editor, right-click and choose Kilo Code: Explain, or type a question in the sidebar panel. Kilo Code will call the Ling model to explain the code.
Multi-step Agent Tasks
Enter a high-level task in the Kilo Code chat, such as Refactor this class to a functional style and add unit tests. The model will automatically analyze the context and complete the task step by step.
FAQ
Model Not Responding / Timeout
- Check that the Base URL is correct:
https://api.ant-ling.com/v1 - Verify your API Key is valid in the API Console
How Do I Switch Models?
Update the Model ID field in Kilo Code settings. You can switch between models to balance speed and capability for different tasks.
What Features Are Supported?
Kilo Code calls models via the standard chat/completions interface. All Ling compatible features — streaming output, tool calling, long context — are available.