Cline is a free, open source ai assisted coding project written in TypeScript and released under Apache-2.0. It has 68,517 GitHub stars, 7,409 forks and 1,288 open issues, and was last pushed 3 hours ago. On this registry it ranks #6 of 24 tracked projects in AI Assisted Coding, with 5 head-to-head comparisons available. It gained 627 stars over the last 6 tracked days.

Cline — Open-source AI coding agent for your editor and terminal

What is Cline?

What it is

Cline is an open-source AI coding agent that operates across multiple interfaces: as a CLI tool, desktop application, VS Code extension, JetBrains plugin, and SDK. It lives in the developer tooling ecosystem and is built with TypeScript under the Apache-2.0 license. The project solves the problem of fragmented AI-assisted coding workflows by unifying agent capabilities—code generation, command execution, project-wide edits, and human-in-the-loop approval—into a single extensible engine that works consistently across environments.

Key capabilities

  • Executes bash commands in real time and reacts to output from long-running processes like dev servers
  • Reads and edits code across an entire project, including resolving missing imports, type mismatches, and syntax errors
  • Supports Plan mode (exploration and strategy) and Act mode (execution with approval or auto-approve)
  • Enforces project-specific rules via .clinerules files and skills for context-aware behavior
  • Integrates with multiple AI providers (Anthropic Claude, OpenAI GPT) without vendor lock-in
  • Tracks all changes with checkpoints and provides diff review in VS Code and JetBrains integrations
  • Exposes a programmatic SDK for building custom agents, multi-agent teams, scheduled automations, and connectors

Who uses it and how

  • Developers use the VS Code extension or JetBrains plugin to review and approve AI-generated edits inline during active development
  • DevOps engineers run Cline in headless CLI mode for CI/CD pipelines, executing deployments, tests, and infrastructure tasks
  • Teams define .clinerules to enforce internal coding standards and deployment procedures across all Cline interfaces
  • Researchers and builders use the SDK to create custom agent workflows, multi-agent coordination, and third-party tool integrations

Getting started

Install the CLI globally with npm i -g cline, use the desktop app for macOS or Windows, install the VS Code or JetBrains extension from their respective marketplaces, or add the SDK via npm install @cline/sdk. Documentation is hosted at https://docs.cline.bot/.

When to use it — and when not to

Cline replaces paid AI coding assistants by offering similar capabilities with model flexibility and full self-hosting potential, but requires managing your own API keys and model access. Self-hoster must provide network access to chosen AI providers and handle local storage for checkpoints and logs; SMTP is not required. It is not ideal for teams needing out-of-the-box hosted authentication, audit logging, or enterprise SSO—those features are not mentioned in the provided facts.

project readme (upstream, from github) — read inline

Cline

The open source coding agent in your IDE, terminal, and desktop.


CLI

Run Cline in your terminal. Interactive chat or fully headless for CI/CD and scripting.

npm i -g cline

Learn more

Desktop App

Cline as a native app for macOS and Windows. Run agent sessions in any folder, schedule routines, and manage models, plugins, and MCP servers.

Download for macOS and Windows

VS Code Extension

AI coding assistant in your editor. Create files, run commands, browse the web, and use tools with human-in-the-loop approval.

Install from VS Marketplace

JetBrains Plugin

The same Cline experience in IntelliJ IDEA, PyCharm, WebStorm, GoLand, and the rest of the JetBrains family.

Install from JetBrains Marketplace

SDK

Build your own AI agents and integrations powered by the same engine that runs the CLI, desktop app, VS Code extension, and JetBrains plugin. Custom tools, multi-agent teams, connectors, scheduled automations, and more.

npm install @cline/sdk

Documentation


Index

Product Description Location CHANGELOG
SDK Node.js programmatic agent API and extension exports. sdk/ CHANGELOG.md
CLI Terminal UI, headless mode, shell commands, and CLI-specific flows. apps/cli/ CHANGELOG.md
VS Code Extension The Marketplace extension and extension host integration. / (WIP migrating) CHANGELOG.md
Desktop App Native macOS and Windows app (Tauri shell, Bun sidecar, Next.js UI). apps/examples/desktop-app/ CHANGELOG.md
JetBrains Plugin JetBrains-hosted client that talks to the shared agent core. Currently we are not open-sourcing JetBrains plugins -
Docs site Public documentation pages. docs/ -

Edits Code Across Your Project

Cline reads your project structure, understands the relationships between files, and makes coordinated changes across your codebase. It monitors linter and compiler errors as it works, fixing issues like missing imports, type mismatches, and syntax errors before you even see them. In VS Code and JetBrains, every edit shows up as a diff you can review, modify, or revert. All changes are tracked with checkpoints, so you can easily undo the agent's work.

Runs Bash Commands

Cline executes commands directly in your terminal and watches the output in real time. Install packages, run build scripts, execute tests, deploy applications, manage databases. For long-running processes like dev servers, Cline continues working in the background and reacts to new output as it appears, catching compile errors, test failures, and server crashes as they happen.

Plan and Act

Toggle between Plan mode and Act mode. In Plan mode, Cline explores your codebase, asks clarifying questions, and lays out a strategy. Once you're aligned, switch to Act mode and Cline executes the plan. Every file edit and terminal command requires your approval, so you stay in control of what actually changes. Or toggle auto-approve and let Cline run autonomously.

Rules and Skills

Define project-specific rules in .clinerules files that guide how Cline works in your codebase: coding standards, architecture conventions, deployment procedures, testing requirements. Rules are picked up automatically by the CLI, VS Code extension, and JetBrains plugin. Use skills to let the model load specific rules when needed.

Works With Every Model

Cline is not locked to a single AI provider. Use whichever model fits your workflow:

Provider Models
Anthropic Claude Opus, Sonnet, Haiku
OpenAI GPT series models
Google Gemini series models
OpenRouter 200+ models from any provider
Vercel AI Gateway Route to many providers through one gateway
AWS Bedrock Claude, Llama, and more
Azure / GCP Vertex All hosted models
Cerebras / Groq Fast inference models
Ollama / LM Studio Run local models on your machine
Any OpenAI-compatible API Self-hosted or third-party endpoints

Extend With Plugins or MCP Servers

Extend Cline's capabilities with plugins. Using the SDK, register tools and lifecycle hooks programmatically through the plugin system for logging, auditing, policy enforcement, or adding domain-specific capabilities. Simple plugin example below.

import { Agent, createTool } from "@cline/sdk"

const deployTool = createTool({
  name: "deploy",
  description: "Deploy the current branch to staging.",
  inputSchema: { type: "object", properties: { env: { type: "string" } }, required: ["env"] },
  execute: async (input) => {
    // your deployment logic
  },
})

const agent = new Agent({ tools: [deployTool], /* ... */ })

...or use MCP servers to connect to databases, query APIs, manage cloud infrastructure, and interact with external systems. Use community-built servers or ask Cline to create custom tools on the fly. In the CLI, manage servers with cline mcp.

Multi-Agent Teams

Coordinate multiple agents working together on complex tasks. A coordinator agent breaks the work into subtasks and delegates to specialist agents, each with their own tools and context. Team state persists across sessions so you can pick up where you left off.

cline --team-name auth-sprint "Plan and implement user authentication with tests"

Scheduled Agents

Run agents on cron schedules for recurring automations. Daily PR summaries, weekly dependency checks, codebase health reports. Schedules persist across restarts and run independently of any terminal session.

cline schedule create "PR summary" \
  --cron "0 9 * * MON-FRI" \
  --prompt "List all open PRs and their review status" \
  --workspace /path/to/repo

Connect to Slack, Telegram, Discord, and More

Chat with your agent from any messaging platform: Telegram, Slack, Discord, Google Chat, WhatsApp, and Linear. Each conversation thread maps to an agent session with full context. Set up access control to restrict who can interact with your agent.

# Connect to Telegram
cline connect telegram -k $BOT_TOKEN
# Connect to Slack through webhook
cline connect slack --bot-token $SLACK_TOKEN --signing-secret $SECRET --base-url $URL
# Connect to Slack using socket mode
cline connect slack --bot-token $SLACK_TOKEN --app-token $SLACK_APP_TOKEN

Headless CLI for CI/CD

Run Cline with zero interaction for scripting and automation. Pipe input, get JSON output, chain commands, integrate into CI/CD pipelines.

cline "Run tests and fix any failures"
git diff origin/main | cline "Review these changes for issues"
cline --json "List all TODO comments" | jq -r 'select(.type == "agent_event" and .event.text) | .event.text'

Contributing

Start with the [Contri

readme truncated — read the full docs on github

Frequently asked questions

Is Cline free to use?

Cline is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does Cline do?

Open-source AI coding agent for your editor and terminal

What is Cline written in?

Cline is primarily written in TypeScript. Its source is publicly available at https://github.com/cline/cline, and it has 68,517 GitHub stars.