CI verdicts and evidence-backed review for agent-written changes.

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/agents and Claude Code hooks, Claude Code's /import cursor brings 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

CursorClaude Code (Anthropic)
Where it runsDesktop editor (macOS, Windows, Linux), CLI (agent), JetBrains through ACP, Cloud Agents from the web, iOS, Slack, GitHub, Linear and an APICLI (macOS, Linux, Windows), VS Code and Cursor extension, JetBrains, desktop app, web (claude.ai/code), iOS and Android
ModelsCursor's own (Composer, Grok models trained with SpaceXAI) plus Anthropic, OpenAI, Google and other providersClaude models only
ApprovalsRun Modes: Auto-review (recommended default), Allowlist, Run EverythingSix permission modes; auto is the starting mode in the terminal and VS Code
Local sandboxShell 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 RulesCLAUDE.md; AGENTS.md when there is no CLAUDE.md
Hook handlerscommand, prompt; also runs Claude Code hookscommand, http, mcp_tool, prompt, agent (experimental)
PR reviewBugbot, on every PR update or on a cursor review commentCode Review on GitHub (Team and Enterprise); /review locally
Headless / CIagent -p, with CURSOR_API_KEY in any CIclaude -p, anthropics/claude-code-action, GitLab CI/CD (beta)
Paid throughCursor plans; third-party models from Premium up, at API list priceClaude 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, auto is 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; /sandbox or sandbox.enabled turns 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

CursorClaude 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)
SkillsSKILL.md folders in .cursor/skills or .agents/skills, and .claude/skills for compatibility (docs)SKILL.md folders under .claude/skills (docs)
SubagentsMarkdown files in .cursor/agents/, also read from .claude/agents/ and .codex/agents/ (docs)Markdown files in .claude/agents/ (docs)
MCP serversmcp.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 -p runs headless. Without --force it edits workspace files but rejects anything that would need approval; with --force it runs everything except what deny rules and team policy block. In GitHub Actions or any other CI, install the CLI and set CURSOR_API_KEY. Bugbot reviews pull requests on GitHub, GitLab, Bitbucket and Azure DevOps, automatically on each update or when someone comments cursor review or bugbot run.
  • Claude Code: claude -p runs 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; /review runs 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 globs in .cursor/rules; Claude Code uses paths: 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

  1. Cursor: Run Modes
  2. Cursor: Agent security
  3. Cursor: Rules
  4. Cursor: Hooks
  5. Cursor: Third-party hooks
  6. Cursor: Skills
  7. Cursor: Subagents
  8. Cursor: CLI overview
  9. Cursor: Headless CLI
  10. Cursor: Cloud Agents
  11. Cursor: Bugbot
  12. Cursor: JetBrains
  13. Cursor: Models and pricing
  14. Cursor: Pricing
  15. Anthropic: Claude Code platforms
  16. Anthropic: Claude Code in VS Code and Cursor
  17. Anthropic: Claude Code permission modes
  18. Anthropic: Claude Code sandboxing
  19. Anthropic: Claude Code memory (CLAUDE.md)
  20. Anthropic: Claude Code hooks
  21. Anthropic: Claude Code Code Review
  22. Anthropic: Claude Code feature availability
  23. Anthropic: Claude pricing

Related reading