Cline
Open-source autonomous coding agent running as a VS Code extension to read/write files, run commands, and use tools.
npm i -g clineAt a Glance & Reviews
Community Discussions (8)
- Why Cline doesn't index your codebase 2025-05-27 · 178 pts
- Roo or Cline? We're building a superset 2025-04-10 · 69 pts
- Cursor 最佳平替方案:VSCode 插件 Cline + 阿里大模型 Qwen-Coder-Plus 2025-02-10 · 18 pts
- I Use Cline for AI Engineering 2025-02-01 · 100 pts
About Cline
Cline is an open-source coding agent developed by Cline Bot Inc. It initially appeared as an editor extension before expanding the same agent runtime to the terminal, desktop application, cloud, and software development kit. It addresses the problem where models can only provide code snippets, leaving developers to manually shuttle edits back and forth when modifying multi-file projects, running commands, and iterating through trial and error. Open-sourced under the Apache 2.0 license with its code hosted in the official repository, developers can inspect, modify, and build it themselves. The official website positions it as an open runtime usable in editors and terminals or embeddable in proprietary products, and states that it is used by over 11 million developers, a figure sourced from the website's homepage.
Its most recognizable workflow is the separation between Plan and Act modes. In Plan mode, the agent can only read the codebase, search files, and discuss strategy, without modifying files or executing commands—making it suited for exploring unfamiliar repositories, weighing architectural trade-offs, and identifying edge cases before taking action. Act mode retains the entire conversation context from the Plan phase before beginning to edit files and run commands. The two modes can also be configured with separate models—for instance, using a model with stronger reasoning capabilities for planning and a faster model for implementation. The official documentation also provides a deep-planning command that systematically maps out affected files and dependencies and asks clarifying questions before forming a detailed implementation plan.
Multi-file editing is one of its core capabilities. It coordinates changes across multiple files while maintaining consistency in imports, types, and behavior, monitoring linter and compiler errors during edits and attempting fixes, with every step of changes presented as diffs for human review. The checkpoint mechanism accompanies editing: after every file modification or command execution, a snapshot of the project files is committed to a shadow repository separate from the project's own Git history. When restoring, users can choose to restore only the files, only the task conversation, or both together. Checkpoints are enabled by default and persist across editor sessions, though the official documentation notes that enabling checkpoints on extra-large repositories may consume considerable storage and slow down performance.
Terminal execution is another primary capability. It can run commands directly in the terminal and react to real-time output, handling dependency installation, test runs, long-running development servers, builds, and deployments within the same session without long-lived processes being interrupted when a single command finishes. Combined with auto-approve settings, users can specify by category—such as reading files, editing files, and executing commands—which actions require individual approval and which can run automatically, while the rollback capability provided by checkpoints helps keep the risks of auto-approval manageable.
In terms of model selection, it is not tied to a single vendor. Access paths listed in the official documentation include paying as you go with a single sign-in through Cline's own provider, subscribing to ClinePass, or bringing your own API keys from various providers. Supported models include cloud models such as Claude, GPT, and Gemini, local models run via Ollama, LM Studio, and Atomic Chat, as well as any OpenAI-compatible endpoint; the desktop documentation notes that over 300 models can be accessed through the Cline provider. Project rules are captured in a .clinerules file committed alongside the repository to inform the agent of the project's coding standards, architectural conventions, and deployment practices, while skills extend capabilities for specific tasks in the form of modular instruction sets.
The extension ecosystem revolves around the Model Context Protocol and plugins. It can load local or remote MCP servers to connect databases, APIs, and infrastructure tools into sessions, with an official MCP marketplace provided for discovery and installation; plugins and lifecycle hooks allow teams to inject custom tools and organizational standards without forking the core codebase. Subagents are parallel, read-only research agents, each with its own system prompt and context window, suited for exploring a codebase concurrently without crowding the main agent's context. Multi-agent teams use an orchestrator to delegate tasks to specialists equipped with distinct tools and contexts, collaborating in the command line to complete complex work.
Onboarding paths vary depending on where it is used. In editors like VS Code, Cursor, and Windsurf, users install the Cline extension from the extension marketplace; in JetBrains IDEs, they install the corresponding plugin; and it can also be integrated into ACP-compatible clients such as Zed and Neovim. Terminal users run npm i -g cline to install the CLI version, which supports both an interactive terminal interface and a headless mode for automated pipelines. The desktop application offers parallel sessions, scheduled tasks, and a marketplace, and supports running sessions on remote development machines over SSH as well as importing existing sessions from other coding agents to continue work. Developers building their own products run npm install @cline/sdk to import the SDK, and can also run npx kanban to open a Kanban-style multi-agent parallel interface where each task card corresponds to an isolated Git worktree.
Three typical workflows illustrate its usage. First, when taking over an unfamiliar repository, staying in Plan mode first lets it map out directory structures, dependencies, and key files, clarifying implementation approaches before switching to Act mode to execute—avoiding heading in the wrong direction from the start. Second, during multi-file refactoring or adding new endpoints, it modifies files sequentially according to plan, running tests and fixing errors along the way, while allowing users to revert to any checkpoint and try a different approach if dissatisfied mid-way. Third, running the CLI version headlessly in GitHub Actions or GitLab pipelines handles code reviews and root-cause analysis, or uses scheduled jobs for periodic dependency and supply-chain scans, while connectors for Slack, Discord, Telegram, and Linear allow delegating tasks and receiving results directly from chat tools.
Pricing details follow the official website and documentation. The open-source core is free for individual developers with no subscription or seat fees, leaving model inference as the actual expense: when bringing your own keys, you pay the selected vendor's standard rates, while local models incur no usage fees. Using the Cline provider works on a prepaid pay-as-you-go basis—after topping up credits in the dashboard, a single balance accesses over 100 models with inference billed at cost. ClinePass is an optional $9.99/month subscription featuring a curated set of open-weight models tested for coding scenarios, including the DeepSeek, GLM, Kimi, MiniMax, MiMo, and Qwen series, with usage metered under a three-tier cap of a 5-hour rolling window, weekly limit, and monthly limit, which the company states provides quota equivalent to two to five times standard API rates. Enterprise is custom-priced and adds single sign-on, role-based access control, team-level restrictions on available models and tools, remote centralized configuration, centralized billing, and observability via OpenTelemetry exports to Datadog, Grafana, and Splunk; the JetBrains extension is grouped under the Enterprise tier on the pricing page.
Unlike assistants that only perform code completion, Cline's distinction lies in unifying planning, execution, rollback, and orchestration into a single portable runtime: while completion tools typically only offer suggestions at the cursor, Cline continuously reads repositories, edits multiple files, runs commands, and iterates based on output around a given task. Compared with coding agents locked to a single model or editor, its models, editors, and execution environments are all interchangeable, with rules, skills, and checkpoints migrating alongside them—at the trade-off that users must choose and manage model costs and output quality themselves, and higher levels of auto-approval require pairing with checkpoints and diff reviews as safeguards.
Common questions during usage are explicitly addressed in the official documentation. Regarding whether checkpoints pollute a project's Git history, the documentation clarifies that they use a separate shadow repository, keeping the main repository history clean while also capturing untracked files in snapshots. On whether large tasks should be planned first, the documentation advises scaling by task size: small changes can go straight to Act, medium tasks should go from Plan to Act, and large multi-file tasks should use the deep-planning command. For users without cloud API keys, the documentation points to connecting local runtimes such as Ollama, running models entirely on the local machine.
Frequently Asked Questions
Is Cline free?
Partly. Cline has a free tier; higher limits or advanced features are paid. Check the official site for current plans and limits.