> ## 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 Kilo Code

> Connect Kilo Code directly to CerasAI with an OpenAI-compatible custom provider.

## Before you begin

Install Kilo Code in VS Code or use its 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.

Choose your interface:

> [tab] VS Code extension
>
> **1. Configure CerasAI**
>
> Open **Settings → Providers → Custom provider** and enter:
>
> | Setting | Value |
> | - | - |
> | Provider ID | `cerasai` |
> | Display name | `CerasAI` |
> | Provider API | **OpenAI Compatible** |
> | Base URL | `https://api.cerasai.cloud/v1` |
> | API key | Your CerasAI API key |
> | Models | Add or select IDs from the [CerasAI model catalog](https://console.cerasai.cloud/models), such as `deepseek-ai/DeepSeek-V4.1-Flash-1017` |
>
> **2. Save the provider**
>
> Click **Submit** to save the provider. Its configured models are then available
> in the chat model picker.
>
> In **Global Config**, set `limit.context` and `limit.output` to match your model.
>
> **Reasoning effort**
>
> > [accordion] VS Code reasoning effort configuration
> >
> > Open **Global Config** and merge these fields into your model entry under
> > `provider.cerasai.models` to enable **low**, **high**, and **max**, with **high** as the default:
> >
> > ```json theme={"system"}
> > {
> >   "reasoning": true,
> >   "options": { "reasoningEffort": "high" },
> >   "variants": {
> >     "low": { "reasoningEffort": "low" },
> >     "high": { "reasoningEffort": "high" },
> >     "max": { "reasoningEffort": "max" },
> >     "medium": { "disabled": true },
> >     "minimal": { "disabled": true },
> >     "xhigh": { "disabled": true }
> >   }
> > }
> > ```

> [tab] CLI
>
> **1. Set your API key**
>
> Export your key:
>
> ```bash theme={"system"}
> export CERASAI_API_KEY="your-key"
> ```
>
> **2. Configure CerasAI**
>
> The configuration below uses `deepseek-ai/DeepSeek-V4.1-Flash-1017` as an example.
>
> Merge into `~/.config/kilo/kilo.jsonc` and set the token limits to match your model.
> Use this global file: `{env:...}` credentials do not resolve in untrusted project files.
>
> > [accordion] Kilo CLI configuration
> >
> > ```json ~/.config/kilo/kilo.jsonc theme={"system"}
> > {
> >   "$schema": "https://app.kilo.ai/config.json",
> >   "model": "cerasai/deepseek-ai/DeepSeek-V4.1-Flash-1017",
> >   "provider": {
> >     "cerasai": {
> >       "npm": "@ai-sdk/openai-compatible",
> >       "name": "CerasAI",
> >       "options": {
> >         "baseURL": "https://api.cerasai.cloud/v1",
> >         "apiKey": "{env:CERASAI_API_KEY}"
> >       },
> >       "models": {
> >         "deepseek-ai/DeepSeek-V4.1-Flash-1017": {
> >           "name": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
> >           "reasoning": true,
> >           "limit": {
> >             "context": 1048576,
> >             "output": 393216
> >           },
> >           "options": { "reasoningEffort": "high" },
> >           "variants": {
> >             "low": { "reasoningEffort": "low" },
> >             "high": { "reasoningEffort": "high" },
> >             "max": { "reasoningEffort": "max" },
> >             "medium": { "disabled": true },
> >             "minimal": { "disabled": true },
> >             "xhigh": { "disabled": true }
> >           }
> >         }
> >       }
> >     }
> >   }
> > }
> > ```
>
> To add another model or tier, copy the entry under `provider.cerasai.models` and
> update its key and `name` using the [model catalog](https://console.cerasai.cloud/models).
> Adjust its token limits and supported reasoning efforts, then reopen Kilo.
>
> **3. Start a conversation**
>
> Run `kilo`. Use `/models` to switch between configured models in the current conversation.
>
> **Reasoning effort**
>
> Use `/variants` to select **low**, **high**, or **max**. The default is **high**.

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

## Resources

* [Kilo Code documentation](https://kilo.ai/docs/ai-providers/openai-compatible)
* [CerasAI models](https://console.cerasai.cloud/models)


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