---
url: 'https://docs.byesu.com/en/clients/cline.md'
description: >-
  Configure Cline in VS Code with byesu API: use OpenAI Compatible (/v1) or
  native Anthropic (/v1/messages) with prompt caching and pay-as-you-go billing.
---

# Connect Cline to byesu API

**Cline** is an open-source autonomous coding agent for VS Code. It supports both **Anthropic native** (recommended for Claude models with prompt caching) and **OpenAI Compatible** (for GPT, Gemini, Grok, DeepSeek) endpoints on **byesu**.

::: tip Quick configuration

* **For Claude models (recommended)**: API Provider = `Anthropic`, check **Use custom base URL** → `https://byesu.com` (no `/v1`), API Key = your `sk-...` token.
* **For GPT / Gemini / Grok / DeepSeek**: API Provider = `OpenAI Compatible`, Base URL = `https://byesu.com/v1`, API Key = your `sk-...` token.
  :::

## Option 1: Anthropic Native (Best for Claude + Prompt Caching)

1. Create a token in the [byesu Console](https://byesu.com) under the default **`auto`** group.
2. Open the **Cline** sidebar in VS Code → click the gear icon (**Settings**).
3. Set **API Provider** to **Anthropic**.
4. Paste your byesu token into **Anthropic API Key**.
5. Check **Use custom base URL** and enter:
   ```text
   https://byesu.com
   ```
   *(Do **not** append `/v1` — Cline appends `/v1/messages` automatically.)*
6. Select a Claude model such as `claude-opus-5-5`, `claude-sonnet-5-5`, or `claude-fable-5-2`.

## Option 2: OpenAI Compatible (All Models)

1. In Cline **Settings**, set **API Provider** to **OpenAI Compatible**.
2. Set **Base URL** to:
   ```text
   https://byesu.com/v1
   ```
3. Paste your byesu token into **API Key**.
4. Enter any active model ID in **Model ID**, e.g. `gpt-6.2-sol`, `gpt-6.1-sol`, `gemini-4-argon`, or `deepseek-v4-pro`.

## Troubleshooting & Benchmarks

* **404 on Anthropic provider**: remove trailing `/v1` from the custom base URL ([Claude 404 fix](/en/errors/claude-api-model-not-found-404)).
* **400 prompt too long / context limit**: compact or start a new task; see [Claude 400 prompt too long](/en/errors/claude-api-400-prompt-too-long) and [Prompt Caching](/en/guide/prompt-caching).
* **Live speed & uptime**: check [weekly production benchmarks](https://byesu.com/benchmarks) and [live status](https://byesu.com/status).
