
The kilo program, Kilo Code on the command line, keeps its settings in a kilo.jsonc file. The global one, in your home folder, applies to every project. That is where the Interweb provider and the key variable must go.
Where it is
| System | File |
| Linux and macOS | ~/.config/kilo/kilo.jsonc |
| Windows | C:\Users\<your name>\.config\kilo\kilo.jsonc |
Kilo Code also accepts kilo.json. If the folder has older OpenCode files (opencode.json, opencode.jsonc or config.json), Kilo Code reads them too and joins them with kilo.jsonc.
On Linux and macOS:
mkdir -p ~/.config/kilo
nano ~/.config/kilo/kilo.jsonc
On Windows, in PowerShell:
New-Item -ItemType Directory -Force "$HOME\.config\kilo"
notepad "$HOME\.config\kilo\kilo.jsonc"
What goes in it
According to the Kilo Code documentation, kilo.jsonc is for the provider, the model, permissions and MCP servers. For Interweb, paste this:
{
"$schema": "https://app.kilo.ai/config.json",
"provider": {
"api": {
"npm": "@ai-sdk/openai-compatible",
"name": "Interweb",
"options": {
"baseURL": "https://api.interweb.co.mz/v1",
"apiKey": "{env:INTERWEB_API_KEY}"
},
"models": {
"moonshotai/kimi-k2.7-code": { "name": "Kimi K2.7 Code", "tool_call": true, "limit": { "context": 262144, "output": 16000 } },
"deepseek-ai/deepseek-v4-pro": { "name": "DeepSeek V4 Pro", "tool_call": true, "limit": { "context": 1048576, "output": 16000 } },
"zai-org/glm-5.2": { "name": "GLM 5.2", "tool_call": true, "limit": { "context": 1048576, "output": 16000 } },
"deepseek-ai/deepseek-v4-flash": { "name": "DeepSeek V4 Flash", "tool_call": true, "limit": { "context": 1048576, "output": 16000 } }
}
}
},
"model": "api/moonshotai/kimi-k2.7-code"
}
| Part | What it does |
| "api" | The provider id. model starts with it. |
| baseURL | Our address, with /v1. |
| apiKey | {env:INTERWEB_API_KEY} reads the key from the variable. It only works in this global file. |
| models | The models that show. Each one takes the catalogue id, with the slash. |
| tool_call | Says that the model supports tools. See models that accept tools. |
| limit | The context and the maximum per answer. See limits in kilo.jsonc. |
| model | The starting model: the provider, a slash and the catalogue id. |
Install, open and check
npm install -g @kilocode/cli
cd my-project
kilo
Run kilo in the folder you are going to work in. Kilo Code only reads the file when it starts: after each change, close it and start it again. For the key, see how to keep the key in a variable, on Windows and Linux.
kilo models api
kilo models lists the models it finds; with api, only those of the Interweb provider. Inside kilo, /models switches the model.
The global file and the project file
A project can have its own kilo.jsonc at the root, or .kilo/kilo.jsonc (this one wins if both exist). Project settings win over the global ones. But a project file does not read {env:...}, so the provider with the key stays in the global file. See why the key only works in the global file.
| Never write the key in kilo.jsonc. Use {env:INTERWEB_API_KEY}. If a key ends up in a shared file, see what to do, in the right order. |
|
Want our models in Kilo Code, in the terminal? Visit the Coding with AI page. See Coding with AI |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from $5.36/mo (3-year plan, with coupon) See plans |











