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

> Connect the built-in chat in VS Code to CerasAI with a Custom Endpoint model.

> [!NOTE]
>
> This guide configures the chat built into VS Code. Agent extensions keep their own
> provider settings: if you use Kilo Code in VS Code, follow the
> [Kilo Code guide](https://docs.cerasai.com/agent-integrations/kilo-code.md) instead.

## Before you begin

Install VS Code 1.122 or later, 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. Add a Custom Endpoint**

In the Chat view, open the model picker (**Models**) and select **+**, or run
**Chat: Manage Language Models** from the Command Palette.
The **Language Models** editor opens.

Select **Add Models → Custom Endpoint**. VS Code asks for these values in turn:

| Prompt | Value |
| - | - |
| Group Name | `CerasAI` |
| API Key | Your CerasAI API key |
| API Type | **Chat Completions** |

**2. Configure the model**

VS Code opens `chatLanguageModels.json` with a `CerasAI` entry and an empty model.
Leave `name`, `vendor`, `apiKey`, and `apiType` as VS Code wrote them: `apiKey` refers to
the key you entered, which VS Code keeps in secret storage. Replace the empty model under
`models` with the entry below and save the file.

The entry below uses `deepseek-ai/DeepSeek-V4.1-Flash-1017` as an example.

> [accordion] VS Code model entry
>
> ```json theme={"system"}
> {
>   "id": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
>   "name": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
>   "url": "https://api.cerasai.cloud/v1/chat/completions",
>   "toolCalling": true,
>   "vision": false,
>   "maxInputTokens": 655360,
>   "maxOutputTokens": 393216,
>   "thinking": true,
>   "supportsReasoningEffort": ["low", "high", "max"],
>   "reasoningEffortFormat": "chat-completions"
> }
> ```

Set `url` to the full Chat Completions endpoint, not the base URL. VS Code treats
`maxInputTokens` plus `maxOutputTokens` as the context window, so set `maxInputTokens`
to the model's context window minus `maxOutputTokens`.

To add another model or tier, copy the entry under `models` and update its `id`, `name`,
and token limits using the [model catalog](https://console.cerasai.cloud/models).

**3. Start a conversation**

In the Chat view, select **New Chat** (`+`), set **Session Target** to **Local**, and choose
your CerasAI model in the model picker. Select **Agent** in the agent picker to let the model
edit files and run tools.

## Model and reasoning effort

* **Model and tier:** Use the model picker in the Chat view.
* **Reasoning effort:** In the model picker, select **>** next to your CerasAI model to open
  **Thinking Effort**, then select **low**, **high**, or **max**. VS Code remembers the level for
  each session.

## Use VS Code without a GitHub account

Chat and Agent sessions with a CerasAI model work without a GitHub sign-in or a Copilot plan.
Without a sign-in, VS Code has no model for background tasks such as chat titles and
commit messages, and it shows **Set BYOK utility models** in the Chat view. Setting utility models
is optional. To enable those tasks, open Settings and select your CerasAI model for
`chat.utilityModel` and `chat.utilitySmallModel`. VS Code recommends a fast, inexpensive model
for `chat.utilitySmallModel`. Each background task is a separate CerasAI request.

Inline suggestions (code completions) and semantic search still require a GitHub account.

## Limitations

* The **Copilot** session target and the **Agents** window don't list CerasAI models by
  default. To use them there, enable `chat.agentHost.byokModels.enabled`, which VS Code
  marks as experimental.
* On Copilot Business or Enterprise, your administrator can disable the
  **Bring Your Own Language Model Key in VS Code** policy. You then can't add CerasAI models.

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

## Resources

* [VS Code language models](https://code.visualstudio.com/docs/agent-customization/language-models)
* [VS Code agent harnesses](https://code.visualstudio.com/docs/agents/run/agent-harnesses)
* [CerasAI models](https://console.cerasai.cloud/models)


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