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

# Use LithosAI with Cline

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

Cline connects directly to LithosAI through its OpenAI Compatible provider. You do not need
a local proxy or protocol adapter.

## Before you begin

Install Cline in your editor, create a key on the
[API Keys](https://console.lithosai.cloud/keys) page, and confirm the model ID you want to use
on the [Models](https://console.lithosai.cloud/models) page.

<Steps>
  <Step title="Open the provider settings">
    Open Cline, select the gear icon, and choose **OpenAI Compatible** from **API Provider**.
  </Step>

  <Step title="Configure LithosAI">
    Enter the following values:

    | Field    | Value                           |
    | -------- | ------------------------------- |
    | Base URL | `https://api.lithosai.cloud/v1` |
    | API key  | Your LithosAI API key           |
    | Model ID | `moonshotai/Kimi-K3`            |

    Replace the model ID if you selected a different model in the LithosAI console.
  </Step>

  <Step title="Set the model limits">
    Open **Model Configuration** and copy the model's context window and maximum output
    tokens from the LithosAI console. Enable image support only when the selected model
    accepts image input.

    <Note>
      Cline cannot read these values from an OpenAI-compatible endpoint, and provider-specific
      reasoning controls are not exposed through the OpenAI Compatible provider.
    </Note>
  </Step>

  <Step title="Confirm the connection">
    Select **Verify**, then start a task in a project you want Cline to inspect.
  </Step>
</Steps>

## Verify the connection

Open a project that contains a `README.md`, then ask Cline:

```text theme={null}
Read README.md and reply with only its first Markdown heading.
```

Cline should read the local file and return its heading. This verifies both the model
response and a basic local tool call.

## Troubleshooting

| Symptom                          | Cause                                                                                                      |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| Cline cannot call tools reliably | Confirm the selected model supports tool calling and that **Computer Use** is enabled only when supported. |
| The context meter is inaccurate  | Update the context window and maximum output tokens in **Model Configuration**.                            |

Issues common to every agent are listed under [Common issues](/coding-agents#common-issues).

## Resources

* [Cline OpenAI-compatible provider](https://docs.cline.bot/provider-config/openai-compatible)
* [Install Cline](https://docs.cline.bot/getting-started/installing-cline)
* [LithosAI models](https://console.lithosai.cloud/models)
