How to install and set up Cline (VS Code, JetBrains and CLI)
Checked against the official docs:
[Cline](/plugins/cline/) is an open-source coding agent that works inside your editor (VS Code, Cursor, JetBrains and others), in your terminal, or as a desktop app. It reads your project, edits files and runs commands. In the editor it asks before each change unless you turn on auto-approve. This guide covers installing it, choosing a model, using Plan and Act modes, undoing changes with checkpoints, auto-approve, rules, MCP servers and the most common problems. It was checked against Cline's docs on 27 November 2026, when the current CLI release on npm was 3.0.76.
Get new guides by email
New MCP servers and agent tools, checked by hand. Free, unsubscribe anytime.
Paid prompt and rules packs are on the packs page.
Quick answer
- In VS Code or Cursor, press Ctrl/Cmd+Shift+X, search for Cline and click Install. In a JetBrains IDE, go to Settings → Plugins → Marketplace, install Cline and restart.
- Open the Cline panel, click the gear icon, pick an API Provider, sign in or paste your key, and choose a model.
- Open a project folder, describe your task in Plan mode, then switch to Act and approve each change.
- For the terminal:
npm install -g cline, thencline auth, thencline.
Free: MCP Starter Checklist
One page: Inspector smoke-test, Claude Code + Cursor connect steps, and the stdout gotcha. Join the list and download it free.
What you need
- An editor: VS Code, Cursor, Windsurf, VSCodium, Antigravity, or a JetBrains IDE such as IntelliJ IDEA, PyCharm or WebStorm. Or, for the CLI, Node.js 20 or newer (22 recommended).
- A model provider. Cline's own provider (sign in, pay as you go with Cline credits), ClinePass ($9.99 a month for a set of open coding models), your own API key from a provider such as Anthropic, OpenAI, Google Gemini or OpenRouter, or a local model through Ollama or LM Studio.
- For local models, enough hardware, especially GPU memory.
1. Install Cline
VS Code, Cursor, Windsurf, VSCodium or Antigravity
- Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac) to open Extensions.
- Search for Cline.
- Click Install on the Cline extension.
- Find Cline in the sidebar (the small robot icon).
Windsurf and VSCodium install it from Open VSX, but the steps are the same. If you can't find the icon, open the Command Palette and run Cline: Open In New Tab.
JetBrains IDEs
- Go to Settings → Plugins → Marketplace.
- Search for Cline, click Install and restart the IDE.
- Open it from View → Tool Windows → Cline.
You can also install it from the JetBrains Marketplace page.
Terminal (Cline CLI)
npm install -g cline
cline auth
clinecline auth runs the same provider setup as the editor. cline on its own opens an interactive session, and cline "your task" starts a task right away (see the auto-approve warning below first).
Desktop app
Cline Desktop is a separate app for open-weight models, with parallel sessions and scheduled tasks. Download it from cline.bot/desktop. It's available for macOS and, in beta, Windows.
2. Choose a provider and model
- Click the gear icon in the Cline panel.
- Pick a provider from the API Provider dropdown.
- Sign in or add your key. For Cline, click Sign In. For ClinePass, select it, click Sign In and subscribe if asked. For your own provider, paste the key into API Key. For Ollama or LM Studio, no key is needed, but make sure the app is running.
- Choose a model from the Model dropdown.
3. Run your first task
Open a folder first (File → Open Folder in VS Code, File → Open in JetBrains). Cline needs a folder to work in and won't know where to put files without one. Then type your task in the box at the bottom of the Cline panel.
Look at the toggle at the bottom of the panel. It says Plan or Act:
- Plan: Cline reads your code, searches and talks through the approach, but can't change files or run commands. Use it to agree on a plan.
- Act: Cline makes the changes. It keeps everything you discussed in Plan mode, so you don't have to repeat yourself.
In Act mode, Cline shows each proposed file change or command with Approve and Reject buttons, and waits for you. You can set different models for Plan and Act in settings (Use different models for Plan and Act). For big jobs, the /deep-planning command runs a longer planning session that asks clarifying questions first.
4. Undo changes with checkpoints
Checkpoints are on by default. After every file edit or command, Cline saves a snapshot in a separate hidden Git repository, so your own Git history isn't touched. Next to each step in the chat, click Compare to see the diff or Restore to go back:
- Restore Files puts your files back but keeps the conversation.
- Restore Task Only deletes the later messages but leaves your files alone.
- Restore Files & Task resets both.
On very large repositories, checkpoints can use a lot of disk space and slow Cline down. You can turn them off under Feature Settings → Enable Checkpoints.
5. Auto-approve, carefully
If you keep approving the same safe actions, Auto Approve lets you allow them by category: reading project files, editing project files, running "safe" commands, running all commands, using the browser and using MCP tools. Options that reach outside your project only work when the matching base option is on.
In the CLI, a task you pass on the command line (cline "your task") runs with auto-approve on by default, so Cline can change files and run commands without asking. Add --auto-approve false to approve each step, or -p to start in Plan mode. In the interactive terminal view, Tab switches Plan/Act and Shift+Tab turns auto-approve-all on or off. Use a clean Git branch for unattended runs.
6. Add rules
Rules tell Cline about your project's standards. Put Markdown files in .clinerules/ (or .cline/rules/) at your project root and commit them to share with your team. Cline also reads AGENTS.md. Personal rules for every project go in Documents\Cline\Rules on Windows or ~/Documents/Cline/Rules on macOS and Linux.
7. Add an MCP server
In the editor: click the MCP Servers icon at the top of the Cline panel. For a hosted server, use the Remote Servers tab: enter a name and URL, choose Streamable HTTP and click Add Server. For a local server, open the Configure tab and click Configure MCP Servers to edit the JSON.
In the CLI: run cline mcp for a menu, or add a server in one line:
cline mcp add files --yes -- npx -y @modelcontextprotocol/server-filesystem .In the JSON, set "type": "streamableHttp" on remote servers. Without a type, Cline falls back to the older SSE transport:
{
"mcpServers": {
"remote-server": {
"type": "streamableHttp",
"url": "https://example.com/mcp",
"disabled": false,
"autoApprove": []
}
}
}The CLI keeps this file at ~/.cline/data/settings/cline_mcp_settings.json. For more on how MCP servers work in VS Code-based editors, see how to add an MCP server to VS Code.
Update the Cline CLI
cline updateIt checks for a new version and installs it. cline version shows the version you have.
Common problems and fixes
"Unauthorized: Please sign in"
Your session expired. Click Sign In again. If it keeps happening, check that nothing is clearing your editor's stored secrets, then sign out and back in.
The sign-in browser window doesn't open
Check your default browser setting, or copy the sign-in link from the Cline output panel and open it yourself.
Cline doesn't create any files
Make sure a folder is open in the editor, and that the toggle says Act, not Plan.
It can't connect from behind a company proxy
The VS Code extension uses VS Code's own proxy settings. The CLI uses the standard https_proxy and http_proxy environment variables, for example export https_proxy=http://proxy.company.com:8080 before running cline. If the proxy uses its own certificate, set NODE_EXTRA_CA_CERTS to the certificate file.
The CLI misbehaves or hangs
Run cline doctor to diagnose configuration problems. cline doctor fix stops all running Cline processes, and cline doctor log opens the CLI log file.
FAQ
Is Cline free?
Cline is open source under the Apache-2.0 license. You pay for the models you use: Cline credits, ClinePass, or your own provider's rates. Local models through Ollama or LM Studio have no per-request cost.
Does Cline work in PyCharm and other JetBrains IDEs?
Yes. The JetBrains plugin works in IntelliJ-based IDEs, including IntelliJ IDEA, PyCharm, WebStorm, GoLand, PhpStorm, Rider and Android Studio.
Can I use my Claude or ChatGPT subscription?
Cline's provider list includes Claude Code for Claude Pro or Max subscribers, and OpenAI (Codex) with OpenAI Codex sign-in, as well as plain API keys.
Sources
Commands and config above come from these official docs. Tools change often, so check them for the latest steps.
- Cline docs: Installing Cline (IDE, JetBrains, CLI, desktop)
- Cline docs: Authorization (providers, troubleshooting)
- Cline docs: IDE walkthrough (open a folder, Plan/Act toggle, approvals)
- Cline docs: Plan & Act mode
- Cline docs: Checkpoints
- Cline docs: Auto Approve & YOLO mode
- Cline docs: CLI overview and CLI reference (auto-approve default, doctor, update)
- Cline docs: TUI (Tab and Shift+Tab)
- Cline docs: Rules
- Cline docs: MCP
- Cline docs: Networking and proxies
- Cline on the JetBrains Marketplace (compatible IDEs)
- cline/cline on GitHub (Apache-2.0)
PluginStack is independent and not affiliated with or endorsed by the companies mentioned. Spotted something out of date? Email pluginstackai@gmail.com.
Related guides
Tools in this guide
- Editor Extensions · Cline
Cline
Open-source coding agent for VS Code (also JetBrains, a CLI and a desktop app). It edits files across your project, runs terminal commands and uses a browser, with Plan/Act modes and approval for every change unless you turn on auto-approve.
- Coding Agents · Anthropic
Claude Code
Anthropic's agentic coding tool. It reads your codebase, edits files, runs commands, works with git and connects to MCP servers. It runs in the terminal, with VS Code/JetBrains extensions, a desktop app and a web version too.
- Coding Agents · OpenAI
Codex CLI
OpenAI's open-source coding agent that runs locally in your terminal. It reads and edits your code, runs commands and connects to MCP servers. Codex also comes as an IDE extension (VS Code, Cursor, Windsurf), a desktop app and a cloud version. Apache-2.0.
- Coding Agents · Anomaly
OpenCode
An open-source AI coding agent with a terminal UI, a desktop app for macOS, Windows and Linux, and a web interface. It works with many LLM providers, and OpenCode also sells its own model access (OpenCode Console and the OpenCode Go plan). It ships a build agent that makes changes and a plan agent that plans without editing your project files. The current version is OpenCode 2. The code is on GitHub at anomalyco/opencode. MIT licensed.
Get new guides by email
New MCP servers and agent tools, checked by hand. Free, unsubscribe anytime.
Paid prompt and rules packs are on the packs page.