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

# Use CerasAI with Cline

> Connect Cline directly to CerasAI with an OpenAI-compatible provider.

## Before you begin

Install Cline CLI, create a key on the
[API Keys](https://console.cerasai.cloud/keys) page, and choose a model on the
[Models](https://console.cerasai.cloud/models) page.

**1. Configure CerasAI**

Run `cline auth`, select **OpenAI Compatible**, and enter:

| Setting | Value |
| - | - |
| Base URL | `https://api.cerasai.cloud/v1` |
| API key | Your CerasAI API key |
| Model ID | A full ID from [Models](https://console.cerasai.cloud/models), such as `deepseek-ai/DeepSeek-V4.1-Flash-1017` |

The examples below use `deepseek-ai/DeepSeek-V4.1-Flash-1017`. Replace it with your chosen
model ID and adjust its token limits and supported reasoning settings.

> [accordion] Optional: edit provider settings
>
> Edit the record created by `cline auth`, preserving other providers, `updatedAt`
> and `tokenSource`. Keep the API key private and set token limits for your model.
>
> ```json <data-dir>/settings/providers.json theme={"system"}
> {
>   "version": 1,
>   "lastUsedProvider": "openai-compatible",
>   "modes": {},
>   "providers": {
>     "openai-compatible": {
>       "settings": {
>         "provider": "openai-compatible",
>         "apiKey": "your-key",
>         "model": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
>         "baseUrl": "https://api.cerasai.cloud/v1",
>         "protocol": "openai-chat",
>         "client": "openai-compatible",
>         "reasoning": {
>           "enabled": true,
>           "effort": "high"
>         },
>         "capabilities": [
>           "reasoning",
>           "streaming",
>           "tools"
>         ],
>         "contextWindow": 1048576,
>         "maxTokens": 393216
>       },
>       "updatedAt": "2026-09-29T00:00:00.000Z",
>       "tokenSource": "manual"
>     }
>   }
> }
> ```

**2. Start a conversation**

```bash theme={"system"}
cline --tui --provider openai-compatible \
  --model deepseek-ai/DeepSeek-V4.1-Flash-1017 --thinking high --auto-approve false
```

Use `/model` to switch models or tiers in the same conversation.

## Reasoning effort

Use `--thinking low` or `--thinking high` when starting or resuming Cline.
`max` is not supported.

> [accordion] Set effort when resuming a conversation
>
> ```bash theme={"system"}
> cline --tui --id SESSION_ID --provider openai-compatible \
>   --model deepseek-ai/DeepSeek-V4.1-Flash-1017 --thinking low --auto-approve false
> ```
>
> Get `SESSION_ID` from `cline history`. Keep the same `--data-dir` if you use one.

`/model` resets the effort selected at startup.

Issues common to every agent are listed under [Common issues](https://docs.cerasai.com/agent-integrations#common-issues).

## Resources

* [Cline documentation](https://docs.cline.bot/cli/cli-reference)
* [CerasAI models](https://console.cerasai.cloud/models)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.