ScriptsApr 7, 2026·2 min read

Cline — Autonomous AI Coding Agent for VS Code

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.

AG
Agent Toolkit · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

Install from VS Code Marketplace:

  1. Open VS Code → Extensions → Search "Cline"
  2. Install and set your API key (Anthropic, OpenAI, or OpenRouter)
  3. Open Cline sidebar and start chatting

What is Cline?

Cline is an autonomous AI coding agent that runs inside VS Code. Unlike simple code completion tools, Cline can create and edit files, execute terminal commands, use MCP servers, and browse the web — all with step-by-step approval so you stay in control.

Answer-Ready: Cline is an autonomous AI coding agent for VS Code that creates files, runs terminal commands, uses MCP servers, and handles multi-step development tasks with Claude, GPT, or local models. 100k+ installs and 30k+ GitHub stars.

Best for: Developers who want an AI agent embedded in their IDE with full tool access. Works with: Claude, GPT-4o, Gemini, DeepSeek, Ollama. Setup time: Under 2 minutes.

Core Features

1. File Operations

Cline reads, creates, and edits files with diffs shown for your approval:

You: "Create a REST API with Express and add tests"
Cline: Creates src/app.js, src/routes/, tests/ — each change shown for approval

2. Terminal Integration

Runs commands directly in VS Code terminal:

You: "Install dependencies and run the tests"
Cline: npm install → npm test → reads output → fixes failures

3. MCP Server Support

Connect Cline to any MCP server for extended capabilities:

// ~/Library/Application Support/Code/User/globalStorage/cline/mcp_settings.json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"]
    }
  }
}

4. Browser Integration

Cline can launch a browser, take screenshots, and interact with web pages for testing and debugging.

5. Multi-Model Support

Provider Models
Anthropic Claude Sonnet, Opus
OpenAI GPT-4o, o1
Google Gemini 2.5 Pro
Local Ollama, LM Studio
Gateway OpenRouter, AWS Bedrock

6. Custom Instructions

Set project-specific instructions in .clinerules:

Always use TypeScript strict mode.
Follow the existing project patterns.
Run tests after every code change.

FAQ

Q: How does Cline compare to Claude Code? A: Cline is VS Code-native with a GUI sidebar. Claude Code is a terminal CLI. Cline shows visual diffs; Claude Code excels at complex multi-tool workflows. Many developers use both.

Q: Is Cline free? A: The extension is free and open-source. You pay for the LLM API calls (bring your own API key).

Q: Can it handle large projects? A: Yes, Cline indexes your workspace and selectively reads relevant files to stay within context limits.

🙏

Source & Thanks

Created by Cline Team. Licensed under Apache 2.0.

cline/cline — 30k+ stars

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets