OlympHill
Cline logo

Cline适用于 VS Code 的开源 AI 编码代理,具备计划/执行模式和终端控制

4.8 (5)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年5月

概览

Cline 是一款开源 AI 编码助理,以 VS Code 扩展的形式运行,作为编辑器内部的自主代理。它能够读取并编辑项目中的文件,执行终端命令,并在保持开发者参与的前提下通过明确的批准步骤迭代任务。 它的双模式工作流将思考与执行分离:计划模式让你在进行任何更改前先与模型讨论方案和范围,而执行模式则执行商定的步骤,如编写代码、运行脚本或调试输出。Cline 支持多种模型提供商,包括 Anthropic、OpenAI、Google 以及通过 Ollama 的本地选项,帮助团队在托管 API 与自建部署之间自由选择。 由于源码公开,Cline 适合那些希望了解 AI 代理如何与代码库交互、并且想自行提供 API Key、审计每一次操作的开发者。

主要功能

  • VS Code 扩展集成
  • 计划与执行双模式工作流
  • 终端命令执行
  • 跨项目的多文件读取与编辑
  • 支持 Anthropic、OpenAI、Gemini 以及本地模型
  • 逐步操作批准

价格

模型
Free
评分
4.8 / 5 (5)

使用场景

在动手编码前规划重构

使用计划模式与模型讨论重构方案,审查范围和受影响文件,然后切换到执行模式,在逐步批准下执行更改。

在编辑器内运行和调试脚本

让 Cline 在 VS Code 中直接执行终端命令运行测试或脚本,读取输出,并在多个文件中迭代修复,无需离开编辑器。

为私有代码库使用本地模型

将 Cline 连接到 Ollama,在本地模型上运行自主编码代理,保持专有代码在本地设备,而不是发送到托管的 API。

跨文件特性实现

分配特性任务,让 Cline 跨项目读取并编辑,逐文件提出更改并通过明确的批准门保持开发者掌控。

优点 & 缺点

优点

  • 开源且透明
  • 计划/执行拆分提升控制力
  • 兼容众多模型提供商
  • 执行终端命令并编辑文件
  • 自带 API Key

缺点

  • 需要用户批准,可能减慢工作流
  • 在大上下文下代币费用可能累计
  • 质量取决于所选模型
  • 相较于闭源方案,设置更为复杂

对决战绩

在万神殿中参与了 1 对决。

0
第1
1
第2
0
第3

Last battle

评测

4.8

5 个评分的平均值。

5
4
4
1
3
0
2
0
1
0

登录以留下评测。

HT

Hiroshi Tanaka

May 17, 2026

Compared a few options

Evaluated this against two competitors. Where it wins: terminal command execution and bring your own API key. Where it lags: quality depends on chosen model. On balance the feature set — especially step-by-step action approval — justifies the 5 stars for our use case.

WC

Wei Chen

Feb 3, 2026

Solid for our team

We rolled this out across the team last quarter and works with many model providers. Multi-file read and edit across projects fits neatly into how we already work, and vS Code extension integration removed a step we used to do by hand. Quality depends on chosen model, which is the main caveat, but it has held up under daily use.

Daniel Schmidt

Daniel Schmidt

Feb 1, 2026

Use it every day

Honestly didn't expect to like it this much. Support for Anthropic, OpenAI, Gemini, and local models is exactly what I needed, and works with many model providers. but I reach for it almost every day now and it just clicks.

Liam O’Connor

Liam O’Connor

Nov 9, 2025

Does the job

Pretty happy overall. VS Code extension integration just works and works with many model providers. but no dealbreakers — I'd recommend it to a friend without hesitating.

Leila Hassan

Leila Hassan

Jul 3, 2025

Years in this space

I've evaluated a lot of these over the years. What stands out here is plan and Act dual-mode workflow — handled better than most — and executes terminal commands and edits files. Worth the time if this is your use case.

问答

Cline的主要限制或劣势是什么?

Setup比封闭性替代品要陡峭一些,并且需要逐步批准的步骤可以减慢您的工作流程。Token成本在大规模项目背景下可以叠加,总体输出质量取决于您选择的模型提供商。

Asked by Priya Nair · Jul 24, 2025

Plan 和 Act 模式如何工作?为什么要用双方模式?

Plan 模式让您能够与模型讨论方法和范围在任何代码变更之前,Act 模式执行协议中的步骤,如编辑文件、运行脚本或调试。拆分让开发人员更好地控制真正改变的代理。

Asked by Leila Hassan · May 27, 2025

Cline 支持哪些 AI 模型和提供商?

Cline 支持 Anthropic、OpenAI、Google Gemini 等多个提供商,以及通过 Ollama 方式使用本地模型。您带入您的 API 密钥,因此团队可以在成本、隐私或性能需求下根据自己的需求选择主机 API 还是自主主机设置。

Asked by Devin Walker · May 17, 2025

提问

网统游注得 的替代品