Cline
Autonomous AI coding agent for VS Code, JetBrains, and terminal environments.
Why consider Cline?
An open-source autonomous coding agent that operates across IDEs and terminals, featuring Plan/Act modes, native MCP support, and broad LLM provider compatibility.
Learn Cline by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide3 sections
Cline: An Autonomous Coding Agent Across IDEs and Terminals
Cline operates as a robust, open-source coding agent designed to automate complex development tasks within the terminal and popular Integrated Development Environments (IDEs). It is available as a command-line interface (CLI) tool, a VS Code extension, a JetBrains plugin, and a software development kit (SDK). By reading project files, writing code, and executing terminal commands, the agent handles end-to-end coding requirements while maintaining a human-in-the-loop approval mechanism. It utilizes a shared agent core across these environments, ensuring that features like Model Context Protocol (MCP) servers, provider configurations, and workspace checkpoints behave consistently regardless of the user's chosen interface. According to the project's GitHub repository, the goal is to provide an open-source coding agent in the IDE and terminal that can coordinate edits across an entire project structure.
Supported Interfaces and Execution Modes
The agent provides multiple interaction paradigms depending on the development workflow. Through its Visual Studio Code and JetBrains extensions, developers receive an embedded AI coding assistant that executes actions with explicit user approval. Alternatively, the CLI mode supports interactive terminal sessions as well as fully headless execution for continuous integration and continuous deployment (CI/CD) environments. Developers can invoke single-turn commands or pass file inputs into the agent for automated code reviews.
For running the CLI version, the primary installation method relies on npm. As documented in the CLI documentation, the tool is installed globally:
npm install -g clineThis installation resolves the correct platform binary (such as for macOS, Linux, or Windows on x64 and arm64 architectures) via optional dependencies, eliminating the need for a Node, Bun, or Zig runtime at install time. Once installed, developers can pipe data directly into the agent. For example, a headless operation can review Git diffs and pipe the agent's NDJSON output to downstream pipeline tools. The CLI runs in several modes, including a "Yolo" mode that skips approval prompts, a "Zen" mode that fires tasks to a background hub daemon, and a standard interactive terminal user interface built on OpenTUI.
Additionally, Cline supports a web-based task board known as Kanban. This interface allows developers to spawn multiple agents in parallel, where each Kanban card operates within its own worktree, utilizes auto-commit functionality, and handles dependency chains independently.
Model Context Protocol and Tool Integrations
A core component of the agent's architecture is its native support for the Model Context Protocol (MCP). MCP enables the connection of custom tools and specialized knowledge bases, effectively extending the agent's capabilities beyond standard codebase operations. Through the CLI, developers can manage MCP servers via an interactive wizard or command-line flags.
The agent operates with a Plan and Act mode toggle, giving developers the ability to switch between high-level task planning and actual code execution. During these phases, the agent can access custom tools provided via MCP to retrieve external context or execute specific operations. Furthermore, the system implements a checkpoint feature that allows developers to rewind the workspace state. By executing an undo command, the environment reverts to a previous state, offering a robust safeguard against unintended modifications or incorrect AI execution paths. Developers can also spawn sub-agents and organize agent teams to tackle parallel work streams.
Model Provider Configurations
Rather than locking users into a single Large Language Model (LLM) provider, the agent supports a wide ecosystem of APIs. Developers can authenticate using an interactive setup or explicit flags to configure Anthropic, OpenAI, Google Gemini, OpenRouter, AWS Bedrock, GCP Vertex, Cerebras, Groq, and other OpenAI-compatible endpoints. The CLI supports OAuth sign-in methods for platforms like the native Cline authentication, ChatGPT Subscriptions through openai-codex, and OCA.
For scheduled tasks or background operations, the agent includes cron and event-driven schedules for recurring agent work. Developers can assign specific thinking budgets per run and route the agent's status updates to chat connectors such as Telegram, Google Chat, or WhatsApp. This flexibility allows engineering teams to deploy autonomous coding agents that align with their existing infrastructure and preferred LLM ecosystems, providing a seamless bridge between local development and automated cloud workflows.
Related tools
More options with a similar category or technology profile.
marimo
A reactive Python notebook that is reproducible, git-friendly, and executable as a script.
JupyterLab
The next-generation web-based user interface for Project Jupyter computational notebooks.
Trafilatura
Python package and command-line tool designed to gather text and metadata on the Web.
ScrapeGraphAI
Python scraper library that uses LLMs and direct graph logic to extract website data.