# Cline

[Cline](https://cline.bot) is an open-source AI coding agent that offers a VS Code extension, a JetBrains plugin, and a command-line version. Cline connects to BeeRoute through the **OpenAI Compatible** provider.

## 1. Get an API Key

Open the [API Keys](https://beeroute.ai/keys) page, click **Create API Key**, set **Group** to `default`, and copy the key (it starts with `sk-`).

## 2. Install Cline

Search for **Cline** in the extension marketplace of VS Code (or another VS Code-based editor such as Cursor) and install it.

## 3. Configure BeeRoute

1. Click the Cline icon in the sidebar to open the Cline panel, then click the ⚙️ settings icon in the upper-right corner.
2. Under **API Configuration**, fill in the fields as shown below:

| Setting | Value |
| :--- | :--- |
| API Provider | Select **OpenAI Compatible** |
| Base URL | `https://beeroute.ai/v1` |
| OpenAI Compatible API Key | Your BeeRoute key `sk-xxx` |
| Model ID | Choose from the drop-down list, or choose **Use custom model ID…** and enter it manually, for example `claude-sonnet-5-5` |

3. Save the settings, then send a message in the Cline input box to test.

- **Base URL must include `/v1`**: newer versions of Cline use the URL exactly as entered.
- The model ID must match the model ID on BeeRoute exactly. See the [Pricing](https://beeroute.ai/modellist/) page for all models.
- Under **Model Configuration**, you can set **Supports Images**, **Context Window Size**, and **Max Output Tokens** to match the model. Unknown models are treated as having a 128K context by default.

?> If you turned on **Use different models for Plan and Act modes**, you need to fill in the configuration above separately on both the Plan and Act tabs.

## 4. Recommended Models

| Use case | Model ID |
| :--- | :--- |
| Everyday coding | `claude-sonnet-5-5`, `gpt-6.2-sol` |
| Complex tasks | `claude-opus-5-5`, `gemini-4-neon` |
| Low cost | `deepseek-flash`, `kimi-k3.1-pro`, `glm-5.3` |

## 5. Cline CLI (Optional)

Cline also offers a command-line version (npm package `cline`; Node.js 22 recommended):

```bash
npm install -g cline
cline auth -p openai-compatible -k sk-xxx -m claude-sonnet-5-5 -b https://beeroute.ai/v1
```

The arguments are, in order: provider, key, model ID, and Base URL.

## 6. FAQ

**Getting a 404 error?**

Base URL is missing `/v1`.

**Getting a 401 error?**

The key was not copied completely, or it was entered in another provider's key field. Make sure API Provider is set to **OpenAI Compatible**.

**Model not found?**

The model ID is misspelled or has the wrong case, or the key's group does not include that model.

For more details, see the official Cline documentation: [OpenAI Compatible](https://docs.cline.bot/provider-config/openai-compatible).
