Cline
Use FreeModel as Cline's OpenAI Compatible provider in VS Code.
Overview
Cline is an autonomous coding agent that runs as a VS Code extension. It reads files, edits them and runs commands through tool calls, and every request goes to the provider you configure. With the OpenAI Compatible provider it sends standard /v1/chat/completions requests with streaming and tools, which FreeModel supports.
Prerequisites
- VS Code (or a compatible editor) with the Cline extension installed.
- A FreeModel key from Dashboard → API Keys.
- For a free account: the 1M free tokens after a one-time Telegram verification. They work on the free models only. Claude Haiku 5.5 and GPT-6.2 Astra are on the free plan; the other Claude models and premium models need a paid plan.
Configuration
- Click the Cline icon in the activity bar, then the settings gear.
- API Provider →
OpenAI Compatible. - Base URL →
https://freemodel.in/v1. - API Key → your
fm_…key. - Model ID →
gpt-6-lunaon a free account, or any listed model on a paid plan. - Save and start a new task.
| Setting | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://freemodel.in/v1 |
| API Key | fm_… |
| Model ID | e.g. gpt-6-luna |
Model settings
The OpenAI Compatible provider has optional model settings, such as context window size, maximum output tokens and whether the model accepts images. Set them to match the model card on Models. Only turn on image support for a model that lists Vision. Where a card says the context size is not published, leave Cline's default.
Reasoning models spend part of the output budget on thinking. If answers come back empty or cut off, raise the maximum output tokens.
Plan and Act modes
Cline can use one model for planning and another for acting. Both use the same provider settings, so both model ids must be FreeModel ids. A common setup on a paid plan is a reasoning model for Plan and a cheaper model for Act; check each model's multiplier on its card.
Test the connection
Cline shows provider errors in the task panel, but a terminal test is quicker to read. Use the same key and model id:
curl https://freemodel.in/v1/chat/completions \
-H "Authorization: Bearer fm_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-luna",
"stream": true,
"messages": [{"role": "user", "content": "Reply with the word ok."}]
}'
You should see data: lines with text deltas, ending in data: [DONE]. That is the streaming format Cline reads. Then give Cline a small task, such as "list the files in this folder", to confirm tool calls work.
Which model ids to use
| Account | Suggested ids | Notes |
|---|---|---|
| Free | gpt-6-luna | Has the Tools capability. Other free models: GPT-6.2 Astra, GPT-6 Luna, Grok 4.6, Grok 4.7, Claude Haiku 5.5, GLM-5.3 Flash, Qwen 3.8 Omni Flash and DeepSeek V4.1 Flash 1017. |
| Paid | claude-sonnet-5, claude-opus-5-5 | 3× multiplier: one model token = three plan tokens. |
Cline needs the Tools capability to edit files and run commands. A model without it can answer questions but cannot act.
Agents resend the conversation and file contents on every step, so one task can use many tokens. Input and output tokens both count.
Common errors and fixes
| Status | What it means | Fix |
|---|---|---|
401 | Key missing, mistyped or revoked. | Paste the key again; make sure no space was copied with it. |
403 upgrade_required | A free account selected a paid model, often in the Plan or Act slot you did not change. | Use a free model in both slots, or buy a plan. |
404 model_not_found | The Model ID is not listed on FreeModel. | Copy the exact id from Models. Names like gpt-4o are not mapped to other models. |
402 | Tokens used up (tokens_exhausted). | Renew or upgrade. Refused requests are not charged. |
429 | Requests per minute above your plan limit. | Cline can fire many requests in a row; wait and resume, or use a larger plan. |
When you cancel a running task, Cline closes the stream. Tokens the model had already generated are billed; a request that failed before reaching the model is not.
Related pages
- Cline setup guide — blog walkthrough
- Using Coding Agents
- Streaming and Tool Calling
- Continue — another VS Code option