Cline
Connect Cline (the VS Code extension) to CodaAPI with the OpenAI Compatible or Anthropic provider, and what to enter as the Base URL.
Cline is an open-source coding assistant extension for VS Code. You choose an API Provider in its own settings panel, and there are two choices for CodaAPI: OpenAI Compatible can use models from every vendor on CodaAPI, while Anthropic uses the native Claude format and only offers Claude models.
Not tested: this page follows the official Cline documentation (docs.cline.bot) and the source code of version 4.1.28 in the official repository (checked on November 30, 2026), and hasn't been tested on CodaAPI yet.
What to fill in
| Item | With OpenAI Compatible | With Anthropic |
|---|---|---|
| Provider type | API Provider: OpenAI Compatible | API Provider: Anthropic |
| Address | Base URL: https://codaapi.com/v1, including /v1 |
Check Use custom base URL and enter https://codaapi.com |
| Key | OpenAI Compatible API Key: sk-… |
Anthropic API Key: sk-… |
| Model | Model ID, for example gpt-5.4-mini |
A Claude model from the Model list, for example claude-sonnet-5-5 |
Setup
With OpenAI Compatible
- Search for "Cline" in the VS Code Extensions view, install it, and open the Cline panel in the sidebar.
- Click the settings icon (⚙️) in the panel and set API Provider to OpenAI Compatible.
- Enter
https://codaapi.com/v1in Base URL. Cline uses this address as entered and appends/chat/completions, so it must include/v1. - Enter the key you copied from API Keys in the console (open it directly) in OpenAI Compatible API Key.
- Pick a model: once the address and key are filled in, Cline requests
https://codaapi.com/v1/modelsto fetch the models this key can use and shows them in the Model ID list. If the one you want isn't there, choose Use custom model ID… and type it in. - Optional: expand Model Configuration and set Context Window Size and Max Output Tokens to match the model, and check Supports Images if it accepts images. For model IDs it doesn't know, Cline uses a set of conservative defaults.
- Send a message in Cline. A normal reply means it works. The matching request shows up in the console's Usage Logs.
With Anthropic
- In Cline's settings, set API Provider to Anthropic.
- Enter your CodaAPI key in Anthropic API Key.
- Check Use custom base URL and enter
https://codaapi.com. When the address has no path, Cline adds/v1and then appends/messages, sohttps://codaapi.com/v1works just as well. - Choose a Claude model from the Model list, for example
claude-sonnet-5-5. This list is Cline's built-in list of Anthropic models; the model you choose must be in your key's group.
Which models to use
- OpenAI Compatible can use any CodaAPI model served through the Chat Completions endpoint, including GPT models and Claude models called in the OpenAI format (see Calling Claude via the OpenAI format).
- Anthropic only offers Claude models and uses Claude's native Messages endpoint.
- The model must be in your key's group. For the models in each group, see Groups; for prices, see Model Square.
FAQ
Model ID shows only a text box, not a list
Cline didn't get a model list: when fetching fails, it shows no error and just leaves out the list. Check that Base URL is https://codaapi.com/v1 (with /v1) and that the key is valid. You can still use Cline without the list; type the model name into the text box. If the key has Model Limits set, the list only contains the models on that list.
Too many or too few /v1 in the address
The OpenAI Compatible address must include /v1; without it the request doesn't reach the endpoint. Don't enter a full address such as https://codaapi.com/v1/chat/completions either, because Cline appends the path again. For the Anthropic custom address, both https://codaapi.com and https://codaapi.com/v1 work.
It returns 404 saying the model isn't configured in your groups
The model name is misspelled, or the model isn't in your key's group. Copy the name exactly as it appears in Model Square, or edit the key and switch to a group that has the model. For each status code, see Error codes.
The cost Cline shows differs from what I'm charged
Cline estimates cost from its own per-model prices and may show 0 for models it doesn't know. What you're actually charged is in the console's Usage Logs.