Cline 是什么?What Is Cline?
Cline(前身叫 Claude Dev,VS Code 扩展 ID 至今仍是 saoudrizwan.claude-dev)是跑在编辑器侧边栏里的自主编程智能体:读你的代码库、创建和编辑文件、执行终端命令,还能用 Puppeteer 驱动真实浏览器——每一步关键操作都要经过你的审批。它是开源 IDE agent 路线的幸存者:2026 年 Roo Code(它的 fork)已于 5 月 15 日关停、Continue 并入 Cursor 后转为只读、Kilo Code 被 Anaconda 收购,Cline 以约 7 万 star 成为这条路线的现存主线。Cline (formerly Claude Dev — the VS Code extension ID is still saoudrizwan.claude-dev) is an autonomous coding agent living in your editor's sidebar: it reads your codebase, creates and edits files, runs terminal commands, and even drives a real browser via Puppeteer — with your approval required at each consequential step. It is the survivor of the open-source IDE-agent lineage: in 2026 Roo Code (its fork) shut down on May 15, Continue went read-only after joining Cursor, and Kilo Code was acquired by Anaconda — Cline stands as the surviving mainline with ~70k stars.
2026 年它依然在高频更新:4 周 313 次提交、每周新增约 478 star(2026-10 核实);VS Code Marketplace 安装量超 500 万(2026-09 约 529 万)。扩展版本 v4.0.10(2026-07),Cline 桌面应用与 CLI(npm i -g cline)并行迭代。背后是 Cline Bot Inc.,2025 年 7 月完成 $5M 种子轮 + $27M A 轮(估值约 $1.1 亿)。It is still shipping fast in 2026: 313 commits in four weeks and ~478 new stars per week (verified Oct 2026); over 5 million VS Code Marketplace installs (~5.29M in Sept 2026). Extension at v4.0.10 (July 2026), with the Cline desktop app and CLI (npm i -g cline) iterating in parallel. Behind it is Cline Bot Inc., which closed a $5M seed + $27M Series A in July 2025 (valued around $110M).
模型完全自由(BYOK):30+ 提供商——Anthropic、OpenAI、Google、OpenRouter、AWS Bedrock、GCP Vertex、Groq、Cerebras、DeepSeek,以及本地 Ollama / LM Studio。扩展本身免费,成本就是模型 token;另有 ClinePass($9.99/月,开源模型阵容)与 Cline Provider 按量付费,Teams $20/人/月(前 10 席免费)。价格以官网为准。Model choice is fully free (BYOK): 30+ providers — Anthropic, OpenAI, Google, OpenRouter, AWS Bedrock, GCP Vertex, Groq, Cerebras, DeepSeek — plus local Ollama / LM Studio. The extension is free; you pay only for model tokens. There is also ClinePass ($9.99/mo, open-weight model lineup) and pay-as-you-go via the Cline Provider; Teams is $20/user/mo (first 10 seats free). Confirm prices on the official site.
Cline 是开源 IDE agent 这波浪潮里最后的主线,而且是凭实力留下来的:约 7 万 star、4 周 313 次提交、背后有真正的公司。它的产品洞察是一个循环:Plan(只读出方案)→ 审批 → Act(执行)→ Checkpoints(回滚)。这种"人在回路"的纪律性,加上 BYOK 的模型自由,就是为什么已经买了多个模型订阅的开发者愿意只用它一个界面。诚实的一面:BYOK 意味着 token 账单自己扛——大仓库的全文件上下文烧得很快,重度用前沿模型一个月能烧掉数百美元(日常探索用本地/便宜模型是主流省钱姿势);而 2026 年 2 月的供应链事件是永久提醒:把 agent 工具当特权软件对待,固定来源、保持更新。
Cline is the last mainline standing of the open-source IDE-agent wave — and it earned it: ~70k stars, 313 commits in four weeks, a real company behind it. The product insight is a loop: Plan (read-only proposal) → approve → Act (execute) → Checkpoints (roll back). That human-in-the-loop discipline plus BYOK model freedom is why developers who already pay for model subscriptions keep a single interface. The honest caveats: BYOK means you meter your own token bill — full-file context on big repos burns fast (heavy frontier-model sessions can run into the hundreds of dollars a month; local/cheap models for exploration is the standard saving move); and the February 2026 supply-chain incident is a permanent reminder to treat agent tooling as privileged software — pin your sources, keep it updated.
— 中国吧 AI Tools Hub Editorial Team
谁适合使用 Cline?Who Should Use Cline?
✓ 适合以下场景Good Fit For
- 已有多个模型订阅、想一个界面全都要的开发者Developers with multiple model subscriptions who want one interface
- 预算敏感、想按量精细控制成本的团队Cost-sensitive teams that want fine-grained metered spending
- 需要开源可审计、本地模型或自托管的场景Open-source-auditable, local-model, or self-hosted needs
- 喜欢 Plan→审批→Act 这种可控节奏的人Fans of the controlled Plan → approve → Act rhythm
✕ 不适合以下场景Not Ideal For
- 不想自己管 token 账单、想要"一口价"订阅的人Anyone who doesn't want to manage a token bill and prefers flat subscriptions
- 超大仓库 + 前沿模型的高频重度任务(token 烧得快)High-frequency heavy tasks on huge repos with frontier models (fast token burn)
Cline 快速开始Getting Started with Cline
1. VS Code 扩展市场搜索 Cline 安装(扩展 ID:saoudrizwan.claude-dev);或终端运行 npm i -g cline 装 CLIInstall Cline from the VS Code Marketplace (extension ID: saoudrizwan.claude-dev); or run npm i -g cline for the CLI
2. 设置里选 API 提供商填 key(或选 Ollama 接本地模型);先用 Plan 模式让它出方案,确认无误再切 Act 执行Pick an API provider and add your key in settings (or Ollama for local models); start in Plan mode for a proposal, switch to Act once approved
3. 写 Rules 固化项目规范;大改动前确认 Checkpoints 可用,跑偏随时回滚Write Rules to lock in project conventions; confirm Checkpoints before big changes so you can roll back anytime
核心功能Key Features
-
Plan / Act 双模式Plan / Act Dual Modes — Plan 只读出方案不动文件,Act 执行;每步关键操作单独审批,可控的自主。Plan proposes read-only without touching files; Act executes. Each consequential step needs its own approval — autonomy under control.
-
文件 + 终端 + 浏览器全权限Full File, Terminal & Browser Access — 创建和编辑文件、执行终端命令,还能用 Puppeteer 驱动真实浏览器做 web 任务。Creates and edits files, runs terminal commands, and drives a real browser via Puppeteer for web tasks.
-
30+ 模型提供商 BYOK30+ Model Providers, BYOK — Anthropic / OpenAI / Google / OpenRouter / Bedrock / Vertex / DeepSeek……本地 Ollama、LM Studio 也原生支持。Anthropic / OpenAI / Google / OpenRouter / Bedrock / Vertex / DeepSeek… plus native local Ollama and LM Studio support.
-
MCP 市场 + Rules + CheckpointsMCP Marketplace + Rules + Checkpoints — 从 MCP 市场接外部工具,用 Rules 固化项目规范,Checkpoints 一键回滚跑偏的任务。Connect external tools from the MCP marketplace, lock conventions in with Rules, roll back stray runs with Checkpoints.
-
多编辑器 + CLI + 桌面应用Multi-Editor + CLI + Desktop App — VS Code、Cursor、Devin Desktop(原 Windsurf)、VSCodium、JetBrains,另有 CLI(npm i -g cline)与桌面应用。VS Code, Cursor, Devin Desktop (formerly Windsurf), VSCodium, JetBrains — plus a CLI (npm i -g cline) and a desktop app.
优缺点Pros & Cons
✓ 适合以下场景Good Fit For
- 真开源 Apache-2.0,可审计、可放心用Genuinely open source (Apache-2.0) — auditable and trustworthy
- 模型自由 BYOK:30+ 提供商 + 本地模型,一个界面全都要BYOK model freedom: 30+ providers plus local models in one interface
- Plan→审批→Act→回滚,人机回路最成熟的一家Plan → approve → Act → roll back — the most mature human-in-the-loop design
- 社区基本盘最大:约 7 万 star,2026 年 4 周仍有 300+ 提交Largest community base: ~70k stars, 300+ commits in four weeks in 2026
✕ 不适合以下场景Not Ideal For
- token 账单自己扛:大仓库全文件上下文烧得快,重度用前沿模型月账单可达数百美元You meter your own token bill: full-file context on big repos burns fast; heavy frontier-model use can reach hundreds of dollars a month
- 2026-02 "Clinejection" 供应链事件——agent 工具是特权软件,保持更新、只走官方渠道Feb 2026 "Clinejection" supply-chain incident — agent tooling is privileged software; keep it updated, use official channels only
- 扩展 ID 仍是 saoudrizwan.claude-dev(历史包袱),新手容易困惑Extension ID is still saoudrizwan.claude-dev (legacy naming) — confusing for newcomers
应用场景Use Cases
人们使用 Cline 的常见场景:Popular ways people use Cline.
🧑💻 跨文件重构Cross-File Refactoring
Plan 模式先出重构方案,确认后 Act 批量改文件,Checkpoints 兜底——大手术也敢做。Plan the refactor first, Act to apply it across files on approval, with Checkpoints as the safety net — even big surgeries feel safe.
🐞 终端联调修 bugTerminal Debugging
读报错、改代码、跑测试一条龙,关键步骤逐个审批,人始终在回路里。Reads errors, edits code, runs tests in one loop — each consequential step approved, human always in the loop.
🌐 浏览器辅助的 web 任务Browser-Assisted Web Tasks
Puppeteer 驱动真实浏览器,改完前端直接看页面效果,不用来回切浏览器。Puppeteer drives a real browser — verify frontend changes visually without switching apps.
💰 低成本模型组合Low-Cost Model Combos
日常用 DeepSeek 或本地模型做探索,硬骨头再切前沿模型实现——把 token 花在刀刃上。Explore with DeepSeek or local models daily, switch to frontier models for the hard parts — spend tokens where they matter.
相似 AI 工具Similar AI Tools
如果 Cline 不符合你的需求,可以看看这些热门 AI 工具:If Cline doesn't fit your needs, here are other popular AI tools you might consider: