Skip to content

Cline

JavaScript

一个开源的 VS Code AI 编程 agent,可自主编辑多个文件、运行终端命令和浏览网页。

Official Site
01

概述

Cline 是一个开源的 AI 编程 agent,以 VS Code 扩展形式运行。与专注于内联代码补全的 GitHub Copilot 不同,Cline 作为自主 agent 运行,可以编辑项目中的多个文件、运行终端命令、浏览网页并调用外部工具。与 Cursor 或 Windsurf 等分叉的独立 IDE 不同,Cline 插入你现有的 VS Code 环境,因此你保留自己的扩展、主题和快捷键。它支持多种 LLM 提供商——包括 Anthropic Claude、OpenAI、OpenRouter、AWS Bedrock、Google Vertex,以及通过 Ollama 或 LM Studio 运行的本地模型——因此你不会被锁定在单一供应商。

bash
async function getData(id){
  try{
    const r=await fetch(apiUrl);
    return await r.json();
  }catch(e){ throw new Error("Failed",{cause:e}); }
}
// Parallel: await Promise.all(items.map(async i=>process(i)));
02

安装

Cline 从 Visual Studio Code Marketplace 安装。在 VS Code 中打开扩展面板,搜索"Cline",安装官方扩展。安装后,你需要一个受支持提供商(Anthropic、OpenAI、OpenRouter 等)的 API key。推荐安装 Node.js,因为许多 MCP 服务器和浏览器工具以 npm 包形式分发。

Ready to try Cline?

Visit the official site for the latest version and full documentation.

Visit Cline