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

# Cline

> Use Cline in VS Code with a NagaAI API key through its OpenAI Compatible provider or the Anthropic provider.

Cline's OpenAI Compatible provider accepts NagaAI's base URL. Any chat model that supports tools can drive Cline's agent. This provider sends only Chat Completions, and Cline has no Responses option for custom endpoints. The fields below follow the [Cline docs](https://docs.cline.bot/provider-config/openai-compatible).

## Before you start

You need a NagaAI [API key](https://naga.ac/dashboard/api-keys) and Cline 4.1.13 or later in VS Code. Older versions could strip tools from requests to custom OpenAI-compatible models.

## Connect Cline

**1. Choose the provider**

In the Cline settings, choose the **OpenAI Compatible** provider and fill in the fields.

| Field | Value |
| - | - |
| Base URL | `https://api.naga.ac/v1` |
| API Key | Your NagaAI API key |
| Model ID | A chat model id, such as `anthropic/claude-sonnet-5.5` or `anthropic/claude-haiku-5.5` |

**2. Describe the model**

Under **Model Configuration**, set the context window from `limits.context_window` of the model's `chat` operation in [`/v1/models`](https://docs.naga.ac/get-started/models). Turn on image support if the model accepts images, and enter prices if you want Cline to show costs.

**3. Check the connection**

Send a short task. The request appears in [Logs](https://docs.naga.ac/account/balance-and-activity.md) in your dashboard.

## Use the Anthropic provider

Cline can also use its **Anthropic** provider with the custom base URL `https://api.naga.ac`. Prompt caching doesn't work through NagaAI, so Claude models get no cache hits there.

Roo Code was shut down on May 15, 2026, and its authors point to Cline.

## Troubleshooting

### 401 invalid\_api\_key

Cline sent no key or a wrong one. Paste your NagaAI API key into the **API Key** field again. A provisioning key doesn't work there.

### The model ignores tools

You're on a Cline version older than 4.1.13, which could strip tools from custom OpenAI-compatible requests. Update Cline.


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