CLI Tools2026年4月7日·1 分钟阅读

Cline — VS Code Autonomous AI Coding Extension

Autonomous AI coding agent that lives in VS Code. Cline creates files, runs commands, uses MCP servers, and handles multi-step tasks with Claude or GPT models.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 17/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
Mcp Config
安装
Stage only
信任
信任等级:Community
入口
Cline — Autonomous AI Coding Agent for VS Code
安全暂存命令
npx -y tokrepo@latest install 321aee3b-2292-49c2-968b-310d459bdaa0 --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
Open-source VS Code extension for autonomous AI coding with Claude, GPT, Gemini, Ollama, and custom APIs.
§01

What it is

Cline is an open-source AI coding agent that runs inside VS Code as an extension. It can read and write files, execute terminal commands, browse the web, and make multi-file changes autonomously. Cline supports multiple LLM providers including Claude, GPT, Gemini, and local models via Ollama or any OpenAI-compatible endpoint.

This tool targets developers who want AI-assisted coding within their existing VS Code workflow. Unlike cloud-based agents, Cline runs locally and gives you full visibility and approval control over every action the agent takes.

§02

How it saves time or tokens

Cline reduces context-switching by keeping the AI agent inside your editor. You describe a task in natural language, and Cline plans and executes the changes across multiple files without leaving VS Code. The approval flow lets you review each action before execution, avoiding costly mistakes. Local model support eliminates API costs entirely for teams running Ollama.

§03

How to use

  1. Install the Cline extension from the VS Code marketplace
  2. Configure your preferred LLM provider (API key or local endpoint)
  3. Open the Cline panel, describe your task, and approve the agent's proposed actions
§04

Example

# Install from VS Code marketplace
# Search: 'Cline' by saoudrizwan
# Or via CLI:
code --install-extension saoudrizwan.claude-dev

# Configure in VS Code settings:
# Cline > API Provider: anthropic
# Cline > API Key: sk-ant-...

# Open Cline panel (Cmd+Shift+P > 'Cline: Open')
# Type: 'Add input validation to the user registration form'
# Review and approve each file change
§05

Related on TokRepo

§06

Common pitfalls

  • Cline's autonomous actions consume tokens quickly; set budget limits in the extension settings to avoid surprises
  • Local models via Ollama work but produce lower quality results than Claude or GPT for complex tasks
  • The approval flow adds friction; use auto-approve selectively for low-risk actions like reading files

常见问题

Is Cline free to use?+

The Cline extension is free and open-source. You pay only for the LLM provider you configure. Using Ollama or other local models makes Cline completely free. Cloud APIs like Claude or GPT charge per token.

How does Cline compare to Cursor?+

Cline is a VS Code extension with explicit approval for each action. Cursor is a standalone editor with tighter AI integration. Cline offers more provider flexibility and is free; Cursor charges a monthly fee but provides a smoother UX.

Can Cline execute terminal commands?+

Yes. Cline can run terminal commands as part of its workflow. Each command requires your approval before execution, so you maintain control over what runs on your system.

Does Cline support multi-file editing?+

Yes. Cline can read, create, edit, and delete files across your project. It presents a diff view for each change, letting you approve or reject modifications before they are applied.

What LLM providers does Cline support?+

Cline supports Anthropic Claude, OpenAI GPT, Google Gemini, AWS Bedrock, Ollama, LM Studio, and any OpenAI-compatible API endpoint. You can switch providers in the extension settings.

引用来源 (3)
🙏

来源与感谢

cline/cline — 30k+ stars, Apache 2.0

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产