Integrations
Kilo Code
Kilo Code with AI Tokens: a custom provider from the settings, or kilo.jsonc with the context window, the output limit and tools.
Last updated: 2026-11-03
From the settings
In VS Code: Settings (gear icon) → Providers → at the bottom, Custom provider.
| Field | Value |
|---|---|
| Provider ID | aitokens |
| Display name | AI Tokens |
| Provider API | OpenAI Compatible |
| Base URL | https://api.aitokens.ch/v1 |
| API key | your key, sk-at-… |
| Models | read from https://api.aitokens.ch/v1/models: pick mistral-medium-3.5-128b |
The list read from /v1/models also holds models that do not chat, such as
bge-m3 and whisper-1. Leave those out.
From kilo.jsonc
The context window, the output limit and the tool flag of each model are set
in kilo.jsonc. This is the form Kilo Code's documentation gives for an
OpenAI-compatible provider, with AI Tokens's values:
{
"$schema": "https://app.kilo.ai/config.json",
"model": "openai-compatible/mistral-medium-3.5-128b",
"provider": {
"openai-compatible": {
"options": {
"apiKey": "{env:API_KEY}",
"baseURL": "https://api.aitokens.ch/v1"
},
"models": {
"mistral-medium-3.5-128b": {
"name": "Mistral Medium 3.5",
"tool_call": true,
"limit": { "context": 262144, "output": 32768 }
}
}
}
}
}
{env:API_KEY} reads the key from the environment variable API_KEY. Keep the
key in the global file, in ~/.config/kilo: a kilo.json committed to a
project cannot read environment variables.
For another model, add an entry under models with its id and the context
window from Which model.
Which model
mistral-medium-3.5-128b for most work, for its 262,144 tokens
of context.
More in Which model.
Limits
outputup to 32768. The API refuses amax_tokensabove 32,768 with422.- No reasoning to show: the API does not return a model's reasoning.