Cline vs Claude Code: models, billing, Plan/Act, headless
Cline vs Claude Code as of November 2026: where each runs, models and billing, Plan/Act vs plan mode, auto-approve, rules files, MCP and headless use.
Cline is an open-source (Apache 2.0) coding agent, best known as a VS Code extension, that also runs in JetBrains, Cursor, Windsurf, a desktop app and a terminal CLI (cline). It is model-neutral: you bring a key for Anthropic, OpenAI, Gemini, OpenRouter, a local model and more, buy credits or ClinePass ($9.99 a month) from Cline, or sign in with an OpenAI plan; its docs also offer your Claude Pro or Max plan through your installed Claude Code, a route Anthropic’s terms speak to (below). Claude Code is Anthropic’s own agent, terminal-first with VS Code and JetBrains extensions, proprietary, Claude models only, included from Claude Pro at $20 a month or billed per token on an API key. Pick Cline for any model and to review every diff in the editor; pick Claude Code for Claude on a flat plan. As of November 28, 2026: Cline 4.1.28 (extension), CLI 3.0.76.
At a glance
From each maker’s own docs and listings, read on November 28, 2026:
| Cline | Claude Code | |
|---|---|---|
Home ground | Editor extension (6.07 million VS Code installs), plus CLI, desktop app, SDK | Terminal CLI, plus VS Code and JetBrains extensions, desktop app, web |
Licence | Apache 2.0 (JetBrains plugin not open source) | Proprietary: “All rights reserved” |
Models | Any: Anthropic, OpenAI, Gemini, OpenRouter, Bedrock, Vertex, Groq, Ollama, LM Studio, any OpenAI-compatible API | Claude only, from Anthropic or a cloud provider |
Paying for it | The agent is free; you pay your provider, Cline credits, ClinePass, or use a ChatGPT or Claude plan | Claude Pro ($20), Max ($100), Ultra ($200), Team, or an API key |
Planning | Plan and Act modes, each with its own model if you like | Plan mode, one of six permission modes |
Project instructions | .clinerules/, AGENTS.md, .cursorrules, .windsurfrules | CLAUDE.md, or AGENTS.md in its place |
Headless default | cline "prompt" approves everything unless told not to | claude -p denies anything that needs approval unless allowed |
What each is, and where it runs
Cline’s README calls it “the open source coding agent in your IDE, terminal, & desktop”. Its best-known form is the VS Code extension, where it shows each edit as a diff and keeps checkpoints you can roll back to. Its install page lists VS Code, Cursor, JetBrains, Windsurf, VSCodium and Antigravity, with Windsurf and VSCodium installing from Open VSX. The CLI is a separate npm package, cline, on Node.js 20 or later (22 recommended), and a desktop app is out for macOS, with Windows in beta.
Claude Code goes the other way round. Anthropic’s overview calls the terminal program “the full-featured CLI”, and the VS Code extension, the JetBrains plugin (which needs the CLI installed separately), the desktop app and claude.ai/code are other surfaces onto the same engine. Both tools can therefore live in the same editor: Claude Code in VS Code covers Anthropic’s extension, including turning other AI extensions such as Cline off for a test when its icon does not appear.
npm install -g cline # Cline CLI, Node.js 20+
curl -fsSL https://claude.ai/install.sh | bash # Claude Code, macOS, Linux, WSLCopiedModels and billing
Cline itself costs nothing; the model is the bill. You have four ways to pay for it:
- Your own key for any provider in its list, local models through Ollama or LM Studio included.
- The Cline provider: sign in with Google, GitHub or email and spend prepaid credits, pay as you go, with some models tagged free. Its page does not state per-token prices or whether they match the provider’s.
- ClinePass, $9.99 a month, a flat subscription to fifteen open coding models from DeepSeek, GLM, Kimi, MiniMax, Qwen and others, with 5-hour, weekly and monthly limits (ClinePass). No Claude or GPT models are in it.
- A subscription you already pay for: the “OpenAI Codex” provider signs in with your OpenAI account (“Available models depend on your OpenAI plan”), and the Anthropic page offers “Claude Code” as a provider.
On the Claude route, here is what each maker says. Cline’s Anthropic page says to “Use your Claude Max/Pro subscription through the Claude CLI”: you install and sign in to Claude Code yourself, point Cline at the claude binary, and it “Uses your Claude subscription limits instead of API token billing.” Cline warns that responses “may not stream token-by-token” and that image uploads and prompt caching are limited. Anthropic’s legal page says subscription sign-in is “designed to support ordinary use of Claude Code and other native Anthropic applications”, that it does not permit third-party developers to “route requests through Free, Pro, Max, or Ultra plan credentials on behalf of their users”, and that this does not prevent “an end user from signing in to the unmodified Claude Code binary with their own Claude subscription.” Anthropic’s help article on logging in calls API key authentication “the preferred way” to use third-party software, and prohibits third-party tools that “attempt to route third-party traffic against subscription limits.” Neither page names Cline, and the legal page sends questions about a particular use to Anthropic sales; which side of these lines the route falls on is Anthropic’s call. How other agents handle the same thing is in using a Claude subscription in Hermes, Pi and OpenCode.
Claude Code runs Claude and nothing else. It comes with Claude Pro at $20 a month ($17 billed yearly), Max at $100 and Ultra at $200, and Team seats at $25 or $125 ($20 or $100 billed yearly), per claude.com/pricing; the free plan does not include it. Or it bills per token on an Anthropic Console key, or through Bedrock and the other cloud providers. The trade comes down to this: on Claude Code, Claude usage up to the plan’s limits is in the price; on Cline with a key, every request is paid at the provider’s rate, and any model can be the one you pay for. How much Claude Code costs works through both routes.
Plan and Act vs plan mode
Cline splits every task into two modes. In Plan, its docs say, “Cline can read your codebase, run searches, and discuss strategy, but cannot modify any files or execute commands”; Act carries the plan out. A setting lets each mode use its own model, so a stronger model can plan and a cheaper one write the code. In the CLI, cline -p "..." (or --plan) starts in Plan. The same letter means something else in Claude Code, where claude -p is print mode, a one-shot non-interactive run.
Claude Code’s plan mode is one of its permission modes: Claude “reads files, runs shell commands to explore, and writes a plan, but does not edit your source”, and edits stay blocked until you approve the plan. You reach it with Shift+Tab or claude --permission-mode plan. Claude Code plan mode covers its approval options. Note the difference: Cline’s Plan runs no commands at all, while Claude Code’s may run commands to explore.
Approvals and auto-approve
In the editor, per its README, “Every file edit and terminal command requires your approval” until you open that up. Its auto-approve settings open that up one category at a time: reading or editing project files, reading or editing any file, safe commands or all commands, the browser, MCP servers. YOLO Mode, under Settings, Features, approves everything, including the switch from Plan to Act; Cline’s own words are “This is dangerous.”
Claude Code has six modes, from default (only reads and actions that need no approval run without asking) through acceptEdits, plan and auto (“Everything, with background safety checks”) to dontAsk for locked-down scripts and bypassPermissions, which Anthropic marks “Isolated containers and VMs only”. Rules in settings allow or deny single tools and commands. Running Claude Code and Codex without permission prompts sets out the safer ways to cut the prompts.
Running it on a server, headless
Both have a terminal mode that a script, cron job or CI runner can call. The defaults point in opposite directions, and on a server that matters most.
Cline’s CLI reference says of a prompt passed on the command line:
Your prompt. Runs in yolo mode by default; pass --auto-approve false (or --act/--plan) to opt out.CopiedSo cline "run tests and fix failures" edits files and runs commands without asking. Give it a prompt only in a repository and on a machine you can afford to have changed, or add --auto-approve false. It goes headless on its own when stdin is piped, output is redirected or --json is set, and keeps its settings in ~/.cline/ (CLINE_DIR moves it). Set a provider key once with cline auth, which is interactive by default. To set it without the key landing in your shell history, read it into a variable first (it still shows in the process list for the moment cline auth runs, so avoid this on a machine other users share):
read -rsp 'Anthropic API key: ' ANTHROPIC_API_KEY; echo
cline auth -p anthropic -k "$ANTHROPIC_API_KEY" -m claude-sonnet-5-5
unset ANTHROPIC_API_KEY
git diff | cline --plan "review these changes" # Plan: no edits, no commands
cline --plan --json "summarize this changelog" | jq -r 'select(.type == "run_result") | .text'CopiedCline’s CLI also schedules agents on cron and, with cline connect telegram, takes tasks from Telegram, Slack, Discord and other chat apps.
Claude Code’s claude -p is the reverse. Its headless docs say that from v2.1.302 a -p run starts in Manual mode when nothing sets a permission mode, and a call that needs approval “is denied unless something approves it”. You grant tools by name; listing Bash, as Anthropic’s own example does, lets it run any shell command without asking:
claude -p "Run the test suite and fix any failures" --allowedTools "Bash,Read,Edit"
claude -p "Summarize this project" --output-format jsonCopiedSigning Claude Code in on a server with no browser, and keeping a session alive after you disconnect, are covered in Claude Code on a VPS, and unattended runs in Claude Code headless on a schedule. Cline’s docs do not say how cline auth signs in to a Cline account on a machine without a browser; a provider key avoids the question.
Rules files: .clinerules, CLAUDE.md and AGENTS.md
Cline reads project rules from .clinerules/ or .cline/rules/ in the repository, and global rules from ~/Documents/Cline/Rules (also ~/.cline/rules). A rule with a paths list in its frontmatter applies only to matching files. Its rules page says it also reads AGENTS.md, a global ~/.agents/AGENTS.md, and Cursor’s and Windsurf’s rule files; it does not mention CLAUDE.md.
Claude Code reads CLAUDE.md, and Anthropic says that if a repository “already has an AGENTS.md for other coding agents, Claude Code can read that in place of a CLAUDE.md.” The CLAUDE.md guide covers where the files go and how to import one into the other. For a repository both agents work in, the common ground is AGENTS.md.
MCP
Both connect to MCP servers over stdio and Streamable HTTP. Cline keeps them in ~/.cline/data/settings/cline_mcp_settings.json, edited from the MCP Servers panel in the editor or with cline mcp in the terminal, and still accepts legacy SSE servers. Claude Code adds them with claude mcp add, into ~/.claude.json for you or a .mcp.json that a team commits with the project (Claude Code MCP servers).
cline mcp add files --yes -- npx -y @modelcontextprotocol/server-filesystem .
claude mcp add --transport http notion https://mcp.notion.com/mcpCopiedKilo Code and Roo Code
Roo Code, which its README says originated from Cline, has ended: “The Roo Code Extension was shut down on May 15th.” The repository sends users to ZooCode, a fork started by the Roo Code community, and to Cline.
Kilo Code is MIT-licensed and runs in VS Code, JetBrains, a CLI (npm install -g @kilocode/cli, command kilo) and in the cloud from the web. Its README says “Kilo CLI is a fork of OpenCode”, offers more than 500 models, and says you “pay the model provider’s rate with zero markup.” Against Claude Code it is the same choice as Cline: any model, paid by the token, against Claude on a plan. OpenCode alternatives sets the open-source agents side by side.
Which to pick
- You want to watch and approve each diff in your editor: Cline, whose README says every edit shows up as a diff you can review, modify or revert.
- You want Claude on a predictable bill: Claude Code on a Claude plan. Cline with an Anthropic key pays per token.
- You want to switch models, run local ones, or spend little: Cline with your own key, a local model, or ClinePass at $9.99.
- You need an open-source licence: Cline (Apache 2.0); Claude Code is proprietary.
- You work mostly in a terminal or on a server: either has a CLI. Claude Code is terminal-first and its headless runs refuse by default; Cline’s CLI approves by default when given a prompt.
They also sit side by side: Claude Code’s extension and Cline can both be installed in VS Code, with shared instructions in AGENTS.md. For other agents set against Claude Code, see Claude Code alternatives and Claude Code vs Cursor.