GuidesHow-to
Cline AI Guide: Open-Source Coding Agent in VS Code
Cline in 2026: free Apache-2.0 VS Code agent, BYOK pricing, spend limits, Plan/Act workflow, vs Claude Code, and when open source beats a $20 seat.

Brand marks are the property of their respective owners
Cline inverts how commercial coding agents are sold. There is no subscription floor for the software: the VS Code extension is open source (Apache-2.0) for individual developers, and you bring your own model key. You see what each task costs. Nothing hides the meter — and nothing caps it unless you do.
This is a practical guide: what Cline is, how BYOK really feels, how to set spend limits, how it compares to Claude Code, and when to walk away. Product-level verdict: Cline review. Head-to-head: Cline vs Claude Code. Landscape: complete AI coding guide, best free AI coding tools, coding hub.
Model menus, enterprise packaging and UI labels move. Workflow advice below is stable; re-check cline.bot and your provider console the day you deploy.
The short answer
- Install is free; intelligence is not. Budget model spend, not a seat.
- Set a provider hard limit before the first serious task. This is the whole game.
- Start cheap and small — one ticket, one package, one test command.
- Keep human approval on for file writes and shell until you trust the loop.
- Pick Cline for transparency, OSS, and model portability.
- Pick Claude Code (or Cursor) when you want a polished product and a predictable ceiling more than a visible token bill.
What Cline actually is
Cline is a coding agent embedded primarily as a VS Code extension (with CLI/enterprise surfaces evolving around that core). It is not ghost-text autocomplete. In the same category sense as Claude Code, it can:
- read across the workspace,
- propose and apply multi-file edits,
- run terminal commands with permission,
- iterate when tests fail,
- connect tools/MCP-style integrations depending on your setup.
That places it opposite GitHub Copilot complete-mode and beside Claude Code, Cursor Agent, and other task-finishers. If you only wanted Tab, start with the assistant-first shortlist instead.
The pricing inversion
| Typical SaaS agent | Cline | |
|---|---|---|
| Software | Monthly seat | $0 extension (individual OSS) |
| Models | Bundled / pooled | Your keys, list price |
| Visibility | Opaque usage bars | Provider invoice + in-tool cost signals |
| Ceiling | Plan tier | None by default |
| Lock-in | Vendor model stack | Provider-portable (in practice) |
Our review also notes optional Cline-provided inference (convenience, not magic savings) and Enterprise packaging (JetBrains, SSO, central billing) for orgs that need it. Treat enterprise quotes as custom.
BYOK in plain language
Bring your own key means:
- You create an account with Anthropic, OpenAI, Google, OpenRouter, a local OpenAI-compatible server, or another supported backend.
- You paste an API key into Cline’s configuration.
- Every agent turn bills that account.
Implications people underestimate:
- Finance sees a cloud bill, not a tidy “Cline” SaaS line — unless you use their hosted path or enterprise invoicing.
- Rate limits and model outages are your provider’s, not a single Cline SLA.
- You can route deliberately: cheap model for renames and test stubs; frontier model for gnarly bugs.
- You can shoot yourself in the foot with one unbounded Sonnet/Opus-class loop on a monorepo.
Cline’s honesty is the feature. It is also the footgun.
Spend limits: non-negotiable setup
Do this before the victory lap install tweet.
Provider console
- Set a monthly hard cap you can afford to lose as tuition (many people start at $20–50).
- Prefer project-scoped keys with low ceilings over personal keys with infinite power.
- Disable models you do not intend to use if the console allows.
Task design
| Bad first task | Better first task |
|---|---|
| “Refactor the auth system” | “Add a unit test for parseSession edge cases; run npm test” |
| “Improve performance” | “Profile the N+1 in listInvoices and patch only that query” |
| “Clean up the repo” | “Fix lint failures in src/lib/billing only” |
Agents amplify vague intent into expensive exploration. Narrow tickets are a cost control.
Model ladder
- Day one: cheapest capable model you respect for mechanical edits.
- Day two: same model on a slightly harder bug with a reproduction.
- Only then: frontier model for a problem that actually needs it.
If you cannot predict cost within an order of magnitude, you are not ready for the expensive model.
A day-one workflow that works
1. Repo hygiene
- Clean
git statusor a dedicated worktree. - Feature branch.
- No production secrets in the tree.
- A test or script the agent can run.
2. Install and auth
Install from the official VS Code marketplace path documented on cline.bot / their docs — marketplace IDs change less often than blog copy, but still verify you have the real publisher.
Configure the key. Confirm the active model is the cheap one.
3. Plan before Act
Cline’s culture (and UI) emphasises planning and approval rather than silent autonomy. Use that:
- Read the plan.
- Reject scope creep (“also reorganise folders”) before tools run.
- Approve shell commands like you would a junior’s production access request.
4. One ticket
Describe:
- Symptom or goal,
- Files or area if known,
- Command to verify,
- Out of scope list.
5. Review like a PR
Open the diff. Check:
- tests weakened or deleted,
- drive-by formatting across unrelated packages,
- new dependencies you did not ask for,
- logging that might leak PII.
6. Record the cost
Look at what the task billed. That number is how you decide whether Cline is cheaper than Claude Code Pro for your mix — not a Twitter anecdote.
Cline vs Claude Code
Full comparison: Cline vs Claude Code. Pricing deep-dive on the paid side: Claude Code pricing.
| Dimension | Cline | Claude Code |
|---|---|---|
| Floor to try | $0 software | No free Code (~$20 Pro) |
| Bill | Variable tokens | Shared pool / Max multipliers |
| Worst month | Unbounded if uncapped | Plan you purchased |
| Models | Your choice | Anthropic-tuned stack |
| Polish | Extension-first | Productised multi-surface |
| Project memory | Conventions you maintain | First-class CLAUDE.md culture |
| Best when | Keys + visibility | Predictable seat + depth |
Pick Cline if open source, portability, or per-task cost visibility is the requirement — and you will operate the meter like an adult.
Pick Claude Code if you want the strongest polished agent path we review and you accept Anthropic’s paid floor and shared usage with chat. Workflow: how to use Claude Code.
Pick both only with discipline: Cline for cheap mechanical chores on a small model; Claude Code for hard reasoning weeks — without double-paying for the same habit.
Cline vs Cursor and Copilot
| Need | Better default |
|---|---|
| Unlimited Tab, stay in IDE | GitHub Copilot |
| Tab + Agent one editor | Cursor |
| Free Tab forever | Devin Desktop free |
| OSS agent + visible tokens | Cline |
| Max polish agent, paid | Claude Code |
Cline loses pure assistant battles. It wins honest agent metering. See best AI coding assistants for the assistant-first frame.
Open-source ecosystem notes (including Roo)
Cline sits in a busy OSS agent neighbourhood:
- Cline — maintained mainstream BYOK extension line we review.
- Roo Code — historically a Cline-derived fork emphasising modes and autonomy; public repo archived May 2026 as the team pivoted (community forks and a separate hosted direction exist). Details and caution: Roo Code guide.
- Other agents (terminal-first tools, editor forks) appear and archive quickly.
If a blog post from 2025 ranks “Cline vs Roo” as two equal live defaults, check repository status before you standardise. Archived extensions can still run from old installs; that is not the same as a living security and model-adapter surface.
When Cline is the right tool
- You already have provider accounts and keys.
- You want proof of what agenting costs before buying Max seats.
- Policy prefers software you can audit (Apache-2.0) on the client.
- You need to swap model vendors without abandoning the agent UX.
- Light-to-moderate agent use where BYOK undercuts $20–100 SaaS — after caps.
When Cline is the wrong tool
- You have never opened a cloud console and do not want to.
- You need a fixed invoice for finance every month.
- You want the most hand-holding product experience available.
- Your org forbids arbitrary outbound model providers without a vendor review — BYOK can mean more vendors, not fewer.
- You will not review diffs. Uncapped autonomy plus no review is how outages ship.
Team adoption pattern that does not explode
- Pilot: two developers, $50 key caps, one service repo.
- Standard: written allowlist of models; shared “how we ticket for agents.”
- Measure: median task cost, revert rate, time-to-merge for agent PRs.
- Decide: stay on Cline, move heavy users to Claude Code/Cursor seats, or split by job type.
- Enterprise path: only if you need the admin features Cline sells on top — do not buy enterprise to avoid learning spend caps.
Compare team seat math elsewhere with coding hub guidance: Copilot Business, Cursor Teams, and Devin Desktop team fees are different shapes than BYOK.
Safety habits (same as any agent)
From the agents guide applied to Cline:
- Prefer reversible actions; never unattended production deploys.
- Narrow credentials; separate keys per environment.
- Log what ran.
- Short chains beat long autonomous dreams.
- MCP/tool connectors need the same consent discipline as shell — see What is MCP?.
Cost scenarios (illustrative shapes)
Light user
- 3–5 small tasks/week on a mid-tier model.
- Often below a $20 SaaS seat — if scoped tightly.
Medium daily driver
- Multiple agent sessions/day, mixed models.
- Commonly lands in the tens of dollars — overlapping Claude Pro territory.
- Value is visibility, not always savings.
Frontier monorepo cowboy
- Vague prompts, largest context, no caps.
- Can exceed Max-class SaaS spend in a bad week.
- This user should not use Cline without controls — or at all.
Troubleshooting the usual failures
“It is dumb.” Missing project conventions and vague tickets. Write a short
root doc (Cline will use context you provide; Claude’s CLAUDE.md culture is
still a good idea even when the filename differs).
“It is expensive.” Wrong model, wrong scope, or retry loops without tests. Add a verify command; shrink the ticket.
“It broke the branch.” Missing git discipline. Always branch; never improvise
on main.
“Finance is angry.” You used a personal unlimited key. Move to capped project keys and monthly reviews.
“We wanted autocomplete.” Install Copilot or use Devin/Cursor Tab. Cline is the wrong category.
Related reading
- Cline review
- Cline vs Claude Code
- Claude Code pricing · How to use Claude Code
- Best free AI coding tools
- Best AI coding assistants
- Complete AI coding guide · Best AI coding tools
- Roo Code guide — fork history and archive status
- Complete AI agents guide
Example tickets that teach cost without drama
Use these as your first three runs. They are boring on purpose.
Ticket A — mechanical
In
src/lib/dates.ts, add tests for timezone-safe formatting of UTC midnight. Do not change production code unless a test proves a bug. Runnpm test -- dates.
Expected: small diff, cheap model sufficient, cost should feel like cents-to-dollars depending on provider — not a dinner bill.
Ticket B — local bug
createInvoicedouble-charges when the client retries with the same idempotency key. Reproduce with a test, fix only the handler and store layer, run the invoice test file.
Expected: multi-file but bounded. If the agent rewrites the entire billing package, your prompt or approvals failed.
Ticket C — deliberate frontier
Only after A and B: investigate flaky race in worker pool under load. Propose a plan first; wait for approval; then implement the smallest safe fix with a regression test.
Expected: expensive model may help. You should already know your burn rate from A and B so the cost is a choice.
Provider routing heuristics
| Work | Model bias | Why |
|---|---|---|
| Rename, stubs, test scaffolds | Cheap / fast | Volume work; quality ceiling is your review |
| Single-file clear bug | Mid | Balance |
| Cross-cutting race, subtle auth | Frontier | Worth the tokens if ticket is sharp |
| “Improve everything” | None | Refuse; rewrite the ticket |
Cline’s advantage is that this table can map to different vendors over time. Claude Code’s advantage is not needing the table because the product is opinionated.
Comparing a Cline month to a Claude Pro month
Do not compare stickers. Compare outcomes per dollar.
Track for four weeks:
- agent sessions started,
- sessions merged without heavy rewrite,
- sessions abandoned,
- provider spend (Cline) or plan tier pain (Claude),
- review minutes.
If Cline saves money but doubles review time, it may still lose. If Claude Pro feels calm and your company values invoice simplicity, the “more expensive” seat can be cheaper in management overhead.
For the seat-side deep dive, keep Claude Code pricing open beside this guide.
Bottom line
Cline is the most honest coding agent bill in our catalogue: free software, visible tokens, uncapped unless you cap it. That is a superpower for operators who already think in API consoles. It is a liability for anyone who wanted a $20 all-you-can-eat feeling without reading a meter.
Install it free. Cap the key. Run one boring ticket. Read the diff and the cost. Then decide whether transparency is worth more than Claude’s polished ceiling — not the other way around.