# Claude Code vs Cline

_Claude Code is Anthropic's agent for Claude models, paid through a Claude plan. Cline is a free, Apache 2.0 agent that started in VS Code and runs any model you bring._

Claude Code and Cline are [coding agents](/learn/concepts/ai-engineering/coding-agents). Each reads your code, edits files and runs commands until a task is done. Claude Code started in the terminal and added editor extensions. Cline started as a VS Code extension and added a CLI, a desktop app and cloud agents. Facts on this page were checked against each tool's own docs, pricing page and repository as of December 4, 2026.

## Decision Table

| | Claude Code | Cline |
| --- | --- | --- |
| Price | Claude Pro at $20 per month billed monthly. The free Claude plan does not include it | Free. You pay your model provider, or $9.99 per month for ClinePass |
| Models | Claude models only | Anthropic, OpenAI, Google, Bedrock, OpenRouter, DeepSeek and 30+ other providers, plus local models |
| License | Proprietary | Apache 2.0 |
| Where it runs | Terminal first, with VS Code, JetBrains, a desktop app and the web | Editor first, in VS Code and compatible editors such as Cursor and Windsurf, plus JetBrains, a CLI, a desktop app and cloud agents |
| Default approvals | Starts in `auto` mode on v2.1.283 and later, where a classifier reviews actions | Asks before every action until you turn on Auto Approve |
| Undo | Your own git history | Checkpoints in a shadow git repository after each tool use |

## At a Glance

| | Claude Code | Cline |
| --- | --- | --- |
| Pricing | Pro $20 monthly or $17 billed annually, Max $100, Ultra $200 per month. Team and Enterprise seats, or pay per token through the Console | Free open source extension. Pay-as-you-go Cline credits, ClinePass at $9.99 per month, or your own key. Enterprise at custom pricing |
| Models | Claude, through Anthropic, Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry | Any configured provider, OpenAI-compatible endpoints, and local models through Ollama or LM Studio |
| Permission model | Modes: `default`, `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions`, plus allow and deny rules | Plan and Act modes. Auto Approve toggles per action type, and a YOLO mode that approves everything |
| OS sandbox | Optional. Seatbelt on macOS, bubblewrap on Linux and WSL2 | None documented for local runs. Cloud agents run in a cloud sandbox |
| MCP | Yes | Yes, with an MCP Marketplace |
| Project instructions | `CLAUDE.md`, or `AGENTS.md` | `.clinerules/`, `AGENTS.md`, and existing `.cursorrules` and `.windsurfrules` files |
| Skills and extensions | Agent Skills, plugins, hooks, subagents | Skills, plugins, hooks, subagents |
| Headless and CI | `claude -p`, GitHub Actions, GitLab CI/CD | `cline --json`, piped input, `--auto-approve true`, GitHub Actions samples |

## Models and Cost

Claude Code runs Claude models only. Usage comes out of your Claude plan's limits or your API bill. Anthropic lists Pro at $20 per month billed monthly, Max at $100 and Ultra at $200. The `opus` alias resolves to Claude Opus 5.5, which [Best LLM for Coding](./best-llms-for-coding-agents.mdx) covers with the rest of the current models.

Cline is free and charges nothing for the extension itself. You pick a provider: Cline's own pay-as-you-go credits, ClinePass at $9.99 per month for open coding models, or your own API key. Cline can also use a Claude Pro or Max subscription through the Claude Code CLI, or a ChatGPT plan through OpenAI Codex sign-in. With your own key, the bill depends on the model and how many tokens each task uses.

If you only use Claude, Claude Code is the shorter path. If you switch between vendors or run local models, Cline fits.

## Approvals and Undo

The two tools trust the agent by different amounts out of the box. Cline asks before every action. Its docs recommend turning on only Read project files at first, then adding edits and commands when you have a reason. For commands, the model flags each one as safe or needing approval, so Cline has no fixed allowlist. YOLO mode approves everything, including file operations anywhere on your system.

Claude Code starts in `auto` mode on version 2.1.283 and later, where a classifier reviews actions instead of you. Manual mode, called `default`, asks before edits and shell commands. Its optional OS sandbox limits what a shell command can write and which domains it can reach.

Cline's checkpoints are its safety net. After each tool use, Cline commits your files to a shadow git repository that stays separate from your real history. You can restore files, the conversation, or both to any step. Claude Code leaves undo to your own commits.

## Plan Before You Edit

Both tools separate planning from doing. Cline's Plan mode reads the codebase and discusses the approach but cannot edit files or run commands. Act mode then carries out the plan with the same conversation. Claude Code's `plan` mode works the same way, and you switch modes with Shift+Tab.

## When to Pick Which

- **Pick Claude Code** if you use Claude models, work in the terminal or over SSH, or want an OS sandbox and permission rules your team commits to the repository.
- **Pick Cline** if you want a free, open source agent, a choice of providers or local models, an agent that lives in your editor panel, or checkpoints that undo each step.
- **Pick both** if you pay for Claude and like Cline's editor workflow. Cline's Claude Code provider runs on your subscription.

## Alternatives

- **Codex CLI:** OpenAI's Apache 2.0 terminal agent, included in ChatGPT plans. See [Claude Code vs Codex CLI](./claude-code-vs-codex-cli.mdx).
- **OpenCode:** an MIT-licensed terminal agent for almost any model. See [OpenCode vs Claude Code](./opencode-vs-claude-code.mdx) and [OpenCode vs Cline](./opencode-vs-cline.mdx).
- **Cursor, now Grok Build:** an editor with an agent built in. See [Cursor vs Claude Code](./cursor-vs-claude-code.mdx) and [Cursor vs Cline](./cursor-vs-cline.mdx).
- **Roo Code:** a Cline fork that shut down on May 15, 2026. See [Cline vs Roo Code](./cline-vs-roo-code.mdx) and [Claude Code vs Roo Code](./claude-code-vs-roo-code.mdx).

## Running Several Agents at Once

Cline's Kanban board runs several agents in parallel, each in its own [git worktree](/learn/concepts/git/git-worktrees). For Claude Code, [How to Run Multiple Claude Code Sessions](/learn/how-to/how-to-run-multiple-claude-code-sessions) covers the manual setup. Treq runs either agent in an isolated [workspace](/docs/concepts/workspaces) and stacks dependent changes for review.

## Sources

Checked December 4, 2026:

- [Claude pricing](https://claude.com/pricing), [Claude Code permission modes](https://code.claude.com/docs/en/permission-modes), [Claude Code sandboxing](https://code.claude.com/docs/en/sandboxing)
- [Cline pricing](https://cline.bot/pricing), [Cline overview](https://docs.cline.bot/cline-overview), [Auto Approve and YOLO mode](https://docs.cline.bot/features/auto-approve), [Checkpoints](https://docs.cline.bot/core-workflows/checkpoints), [Rules](https://docs.cline.bot/customization/cline-rules), [CLI overview](https://docs.cline.bot/usage/cli-overview), [ClinePass](https://docs.cline.bot/getting-started/clinepass), [Cline license](https://github.com/cline/cline/blob/main/LICENSE)

## Next Steps

- [Best Coding Agent CLIs](./best-coding-agent-clis.mdx): every current terminal agent in one table
- [Setting Up Claude Code](/learn/tutorials/setting-up-claude-code): install and configure Claude Code
- [Review AI-Generated PRs](/learn/how-to/review-ai-generated-prs): check agent output before it merges
