AgentPantheon
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

登录以留下评测。

H

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.

W

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.

D

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.

L

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.

L

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.

问答

Which AI models and providers does Cline support?

Cline supports multiple providers including Anthropic, OpenAI, and Google Gemini, as well as local models via Ollama. You bring your own API key, so teams can choose between hosted APIs or self-hosted setups based on cost, privacy, or performance needs.

What are the main limitations or drawbacks to be aware of?

Setup is steeper than closed alternatives, and the required step-by-step approvals can slow your workflow. Token costs can add up with large project contexts, and overall output quality depends on the model provider you choose to connect.

How do Plan and Act modes work, and why use both?

Plan mode lets you discuss approach and scope with the model before any code changes occur, while Act mode executes the agreed steps such as editing files, running scripts, or debugging. The split separates thinking from doing, giving developers more control over what the agent actually changes.

提问

Programming Agents 的替代品