Cline pricing: the extension is free, you pay for the model

Key takeaways
- The Cline extension is free for individual developers. You pay for the model you connect it to.
- With your own API key, you pay the company that issued the key, directly.
- Cline resends its context at every step, so most of the cost is input tokens.
- Choose "OpenAI Compatible" and enter a FastMetal key to reach models from many labs with one key.
Search for Cline pricing and you find two stories: "it's free" and "the bill was bigger than I expected". Both are true. The extension costs nothing, and the model behind it bills for every token you use. This post covers how that works, how to keep it down and how to set up a FastMetal key, based on Cline's own pages as of October 2026. Plan prices change often, so they are linked, not quoted.
What Cline costs: a free extension, paid model usage
Cline is an open-source coding agent that runs as a VS Code extension or from the CLI. According to Cline's pricing page, individual developers use it for free and pay only for AI inference. Organizations that need SSO or central billing can get an Enterprise plan, priced on request.
Where the API key comes from
The key you give Cline comes from a model provider or an AI gateway, separate from your Cline account. This is bring your own key (BYOK): model usage is billed per million tokens, by the company that issued the key. Cline also sells model access itself, as prepaid credits and as ClinePass, a monthly plan for open-weight models (as of October 2026).
Most of a Cline bill is input tokens
API billing sets one rate per million input tokens and another per million output tokens. Cline calls the model at every step (reading a file, rewriting code, running a command) and each time sends the system prompt, the tool definitions, the files it has read and the conversation so far. A task that makes 30 calls with an average context of 50,000 tokens comes to 1.5 million input tokens. Output is mostly code diffs, so it usually stays in the tens of thousands.
What makes the bill grow
- Keeping one task going for a long time
- Pulling large files into the context
- Letting auto-approve run for hours
- Letting a top-tier model think at length (most models bill thinking as output)
The task view shows the token counts and how much of the context window is in use, which tells you where the tokens are going.
Four ways to cut Cline costs
Choose the model for the job
Cline lets you set different models for Plan mode and Act mode ("Use different models for Plan and Act" in settings). A common setup is a top-tier model for planning and a lighter one for implementation and routine fixes once the approach is settled. Which model does your everyday work is the biggest single factor in your monthly bill.
Keep the context short
When you reach a natural break, /newtask starts a fresh task with the progress carried over. To keep going in the same task, /smol (also /compact) summarizes the conversation. Load only the files the task needs.
Use prompt caching
On models with caching, the parts sent unchanged every time are billed at a lower rate. The cache expires, so a long pause loses the benefit. We have confirmed that prompt caching works for Claude models through FastMetal (October 2026, on the Anthropic-compatible API).
Cap each key
On FastMetal, the balance you top up is your spending ceiling, and each API key can have its own daily or weekly cap. A separate key for Cline keeps its budget apart from everything else. You get an email when the balance runs low and when it runs out.
Use Cline with a FastMetal API key
FastMetal is an AI gateway: models from many labs behind one API key and an OpenAI-compatible API.
Enter the base URL, the key and a model ID
- Open Cline's settings (the gear icon) and choose "OpenAI Compatible" as the API Provider.
- Set Base URL to
https://api.fastmetal.ai/v1. Include the/v1; Claude Code is the one that takes the bare host. - Paste your FastMetal key (it starts with
sk-) into API Key. Getting started with the API shows how to create one. - Enter the ID of the model you want in Model ID.
Roo Code is set up the same way.
How model IDs are written
Anthropic models start with anthropic-, as in anthropic-claude-sonnet-5. Other models use the plain model name, dots included, as in deepseek-v4.1-flash. You could plan with Claude Sonnet 5 and implement with DeepSeek V4.1 Flash, for example. This returns the full list of IDs:
curl https://api.fastmetal.ai/v1/models -H "Authorization: Bearer $FASTMETAL_API_KEY"
What you pay through FastMetal
- Usage is billed per million tokens and taken from your prepaid balance. Compare the rates on the pricing page.
- No monthly fee. Top up by card with a $5 minimum.
- When the balance is used up, requests are refused.
- Each model page shows its data policy: whether prompts are used for training and whether they are kept.
Pricing for other coding agents
Claude Code pricing and Codex pricing work through the same questions. To run GLM or DeepSeek inside Claude Code, see Use Claude Code with an API key. The same key works in Cline.
FAQ
Is Cline free?
The extension is free for individual developers; you pay only for model usage. Local models cost nothing to call, and FastMetal's free models are $0 per token.
Is the setup different for Cline and Roo Code?
No. In both, choose "OpenAI Compatible" and enter the base URL, the API key and the model ID.
Why does the cost Cline shows differ from what I was billed?
With OpenAI Compatible, the cost Cline displays is an estimate from the per-token prices you typed into Model Configuration. Your actual spend is on your FastMetal usage page.
Get started
Create an account and add a $5 top-up, and the same key works in Cline, Roo Code and the other agents.
Create an account | See pricing