Comparison
Cursor vs Claude Code: editor agent or terminal agent
Cursor is an editor with an agent in every surface; Claude Code is an agent that comes to your editor. Most of what separates them for a team is defaults: which models you can pick, what a command may do before anyone approves it, and which files carry the instructions.
Checked against Cursor's and Anthropic's own documentation on .
The short answer
- Pick Cursor if you want to choose between models from several providers (Cursor's own, Anthropic, OpenAI, Google and others) in one editor, shell commands sandboxed under its recommended Auto-review run mode, and pull request review (Bugbot) on GitHub, GitLab, Bitbucket or Azure DevOps.
- Pick Claude Code if your team works in the terminal or across several editors (VS Code, JetBrains, and Cursor itself through the same extension), wants more hook types, or buys models through Amazon Bedrock, Google Cloud or Microsoft Foundry.
- You don't have to choose one: the Claude Code extension installs in Cursor, Cursor loads
.claude/skills,.claude/agentsand Claude Code hooks, Claude Code's/import cursorbrings a Cursor setup across, and both read AGENTS.md. - Claude models in Cursor are not a Claude plan. In Cursor they bill at API list price on Premium and above; Claude Code is included in Claude's paid plans. Compare the two pricing pages for the usage you expect.
Cursor vs Claude Code at a glance
| Cursor | Claude Code (Anthropic) | |
|---|---|---|
| Where it runs | Desktop editor (macOS, Windows, Linux), CLI (agent), JetBrains through ACP, Cloud Agents from the web, iOS, Slack, GitHub, Linear and an API | CLI (macOS, Linux, Windows), VS Code and Cursor extension, JetBrains, desktop app, web (claude.ai/code), iOS and Android |
| Models | Cursor's own (Composer, Grok models trained with SpaceXAI) plus Anthropic, OpenAI, Google and other providers | Claude models only |
| Approvals | Run Modes: Auto-review (recommended default), Allowlist, Run Everything | Six permission modes; auto is the starting mode in the terminal and VS Code |
| Local sandbox | Shell commands sandboxed when possible under Auto-review (macOS, Linux) | Off by default; /sandbox turns it on, for shell commands only (macOS, Linux, WSL2) |
| Instruction files | .cursor/rules/*.mdc, AGENTS.md (nested), User Rules, Team Rules | CLAUDE.md; AGENTS.md when there is no CLAUDE.md |
| Hook handlers | command, prompt; also runs Claude Code hooks | command, http, mcp_tool, prompt, agent (experimental) |
| PR review | Bugbot, on every PR update or on a cursor review comment | Code Review on GitHub (Team and Enterprise); /review locally |
| Headless / CI | agent -p, with CURSOR_API_KEY in any CI | claude -p, anthropics/claude-code-action, GitLab CI/CD (beta) |
| Paid through | Cursor plans; third-party models from Premium up, at API list price | Claude Pro, Max, Ultra, Team and Enterprise, an API key, or a cloud provider |
Both products change every few weeks, and several defaults here depend on the version you run. The sections below link each row to the page it came from; check those pages before you standardise a team on either tool.
Where each one runs
Cursor starts from its desktop editor for macOS, Windows and Linux. The same agent runs in the Cursor CLI (the agent command, with Agent, Plan and Ask modes), in JetBrains IDEs through the Agent Client Protocol on a paid plan, and as Cloud Agents: isolated VMs started from cursor.com/agents, the iOS app, the desktop app, Slack, a @cursor comment on GitHub or Bitbucket, Linear or the API. Prefixing a CLI message with & hands the conversation to a Cloud Agent.
Claude Code is one engine on every surface: the CLI, the desktop app, VS Code, JetBrains, the web and mobile, with cloud sessions at claude.ai/code. Its VS Code extension has an install link for Cursor too, so a Cursor user can run Claude Code in a panel of the same editor.
Models: many providers or one
Cursor's model list mixes its own models (Composer, and Grok models it trains with SpaceXAI) with Anthropic's Claude models, OpenAI's GPT models, Google's Gemini models and others. Its own models are covered by each plan's included usage. Third-party models, Claude included, are "available in Cursor at the model's API list price from the first request" on Premium and above, paid from prepaid credit; the Free and Plus plans don't include them. Teams on legacy plans (Pro, Pro+, Ultra, Teams Standard or Premium seats) keep their older usage pools.
Claude Code runs Claude models only, through a Claude subscription, an Anthropic Console API key, or Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry.
If your team wants to compare models from different vendors on the same task, Cursor makes that a menu choice. If it has already settled on Claude, the question is whether you pay for it per token in Cursor or through a Claude plan.
Approvals and sandboxing
Cursor: Run Modes and Auto-review
- Reading and searching files need no approval, and the agent edits workspace files without asking, except configuration files (agent security).
- Run Modes decide the rest: Auto-review, the recommended default since Cursor 3.6, runs allowlisted calls, runs other shell commands in the sandbox when it can, and sends what's left to a classifier on Cursor's backend. Allowlist runs only what you list; Run Everything runs every call.
- Cursor says plainly that the Auto-review classifier "is not a security boundary": it can allow a call you would have blocked.
- The sandbox uses Seatbelt on macOS and Landlock with seccomp on Linux (kernel 6.2 or later). Inside it, network access is blocked by default and then opened by your network mode and
sandbox.json.
Claude Code: permission modes, sandbox opt-in
- Six permission modes. From v2.1.283,
autois the starting mode for interactive terminal and VS Code sessions; deny rules block in every mode. - The OS sandbox (Seatbelt on macOS, bubblewrap on Linux and WSL2) is off by default;
/sandboxorsandbox.enabledturns it on. It covers shell commands only, and on native Windows commands run unsandboxed.
Out of the box, Cursor puts more shell commands in a sandbox; Claude Code leans on its permission mode until you turn the sandbox on. Neither classifier replaces deny rules for the paths and commands an agent should never touch.
Instruction files: .cursor/rules, AGENTS.md and CLAUDE.md
Cursor's rules come in four kinds. Project rules are .mdc files in .cursor/rules whose frontmatter (alwaysApply, globs, description) decides whether a rule is always included, attached for matching files, pulled in when the agent judges it relevant, or used only when @-mentioned; a plain .md file there is ignored. AGENTS.md works in the project root and in subdirectories, the more specific file winning. User Rules apply on your machine, and Team Rules, set from the dashboard on Team and Enterprise plans, apply across a team's repositories.
Claude Code reads CLAUDE.md at the managed-policy, user, project and local levels, with @path imports. From v2.1.277 it also reads AGENTS.md, by default only when there is no CLAUDE.md or CLAUDE.local.md in the working directory or above it. Its /init command reads Cursor rules in .cursor/rules/ or .cursorrules and folds the relevant parts into the CLAUDE.md it writes.
For a repo both tools work in, AGENTS.md is the one file both read. Put the shared instructions there, keep path-scoped Cursor rules in .cursor/rules, and let CLAUDE.md import AGENTS.md if Claude needs more. Our piece on AGENTS.md and agent context files for large repos covers what belongs in it.
Hooks, skills, subagents and MCP
| Cursor | Claude Code | |
|---|---|---|
| Hooks | .cursor/hooks.json; command and prompt hooks; also loads hooks from .claude/settings.json (docs) | command, http, mcp_tool, prompt and agent handlers (docs) |
| Skills | SKILL.md folders in .cursor/skills or .agents/skills, and .claude/skills for compatibility (docs) | SKILL.md folders under .claude/skills (docs) |
| Subagents | Markdown files in .cursor/agents/, also read from .claude/agents/ and .codex/agents/ (docs) | Markdown files in .claude/agents/ (docs) |
| MCP servers | mcp.json, or the Customize page and Marketplace (docs) | claude mcp add or a project .mcp.json (docs) |
Cursor's third-party hooks setting, on by default, runs Claude Code hooks and maps their event names and response formats to Cursor's. A team that writes its guardrails as Claude Code hooks and skills gets most of them in Cursor without copying files. Going the other way, Claude Code's /import cursor (v2.1.265 or later) copies a Cursor setup's instruction files, MCP servers, commands, subagents and skills into Claude Code.
Headless runs, CI and pull request review
- Cursor:
agent -pruns headless. Without--forceit edits workspace files but rejects anything that would need approval; with--forceit runs everything except what deny rules and team policy block. In GitHub Actions or any other CI, install the CLI and setCURSOR_API_KEY. Bugbot reviews pull requests on GitHub, GitLab, Bitbucket and Azure DevOps, automatically on each update or when someone commentscursor revieworbugbot run. - Claude Code:
claude -pruns headless; Claude Code GitHub Actions (anthropics/claude-code-action) and GitLab CI/CD (beta) run it in pipelines (docs). Code Review comments inline on GitHub pull requests on Team and Enterprise plans;/reviewruns locally.
A reviewer bot from the same vendor as the author agent is one signal, not a verdict. Whichever tool wrote the change, it merges on the team's CI and a review that says what changed in behaviour. See what each CI check can tell you and when autonomous agents need a human gate.
Plans and what you pay for
Cursor sells Free, Plus, Premium, Super and Ultra plans, Teams seats and Enterprise. Each includes a pool of usage for Cursor's own models; Cloud Agents, Bugbot and third-party models start at Premium, with third-party models billed at API list price on top. Current prices and what each plan includes are on Cursor's pricing page and in its models and pricing docs.
Claude Code is included in Claude's paid plans (Pro, Max, Ultra, Team and Enterprise), and also runs with an Anthropic Console API key or through a cloud provider. Limits and prices are on Anthropic's pricing page.
The two bill differently for the same Claude model: per token in Cursor, against plan limits in Claude Code. Estimate your team's real usage against both pages rather than relying on a third-party table.
Which to choose, by situation
- You want to switch models between vendors per task: Cursor.
- You already pay for a Claude plan and mostly use Claude: Claude Code; it comes with the plan, and its extension runs inside Cursor if you like the editor.
- Your team is split across VS Code, JetBrains and the terminal: Claude Code runs the same engine in each. Cursor reaches JetBrains through ACP and the terminal through its CLI.
- You want shell commands sandboxed without setup: Cursor's Auto-review on macOS or Linux. In Claude Code, run
/sandbox. - You need hooks that call a URL or hand the decision to an agent: Claude Code.
- You want rules scoped to file paths: either works. Cursor uses
globsin.cursor/rules; Claude Code usespaths:frontmatter in.claude/rules/. - Your company buys models through Bedrock, Google Cloud or Foundry: Claude Code documents all three.
- Your team uses both: keep AGENTS.md as the shared baseline and write skills, subagents and hooks in
.claude/, which Cursor also loads.
Weighing Claude Code against OpenAI's agent instead? See Codex vs Claude Code.
FAQ
Can I use Claude Code inside Cursor?
Yes. Anthropic's VS Code extension has an install link for Cursor, and the claude CLI runs in Cursor's terminal. You sign in with your Claude account or API key, and that usage bills through Anthropic, not Cursor.
Can I use Claude models in Cursor?
Yes, on Premium and above (and on legacy plans), billed at the model's API list price from prepaid credit. The Free and Plus plans don't include third-party models.
Does Cursor read CLAUDE.md?
Cursor's rules documentation lists .cursor/rules, AGENTS.md, User Rules and Team Rules, not CLAUDE.md. For instructions both tools follow, use AGENTS.md: Cursor reads it, and Claude Code reads it when there is no CLAUDE.md, or through an @AGENTS.md import when there is.
Which one is safer to run on my machine by default?
Cursor's recommended Auto-review mode sandboxes shell commands when it can and sends the rest to a classifier; Claude Code starts in auto mode with its sandbox off until you run /sandbox. Both vendors say their classifiers can make mistakes, so add deny rules for anything an agent must never do.
How much do Cursor and Claude Code cost?
Both change often. Check Cursor's pricing and Claude's pricing for current plans, and remember that Claude models in Cursor bill per token on top of the Cursor plan.
Sources
- Cursor: Run Modes
- Cursor: Agent security
- Cursor: Rules
- Cursor: Hooks
- Cursor: Third-party hooks
- Cursor: Skills
- Cursor: Subagents
- Cursor: CLI overview
- Cursor: Headless CLI
- Cursor: Cloud Agents
- Cursor: Bugbot
- Cursor: JetBrains
- Cursor: Models and pricing
- Cursor: Pricing
- Anthropic: Claude Code platforms
- Anthropic: Claude Code in VS Code and Cursor
- Anthropic: Claude Code permission modes
- Anthropic: Claude Code sandboxing
- Anthropic: Claude Code memory (CLAUDE.md)
- Anthropic: Claude Code hooks
- Anthropic: Claude Code Code Review
- Anthropic: Claude Code feature availability
- Anthropic: Claude pricing


