Ad space · Your tool here
PluginStack
Tutorial

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.

The newsletter hasn't started sending yet. Join the list now and we'll email you when the first issue goes out. From PluginStack (pluginstackai@gmail.com). Privacy policy.

Paid prompt and rules packs are on the packs page.

Quick answer

  1. 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.
  2. Open the Cline panel, click the gear icon, pick an API Provider, sign in or paste your key, and choose a model.
  3. Open a project folder, describe your task in Plan mode, then switch to Act and approve each change.
  4. For the terminal: npm install -g cline, then cline auth, then cline.

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.

Markdown download + occasional PluginStack updates. No spam. Privacy policy.

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

  1. Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac) to open Extensions.
  2. Search for Cline.
  3. Click Install on the Cline extension.
  4. 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

  1. Go to Settings → Plugins → Marketplace.
  2. Search for Cline, click Install and restart the IDE.
  3. Open it from View → Tool Windows → Cline.

You can also install it from the JetBrains Marketplace page.

Terminal (Cline CLI)

bash
npm install -g cline
cline auth
cline

cline 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

  1. Click the gear icon in the Cline panel.
  2. Pick a provider from the API Provider dropdown.
  3. 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.
  4. 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:

bash
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:

json
{
  "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

bash
cline update

It 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.

PluginStack is independent and not affiliated with or endorsed by the companies mentioned. Spotted something out of date? Email pluginstackai@gmail.com.

Get new guides by email

New MCP servers and agent tools, checked by hand. Free, unsubscribe anytime.

The newsletter hasn't started sending yet. Join the list now and we'll email you when the first issue goes out. From PluginStack (pluginstackai@gmail.com). Privacy policy.

Paid prompt and rules packs are on the packs page.