> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Kilo Code

> Kilo Code und Kilo CLI mit TokenLab verbinden

## Übersicht

<Note>
  **Typ**: IDE- und CLI-Coding-Agent

  **Primärer Pfad**: OpenAI-kompatible Chat Completions

  **Support**: Offizieller Custom-Provider-Pfad
</Note>

[Kilo Code](https://kilo.ai/docs/ai-providers/openai-compatible) unterstützt benutzerdefinierte OpenAI-kompatible Provider in der VS-Code-Erweiterung und der CLI.

## Installation und UI-Konfiguration

Installiere den Pre-Release-Kanal von **Kilo Code** in VS Code oder die CLI:

```bash theme={null}
npm install -g @kilocode/cli
kilo --version
```

Öffne **Settings → Providers → Custom provider**.

| Feld         | Wert                         |
| ------------ | ---------------------------- |
| Provider ID  | `tokenlab`                   |
| Display name | `TokenLab`                   |
| Provider API | **OpenAI Compatible**        |
| Base URL     | `https://api.tokenlab.sh/v1` |
| API key      | Dein TokenLab API Key        |
| Model        | `kimi-k3`                    |

Kilo erkennt Modelle über `/v1/models`. Wähle nach dem Speichern `tokenlab/kimi-k3`.

## CLI-Konfiguration

Lege den Schlüssel in einer Umgebungsvariable ab und bearbeite die vertrauenswürdige globale Datei `~/.config/kilo/kilo.jsonc`:

```bash theme={null}
export TOKENLAB_API_KEY="sk-your-tokenlab-key"
```

```jsonc theme={null}
{
  "$schema": "https://app.kilo.ai/config.json",
  "model": "openai-compatible/kimi-k3",
  "provider": {
    "openai-compatible": {
      "options": {
        "apiKey": "{env:TOKENLAB_API_KEY}",
        "baseURL": "https://api.tokenlab.sh/v1"
      },
      "models": {
        "kimi-k3": {
          "name": "Kimi K3",
          "tool_call": true,
          "reasoning": true,
          "limit": { "context": 1048576, "output": 131072 }
        }
      }
    }
  }
}
```

Starte Kilo neu und führe `kilo models` aus. `{env:...}` wird nur in vertrauenswürdiger globaler oder verwalteter Konfiguration aufgelöst. Schreibe echte Schlüssel nicht in projektbezogene, versionierte Konfiguration.
