> ## 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.

# Cline

> Configure Cline to use TokenLab models

## Overview

<Note>
  **Type**: IDE coding agent

  **Primary Path**: OpenAI-compatible Chat Completions

  **Support Confidence**: Official provider path
</Note>

[Cline](https://docs.cline.bot/provider-config/openai-compatible) supports custom OpenAI-compatible providers in its IDE settings. Use this path to route Cline agent tasks through TokenLab.

## Install

Install **Cline** from your editor's extension marketplace, then open the Cline panel. Cline supports VS Code, Cursor, VSCodium, Windsurf, Antigravity, and JetBrains IDEs.

## Configure TokenLab

1. Click the gear icon in the Cline panel.
2. Set **API Provider** to **OpenAI Compatible**.
3. Enter the following values:

| Field    | Value                        |
| -------- | ---------------------------- |
| Base URL | `https://api.tokenlab.sh/v1` |
| API Key  | Your TokenLab API key        |
| Model ID | `kimi-k3`                    |

4. Click **Verify**.

For the `kimi-k3` example, Cline's optional model configuration can use:

| Capability            | Value     |
| --------------------- | --------- |
| Context / input limit | `1048576` |
| Max output tokens     | `131072`  |
| Image support         | Enabled   |
| Tool / computer use   | Enabled   |

<Note>
  The model catalog changes over time. Use the [live TokenLab model catalog](https://tokenlab.sh/en/models) when selecting another model instead of copying a stale list.
</Note>

## Verify

After **Verify** succeeds, send a small read-only task before allowing edits:

```text theme={null}
List the files in this workspace and explain which one is the application entry point. Do not edit anything.
```

If Cline returns a response and can invoke a read tool, the endpoint, model, streaming, and tool-call path are working.

## Troubleshooting

<AccordionGroup>
  <Accordion title="Invalid API key">
    Re-copy the key from the TokenLab dashboard and confirm it is active. Cline stores BYOK credentials in your IDE's native secret storage.
  </Accordion>

  <Accordion title="Model not found">
    Enter the model ID exactly as shown by TokenLab, for example `kimi-k3`, without `kimi/` or another provider prefix.
  </Accordion>

  <Accordion title="Connection error">
    Confirm the Base URL ends in `/v1`. Do not enter `/chat/completions` in Cline's Base URL field.
  </Accordion>
</AccordionGroup>
