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

# Cline

> Add Opper as an OpenAI Compatible provider in Cline

[Cline](https://cline.bot) is an open-source AI coding agent for VS Code (Apache-2.0, [source](https://github.com/cline/cline)). It plans, edits across files, and runs commands, with an approval step before each action.

## Setup

<Steps>
  <Step title="Open the Cline settings panel">
    Click the gear icon in the Cline sidebar.
  </Step>

  <Step title="Select the provider">
    Choose **OpenAI Compatible** as the API Provider.
  </Step>

  <Step title="Set the base URL and key">
    | Field        | Value                            |
    | ------------ | -------------------------------- |
    | **Base URL** | `https://api.opper.ai/v3/compat` |
    | **API Key**  | Your Opper API key               |
  </Step>

  <Step title="Set the model ID">
    Enter any model ID from the [catalog](/capabilities/models) — for example `anthropic/claude-sonnet-4-6`.
  </Step>
</Steps>

## Choosing a model

Cline is an agent, so the model needs tool calling. Pick a model the [catalog](/capabilities/models) marks with the `tools` capability.

Cline tracks input, output, and cache tokens per task in its own UI. The same calls appear in [Opper traces](/control-plane/trace) with cost attached.

## Troubleshooting

<AccordionGroup>
  <Accordion title="401 Unauthorized">
    Check the key is an Opper key (they start with `op-`) and that you selected **OpenAI Compatible**, not **OpenAI**.
  </Accordion>

  <Accordion title="404 Model Not Found">
    Copy the model ID exactly from the [catalog](/capabilities/models), including the provider prefix.
  </Accordion>

  <Accordion title="Cline loops on tool calls">
    The model likely doesn't support tool calling well. Switch to a model the catalog marks with the `tools` capability.
  </Accordion>
</AccordionGroup>

## Related

<CardGroup cols={2}>
  <Card title="Kilo Code" icon="https://mintcdn.com/opper/H-iiE_tAhHpUz1kK/images/tools/kilocode.png?fit=max&auto=format&n=H-iiE_tAhHpUz1kK&q=85&s=84074b865f4068daff5bb810eb5f4e3b" href="/integrations/editors/kilo-code" width="600" height="600" data-path="images/tools/kilocode.png">
    Same setup, different VS Code agent.
  </Card>

  <Card title="All integrations" icon="plug" href="/integrations/overview">
    Every app that runs on Opper.
  </Card>
</CardGroup>
