Kilo Code reads custom providers from a kilo.json file, and the CLI and the VS Code extension share it. Configure it once and both run on an uncensored, abliterated model. We set up Kilo Code 7.8.40 against CommentLLM's abliterated DeepSeek V4.1 Flash model, and both the CLI and the extension fixed a real bug.
The short version: add a commentllm provider to ~/.config/kilo/kilo.json that uses the @ai-sdk/openai-compatible package with baseURL set to https://api.commentllm.com/v1 and apiKey set to {env:COMMENTLLM_API_KEY}, list the models with their limits, and set model to commentllm/deepseek-v4.1-flash-abliterated.

What you need
- Kilo Code. We used CLI version 7.8.40, installed with
npm install -g @kilocode/cli, and VS Code extension 7.8.40 (kilocode.kilo-code). - A CommentLLM API key. Create one under Keys in the console after you sign up and add credit.
You do not need a Kilo account.
Step 1: put your key in an environment variable
export COMMENTLLM_API_KEY="cllm_..."
Kilo substitutes {env:COMMENTLLM_API_KEY} in the config with this value. For the VS Code extension, the variable must be set in the environment VS Code starts from, so launch code from a shell that has it, or set it in your login profile.
Step 2: write ~/.config/kilo/kilo.json
{
"$schema": "https://app.kilo.ai/config.json",
"provider": {
"commentllm": {
"npm": "@ai-sdk/openai-compatible",
"name": "CommentLLM",
"options": {
"baseURL": "https://api.commentllm.com/v1",
"apiKey": "{env:COMMENTLLM_API_KEY}"
},
"models": {
"deepseek-v4.1-flash-abliterated": {
"name": "DeepSeek V4.1 Flash Abliterated",
"limit": { "context": 1048576, "output": 32768 }
},
"glm-5.3-abliterated": {
"name": "GLM 5.3 Abliterated",
"limit": { "context": 1048576, "output": 32768 }
}
}
}
},
"model": "commentllm/deepseek-v4.1-flash-abliterated"
}
The format is the same one opencode uses: npm names the package that speaks the OpenAI Chat Completions API, and model is the provider key, a slash, then the model key.
Check that Kilo sees the models:
kilo models commentllm
It lists both.
Step 3: run the CLI
Run kilo in your project.

Our test project had a log-triage script with a bug: it counted failed SSH logins by username instead of by source address, so both tests failed. We asked:
The test suite fails. Run the tests, find the bug in auth_triage.py and fix it. Then run the tests again.
Kilo ran the tests, changed one line and ran them again: 2 passed. The turn took 30.2 seconds and used 18,500 tokens.

Step 4: use the VS Code extension
Install Kilo Code from the Extensions view and open it from the activity bar. It reads the same kilo.json, so the model picker under the prompt already shows DeepSeek V4.1 Flash Abliterated. The welcome screen asks how you want to work: Review first asks before edits and commands, High autonomy does not.

We gave it the same bug. It ran the tests, edited auth_triage.py and ran them again: 2 passed.

Approvals
In our CLI run, Kilo's code agent edited the file and ran the tests without asking. Start in a sandbox or a project under version control. In VS Code, choose Review first on the welcome screen if you want to approve edits and commands.
Common problems and fixes
| What you see | Why | Fix |
|---|---|---|
| Authentication error in VS Code but not in the terminal | VS Code was started from the desktop and never saw the variable | Start code from a shell where COMMENTLLM_API_KEY is set |
| The message does not send in VS Code | A notification covered the input when you typed | Close the notification and type again |
Which model to use
Start with deepseek-v4.1-flash-abliterated, the model that fixed the bug here. glm-5.3-abliterated is the one to try for harder reasoning. Both take text only, so image input does not work. If the agent feels slow, switch the model ID to deepseek-v4.1-flash-abliterated-fast: it is the same model served about five times faster, at the same input and output rates and a higher cached-input rate. The pricing page lists every model and its rate.
Run it in a sandbox
Abliterated models refuse far fewer requests than standard ones, and that includes commands an agent should not run on your machine. Try it first in a throwaway project, as we did, and review what the model writes before you ship it.
Setting up a different agent? Uncensored coding AI lists every agent we tested, with a guide for each.
Questions
Can Kilo Code use uncensored or abliterated models?
Yes. Kilo Code accepts custom OpenAI-compatible providers in kilo.json. We ran the Kilo Code CLI and VS Code extension, both 7.8.40, on DeepSeek V4.1 Flash Abliterated through CommentLLM, and each fixed a failing test.
How do I add a custom provider to Kilo Code?
Add a provider block to ~/.config/kilo/kilo.json that uses the @ai-sdk/openai-compatible package, with options.baseURL set to the API's base URL and options.apiKey set to {env:YOUR_KEY_VARIABLE}. List each model with its limits, then set model to provider/model-id.
Do the Kilo Code CLI and VS Code extension share a config?
Yes. In our test the VS Code extension read ~/.config/kilo/kilo.json and showed the same provider and model as the CLI without any setup in the editor.
Do I need a Kilo account to use my own API key?
No. Neither the CLI nor the VS Code extension asked us to sign in when the provider was configured in kilo.json.
