Cline
VS Code extension agent — ~4M installs in 2026. Plan/Act mode, autonomous file edits with diff approval, terminal access. The leading open-source IDE agent.
Overview
What it is and how it works
Cline is an open-source autonomous coding agent distributed as a VS Code extension (with a fork-derived sibling, Roo Code, sharing much of the same lineage). Unlike inline completion tools such as GitHub Copilot, Cline operates as a full agentic loop: it reads a task description from the user, forms a plan, and then executes multi-step actions against the actual project — reading files, writing diffs, running terminal commands, and inspecting the results — in a repeated observe-act cycle until the task is done or it hits a wall it needs help with. The core interaction model is its Plan/Act split. In Plan mode, Cline reasons about the problem, asks clarifying questions, and proposes an approach without touching the filesystem. Switching to Act mode lets it actually execute: create or modify files, run shell commands, and iterate based on compiler errors, test failures, or linter output it observes directly. This separation matters in practice because it gives the operator a checkpoint before an LLM starts making changes across a codebase.
Architecturally, Cline is a thin orchestration layer over whatever LLM you point it at — it is bring-your-own-API-key by design, with no bundled model and no subscription. It talks to hosted APIs (Anthropic, OpenAI, Gemini, OpenRouter, Bedrock, Vertex, etc.) or to local inference servers exposing an OpenAI-compatible endpoint (Ollama, LM Studio, vLLM, and similar). Every file edit is presented as a diff the user must approve (or pre-approve via auto-approval settings), and every terminal command runs inside a monitored shell session whose output feeds back into the agent's context. Cline also implements the Model Context Protocol (MCP) client-side, and notably can generate new MCP servers on the fly when a task calls for a capability it doesn't already have — asking the user for permission before installing dependencies or exposing new tools. This "write its own tools" behavior is one of the more distinctive things about the project relative to earlier-generation coding assistants.
Because Cline is not a model itself, its behavior is entirely downstream of the model backing it: with a frontier reasoning model it can hold long, coherent multi-file refactors together; with a smaller local model the same architecture will loop, hallucinate file contents, or misuse tools far more often. This is the single most important fact to internalize before adopting it.
Deployment patterns
The dominant deployment is solo-developer, laptop-local: install the VS Code extension, supply an API key (commonly Anthropic or OpenRouter, sometimes routed through Bedrock/Vertex for enterprise billing), and work task-by-task inside a normal project checkout. Cost tracking is visible per-request in the UI since the user is paying the API bill directly, which pushes many operators toward cheaper models for boilerplate work and reserving frontier models for architecture-level tasks.
A second common pattern is pairing Cline with a fully local backend — Ollama or LM Studio serving an open-weights coding model over an OpenAI-compatible endpoint — for privacy-sensitive codebases or to avoid API spend entirely. This works, but operators should expect materially worse autonomous performance than with hosted frontier models; local models in the 7B-32B range struggle with the long tool-use chains Cline's agent loop depends on, so this configuration is better suited to smaller, well-scoped tasks than to fire-and-forget multi-file refactors.
In team settings, Cline is typically standardized via a shared .clinerules (or similar convention file) checked into the repo, which encodes project conventions, forbidden patterns, and workflow expectations the agent should follow, plus a shared MCP server configuration for internal tools (ticket trackers, internal APIs, deployment scripts). Enterprises frequently route the API layer through Bedrock or Vertex AI to keep data inside an existing cloud compliance boundary rather than hitting a vendor API directly.
How it compares
Cline's closest peer is Cursor's agent mode and Windsurf (Codeium) — both are more polished, ship as full IDE forks rather than an extension, and bundle their own model routing and pricing rather than being strictly BYO-key. Cline trades that integration polish for openness: it's free and open source, works inside stock VS Code rather than requiring a fork, and lets you point it at literally any compatible backend, local or cloud. Against Aider, the terminal-first agentic coding tool, Cline is more approachable for developers who live in an IDE and want visual diff review and a GUI chat pane, whereas Aider is leaner, more scriptable, and often preferred by people who want tight git-commit-per-change discipline from a CLI workflow. Against GitHub Copilot's agent mode (built into VS Code natively), Cline is more transparent about tool calls and file diffs and supports a far wider range of model backends, but lacks Copilot's first-party platform integration and enterprise support contract.
Best use cases and honest limitations
Cline is a strong fit for developers who want an agentic coding assistant without committing to a specific vendor's model or subscription, and who are comfortable reviewing diffs before they land — its approval-gated Act mode is a real safety net, not a formality. The MCP support makes it genuinely extensible for teams wiring in internal tooling. Its scale of adoption (millions of VS Code installs) means community-maintained .clinerules patterns, prompts, and MCP servers are easy to find.
The honest limitations are real. Token usage is heavy — the agent loop re-reads file context and tool output repeatedly across a task, and long autonomous sessions on a large codebase can burn through API budget fast; cost-conscious users need to actively manage model choice and task scoping. Output quality scales directly with the backing model, so results with budget or local models will disappoint anyone expecting Cursor-tier autonomy. It's not the right choice for teams wanting a single-vendor supported product with predictable flat pricing, and it's not a good fit for anyone unwilling to babysit diff approvals on a codebase where a bad autonomous edit is costly.
What changed recently (July 2026)
- v4.0.0: major SDK rewrite plus a Skills/Plugins/MCP marketplace. The new provider and model-catalog system changes how you point Cline at local OpenAI-compatible endpoints (Ollama, LM Studio, llama.cpp server) — expect to reconfigure providers after upgrading. (release notes)
Setup guidance
Install as a VS Code extension: open VS Code, go to Extensions (Ctrl+Shift+X), search "Cline", install. Or install via CLI: code --install-extension saoudrizwan.claude-dev. Cline is a VS Code and Cursor extension that provides an AI coding agent with file editing, terminal execution, and browser automation capabilities. After install, configure an API provider in Cline's settings (gear icon in the Cline sidebar). Supported: Anthropic, OpenAI, Google Gemini, OpenRouter, and local models via Ollama or OpenAI-compatible endpoints. For Anthropic: enter your API key and select Claude Sonnet or Opus. For local models via Ollama: set API provider to "Ollama" (no API key needed) and select a model. Open the Cline sidebar (Ctrl+Shift+P → "Cline: Focus on Cline View"), type a task like "Create a React login form with validation", and Cline autonomously creates files, runs commands, and iterates. Verify it works by asking "What files are in this project?" — Cline runs ls in the integrated terminal and reports results. Time-to-first-action: ~15 seconds per request including model latency.
Workload fit
Best for: VS Code/Cursor users who want autonomous multi-step AI coding (create project, implement feature, run tests, debug, iterate), developers who prefer an IDE-integrated agent over a separate terminal tool, tasks requiring terminal command execution as part of the development workflow, browser-based debugging and inspection (Cline can navigate and interact with web pages), workflows where the AI needs to observe command output and course-correct. Not suited for: developers who prefer terminal-native tools (use Claude Code or Aider), JetBrains IDE users (Cline is VS Code-only), lightweight inline completions without agent overhead (use GitHub Copilot or Continue), projects requiring WSL2 or remote SSH without the VS Code Remote extension setup.
Alternatives
Use Cline when you want an autonomous AI coding agent inside VS Code with full terminal access, file editing, and browser automation — it can spin up dev servers, run tests, and debug iteratively without constant manual prompts. Switch to Claude Code when you prefer terminal-native agentic coding outside an IDE. Use Aider for git-native pair programming with explicit diffs — Cline is more autonomous, Aider is more collaborative. Use Continue for inline completions and IDE-integrated chat that stays closer to the cursor — Cline is agentic, Continue is assistive. Use Cursor for an AI-native IDE experience where everything is built-in rather than an extension. Cline's strength: agentic autonomy with permission gates — it asks before terminal commands, file operations, or API calls, giving you control over its agency. Best for developers who want AI to execute multi-step tasks unsupervised.
Troubleshooting + when to switch
Problem: "Cline is waiting for you to approve this action" on every single file edit. Fix: In Cline settings, toggle "Auto-approve read-only operations" and "Auto-approve file changes." By default, Cline gate-checks every operation — useful for safety, tedious for fast iteration. The permission model is configurable per operation type (read, write, terminal, browser). Problem: Terminal commands fail with "command not found" or wrong toolchain. Fix: Cline inherits the VS Code integrated terminal environment, which may differ from your system shell. Ensure your shell config (.zshrc, .bashrc) is sourced by VS Code's terminal. Use Cline's "Terminal Settings" to explicitly set the shell path. Problem: Context window fills up, Cline loses track of earlier edits. Fix: Cline maintains conversation context in the VS Code workspace state. On long sessions, use "Start New Task" (or Cmd+Shift+P → "Cline: New Task") to reset context. Long-running autonomous tasks sometimes benefit from checkpoint restarts.
Stack & relationships
How Cline relates to other entries in the catalog — recommended pairings, alternatives, dependencies, and edges to avoid. Each edge carries a one-line operator note from our editorial team.
Alternatives
- Alternative toRoo Code (sunsetting May 15, 2026)
Roo Code shut down May 15, 2026. Cline is the canonical migration target for users coming off Roo.
- Competes withContinue
Both are VS Code-native agents. Continue is the older, broader project; Cline is more focused on autonomous task execution.
- Alternative toContinue
Both are VS Code-native. Continue is broader (chat + autocomplete + commands); Cline is focused on autonomous task execution. Pick Continue for everyday IDE help; Cline for autonomous tasks.
Lifecycle
- Succeeded byRoo Code (sunsetting May 15, 2026)
Roo Code shut down. Users migrate to Cline (or to roomote.dev, the founders' next project).
Pros
- ~4M VS Code installs
- Plan/Act dual mode
- BYO LLM
- Strong MCP
Cons
- Token usage can be heavy
- Quality scales with model
Compatibility
| Operating systems | macOS Linux Windows |
| GPU backends | n/a (uses cloud or local API) |
| License | Open source · free (BYO API key) |
Runtime health
Operator-grade signals on how actively Cline is being maintained, how fresh its measurements are, and what failure classes operators have flagged. Every label below is anchored to a real date or count — we never infer maintainer activity we can't show.
Release cadence
Derived from the most recent editorial signal on this row.
25 days since last refresh · source: lastUpdated
Benchmark freshness
How recent the editorial measurements on this runtime are.
No editorial benchmarks for this runtime yet.
Community reproduction
Submissions that match an editorial measurement on similar hardware.
No community reproductions on file yet.
Ecosystem stability
Editorial rating from RunLocalAI — qualitative, not measured.
Get Cline
Frequently asked
Is Cline free?
What operating systems does Cline support?
Does Cline need a GPU?
Reviewed by RunLocalAI Editorial. See our editorial policy for how we evaluate tools.
Related — keep moving
Verify Cline runs on your specific hardware before committing money.