Cline
Open-source autonomous coding agent for VS Code that plans, edits files, and runs commands with diff approval, using any model you bring or a local runtime.
Cline is an open-source autonomous coding agent that runs as a VS Code extension, with a JetBrains plugin and terminal CLI as well. Describe a goal and it plans, edits files, and runs commands, showing every change as a diff you approve before it executes. Bring your own model: Anthropic, OpenAI, OpenRouter, Google, Bedrock, or local runtimes like Ollama.
Cline is an open-source autonomous coding agent that runs as a Visual Studio Code extension. Rather than living in a separate application, it adds a chat-driven agent to the editor you already use, where it can read your codebase, write and edit files, and execute terminal commands to complete multi-step tasks.
It is aimed at developers who want agentic coding inside VS Code while keeping control over which model they use. Cline is provider-agnostic: you supply your own API key (Anthropic, OpenAI, OpenRouter, Google, AWS Bedrock, and others) or point it at a local model, so cost and data handling stay in your hands.
Highlights
- Agentic task loop — describe a goal and Cline plans, edits files, and runs commands to reach it, step by step.
- Human-in-the-loop approvals — every file change and command can be reviewed and approved before it executes.
- Bring your own model — works with many API providers and local runtimes (Ollama, LM Studio) via your own keys.
- MCP support — connect Model Context Protocol servers to extend the agent with custom tools and data sources.
- Diff-based edits — changes are shown as diffs in the editor so you can inspect them before accepting.
- Beyond VS Code — also available as a JetBrains plugin and a terminal CLI for headless/scripted runs.
In an AI-assisted workflow
Install it from the VS Code Marketplace and add a provider key, then open the Cline panel and state a task:
Add a /health endpoint to the Express server in src/ that returns
{ status: "ok" } and write a test for it.Cline proposes edits and commands; you approve each before it runs.
NOTE
Cline doesn't tie you to its own inference: pay your chosen provider directly for token usage, or buy model inference through Cline at cost or with the optional ClinePass subscription.
Good to know
Cline is free and open source (Apache-2.0), though its JetBrains plugin is not open-sourced. Usage costs depend on the API, local hardware, or Cline-provided inference you use.
Frequently asked questions
- What is Cline?
- Cline is an open-source autonomous coding agent that runs as a Visual Studio Code extension. It adds a chat-driven agent to your editor that reads your codebase, writes and edits files, and executes terminal commands to complete multi-step tasks — with every file change and command shown for review and approval before it runs.
- Is Cline free?
- Yes, Cline is free and open source under Apache-2.0. Model usage is separate: you supply your own API key (Anthropic, OpenAI, OpenRouter, Google, AWS Bedrock, and others), point it at a local model via Ollama or LM Studio, or buy inference through Cline itself, at cost or with the optional ClinePass subscription. Costs depend on the route you choose.
- How do I install Cline?
- Install it from the VS Code Marketplace and add a provider key, then open the Cline panel and state a task. Cline proposes edits and commands, and you approve each before it executes. It's also available as a JetBrains plugin and a terminal CLI for headless or scripted runs.
Filed under
vscode · open-source
Related
- ContinueAn open-source IDE extension for building custom AI coding assistants.
- Roo CodeA discontinued open-source VS Code agent (a Cline fork); the team has since pivoted away from the IDE extension.
- AI Coding Agents in 2026: The Open-Source & CLI EditionCursor and Windsurf vs the open-source agents — OpenCode, Cline, Aider, Codex CLI, and more. Who should bring their own model, and when to stay in the terminal.
- Kilo CodeOpen-source AI coding agent for VS Code and JetBrains, begun as a Roo Code fork and rebuilt on OpenCode, with bring-your-own-key and zero model markup.
- Cline vs Kilo Code vs Roo Code (2026): Which to Use After Roo's ShutdownRoo Code shut down in May 2026. Cline vs Kilo Code compared on license, agents, checkpoints, BYOK and pricing model, plus how Roo users migrate.
- The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)The best Claude Code alternatives in 2026, sorted by why you're leaving: cost, open source, local models, an IDE, cloud agents, or OpenAI and Google.
- AiderOpen-source terminal AI pair programmer that edits files in your Git repo and auto-commits each change, working with Claude, GPT, and other models you bring.
- The Best GitHub Copilot Alternatives in 2026 (Free and Paid)The best GitHub Copilot alternatives in 2026: AI-native editors, open-source VS Code and JetBrains agents, self-hosted assistants and terminal agents.