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

# How to configure an OpenAI-compatible API in Cline

> Understand Cline OpenAI Compatible provider, Base URL, API Key, Model ID, and common setup mistakes.

## Short answer

To use an OpenAI-compatible API in Cline, select the **OpenAI Compatible** provider, then fill in Base URL, API Key, and Model ID.

Base URL is the provider API endpoint. API Key is the authentication credential. Model ID is the model name or identifier recognized by the current provider.

## When this matters

* You want to use a third-party model provider in Cline
* You have an OpenAI-compatible `/v1` endpoint
* You need BYOK or custom models
* You see Invalid API Key, Model Not Found, or connection failures
* You want Cline and other external tools to share one model routing layer

## Field meanings

| Field               | Meaning                                                            |
| ------------------- | ------------------------------------------------------------------ |
| API Provider        | Choose `OpenAI Compatible`                                         |
| Base URL            | OpenAI-compatible endpoint from the provider                       |
| API Key             | Secret key generated by the provider                               |
| Model ID            | Model ID supported by the provider                                 |
| Model configuration | Advanced settings such as context window, output limit, and prices |

## Recommended steps

1. Select `OpenAI Compatible` in Cline settings.
2. Enter the Base URL.
3. Enter the API Key.
4. Select or enter the Model ID.
5. Verify with Cline's verification flow or a simple request.

## Common mistakes

* Mixing the official OpenAI URL with a third-party API Key.
* Putting an Anthropic-compatible URL into the OpenAI-compatible provider.
* Using a Model ID unsupported by the provider.
* Ignoring context window and output limit configuration.
* Treating Cline Rules or Memory Bank as API configuration.

## About LLMEasy

Cline can connect to LLMEasy through the OpenAI-compatible provider. Use `https://www.llmeasy.ru/v1` as Base URL, your LLMEasy key as API Key, and a model ID from the **GPT Key group**.

If you have a Claude Code Anthropic-compatible address, do not put it into Cline's OpenAI Compatible provider.

## Related docs

* [OpenAI-compatible API vs Anthropic-compatible API](/en/faq/concepts/openai-compatible-vs-anthropic-compatible)
* [How to configure a custom OpenAI API in Cursor](/en/faq/cursor/custom-openai-api)
* [MCP vs API Key and Base URL](/en/faq/concepts/mcp-vs-api-key-base-url)
* [What are model\_provider, base\_url, and wire\_api?](/en/faq/codex/model-provider-base-url-wire-api)

## References

* [Cline OpenAI Compatible provider](https://docs.cline.bot/provider-config/openai-compatible)
* [Cline authorization guide](https://docs.cline.bot/getting-started/authorizing-with-cline)
