cline
by cline
Autonomous coding agent available as an IDE extension, CLI or SDK.
- Stars
- 71,914 stars
- Forks
- 8k forks
- Last push
- today
- Activity
- Active
# Install the Cline CLI$ npm i -g cline# Run a task headlessly$ cline "Run tests and fix any failures"Commands from the project's README. Run them after installing (see below).
Overview
Understand cline in 60 seconds
- What it does
- Cline is an open-source AI coding agent that works in VS Code, JetBrains IDEs, your terminal and a desktop app. It edits files across your project, runs commands, browses the web and uses tools, asking for your approval along the way, with whichever AI model you choose.
- The problem it solves
- Coding assistants that only autocomplete can't carry out multi-step changes, and many agents lock you to one model provider. Cline plans and executes real changes across a codebase and works with Anthropic, OpenAI, Google, local models and more.
- Why choose it
- Choose it for an open-source, model-agnostic coding agent with human-in-the-loop approval and a Plan/Act workflow. You pay for whichever model provider you connect.
- Who should use it
- Developers who want an AI agent inside VS Code or JetBrains
- Teams automating code tasks in CI/CD
- Developers who want to choose their own model, including local ones
- Builders creating custom agents with the SDK
- Setup difficulty
You'll need:
- VS Code, a JetBrains IDE, Node.js for the CLI, or macOS/Windows for the desktop app
- An API key for a model provider, or a local model through Ollama or LM Studio
How cline works
Cline reads your project structure and makes coordinated changes, watching linter and compiler errors as it works. It runs terminal commands and watches their output. In Plan mode it explores and proposes a strategy; in Act mode it carries it out, with each file edit and command shown for approval.
Project rules in .clinerules files guide how it works in your codebase. It can be extended with plugins through the SDK or with MCP servers, can coordinate multi-agent teams, run scheduled agents on cron schedules, and connect to Slack, Telegram, Discord and other chat platforms.
The headless CLI fits scripts and CI: pipe in input, get JSON output. The @cline/sdk package exposes the same agent engine for building your own agents. Cline is Apache-2.0 licensed; the JetBrains plugin isn't open source.
Features
Key features
Multi-file edits
Coordinated changes across your codebase.
Runs commands
Executes and watches terminal output.
Plan and Act modes
Agree on a plan, then execute it.
Any model
Anthropic, OpenAI, Google, OpenRouter, local models and more.
MCP and plugins
Extend with tools and hooks.
Headless CLI and schedules
Automate in CI and on cron.
Strengths
- Open source and model-agnostic
- Available in VS Code, JetBrains, terminal and desktop
- Human-in-the-loop approvals
- Apache-2.0 licensed
Limitations
- Model usage is billed by your provider
- JetBrains plugin isn't open source
- Agents need careful review of changes
Practical use cases
Implement features
Plan and build a feature across files.
Fix failing tests
Run tests and fix failures headlessly.
Code review in CI
Pipe a diff to Cline for review.
Installation
Install cline
Commands come from Cline's README. AIRepoHub hasn't run them yet. Steps are as of Nov 25, 2026; projects change often, so if a command doesn't work, check the project's latest README. View source
Prerequisites
- Node.js for the CLI
- A model provider key or local model
Supported systems
- Windows
- macOS
- Linux
- 1
Install globally
Shellnpm i -g cline
- 1
Install from the VS Code Marketplace
Search for Cline in the Extensions view.
- 1
Install from the JetBrains Marketplace
Works in IntelliJ IDEA, PyCharm, WebStorm, GoLand and other JetBrains IDEs.
- 1
Download the desktop app
Native app for macOS and Windows.
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Run a headless task
Shellcline "Run tests and fix any failures"
cline's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Use Cline from the terminal and in CI
Install the CLI, run tasks headlessly and review a diff.
Before you start
- Node.js installed
- A model provider configured in Cline
- 1
Install
Shellnpm i -g cline - 2
Run a task
Shellcline "Run tests and fix any failures" - 3
Review your changes
Shellgit diff origin/main | cline "Review these changes for issues" - 4
Get JSON output for scripts
Shellcline --json "List all TODO comments"
What to expect
Cline works through each task in your repository and prints its progress, or JSON events with --json for use in scripts.
Next steps
- Add project rules in .clinerules
- Schedule recurring agents with cline schedule create
- Install the VS Code extension for interactive work
Costs and requirements
What it costs to run
- License
- Apache-2.0.Free
- Cline
- Free and open source.Free
- Model providers
- Billed by the provider you connect; local models through Ollama or LM Studio are free to run.Depends
Troubleshooting
Common setup issues
Cline doesn't follow your conventions
Add rules in .clinerules files; they're picked up automatically.
Want to review before changes
Use Plan mode first, then switch to Act mode.
Need a local model
Connect Ollama or LM Studio, or any OpenAI-compatible API.
Alternatives
Similar AI repositories
rea
morluto
Connects AI agents to reverse-engineering tools for inspecting binaries, apps and websites.
orca
stablyai
App for running and managing several AI coding agents like Claude Code and Codex on desktop, mobile or a remote machine.
claude-mem
thedotmack
Memory add-on for AI coding agents that saves what happened in past sessions and brings the useful parts back later.
paperclip
paperclipai
Open-source app for organizing and managing teams of AI agents that do work for your business.