Skip to content

Cursor vs Claude Code: which coding agent, for which team

Cursor vs Claude Code compared on how each runs edits, finds code, picks models, and lets admins cap spend, with each vendor's pricing as of November 2026.

Published
Reading time
16 min read

In short

  • Cursor is an editor with an agent built in, and it sends every model request through Cursor's servers, which build the final prompt. Claude Code is an agent harness that runs on the developer's machine, in the terminal or an IDE extension, and calls a Claude provider itself.
  • Cursor offers models from several vendors, including its own Composer and Grok models, Claude, GPT, and Gemini, plus Auto routing. Claude Code runs only Claude models, on the Anthropic API, Amazon Bedrock, Google Cloud, or Microsoft Foundry.
  • Neither tool needs an embeddings index to find code. Cursor's Instant Grep keeps a local search index, and Claude Code searches with pattern and regex tools at task time.
  • Admin controls differ by plan. Cursor's model allowlists, personal-key restrictions, audit logs, and OpenTelemetry export are Enterprise features. Claude Code enforces policy through managed settings on any provider, and spend caps live wherever the account is billed.

Cursor and Claude Code are both coding agents that read a repository, edit files, and run commands, but they are built around different surfaces. Cursor is an editor with an agent built into it, and every model request passes through Cursor's servers. Claude Code is an agent harness that runs on the developer's machine, in a terminal or an IDE extension, and calls a Claude model provider directly.

That one difference decides most of the rest: which models a team can use, where a gateway can sit, who sees the prompts, and which admin console holds the spend controls. This comparison covers each point from the vendors' own documentation as of November 23, 2026, then says which team each tool fits.

Cursor vs Claude Code at a glance

Cursor is an IDE-first agent with several model vendors behind it, and Claude Code is a terminal-first agent that runs Claude models only. Both have a CLI, an IDE surface, cloud agents, checkpoints, project instruction files, and MCP support, so the choice turns on the harness and the admin model, not on a missing feature.

CursorClaude Code
Primary surfaceAn editor and an Agents Window, with a CLIA terminal CLI, with VS Code, JetBrains, desktop, and web surfaces
Where the agent loop runsIn the app, with the final prompt built on Cursor's serversIn the client on the developer's machine, or on a cloud VM
ModelsComposer, Grok, Claude, GPT, Gemini, and Auto routingClaude only: Opus, Sonnet, Haiku, and Fable aliases
Model providerCursor, or the developer's own key for five providersAnthropic API, Claude Platform on AWS, Bedrock, Google Cloud, Microsoft Foundry
Finding codeInstant Grep with a local index, plus an Explore subagentPattern and regex search tools at task time, plus subagents
Instructions.cursor/rules, user rules, team rules, AGENTS.mdCLAUDE.md or AGENTS.md, plus auto memory
UndoCheckpoints stored locally, separate from GitCheckpoints before each edit, separate from Git
Org policyTeam dashboard, most controls Enterprise-onlyManaged settings files, MDM profiles, or server-managed settings
Gateway slotOpenAI base URL override, reachable from Cursor's serversANTHROPIC_BASE_URL

Cursor's Agents Window now sits alongside the classic editor as an agent-first interface for running many agents in parallel, and Claude Code's VS Code extension installs in Cursor as well as VS Code. A team does not have to pick one exclusively.

How each one runs: IDE-first vs terminal-first

Cursor's agent lives in the editor's side pane and in the Agents Window, while Claude Code is a CLI that the IDE and desktop apps wrap. Both run the same loop of searching, editing, running commands, and checking results. The difference is where a developer watches that loop and where it executes.

Cursor's Agent is built from instructions, tools, and the model the developer picks. Its tools search files, read them, edit them, run shell commands, search the web, drive a browser, and generate images. Cursor says it tunes the instructions and tools for each frontier model it supports. The Agents Window adds parallel agents, Git worktrees per task, and handoff between a local agent and a cloud agent.

Claude Code describes itself as the agentic harness around the model: the layer that provides tools and manages what the model sees. The loop is identical in the terminal, the desktop app, the IDE extensions, the web, Slack, and CI. It runs in one of three places: the developer's machine, a cloud VM managed by Anthropic or by the organization, or the developer's machine driven from a browser through Remote Control. The agent loop covers what any such harness has to guard.

CursorIDE-FIRSTCursor appEditor, Agents Window,CLI, cloud agentsCursor backendBuilds the final promptRoutes Auto requestsModel providersComposer, Grok, Claude,GPT, GeminiGATEWAY SLOT · OPENAI BASE URL, PUBLIC HOSTClaude CodeTERMINAL-FIRSTTerminal or IDECLI, VS Code, JetBrains,desktop appClaude Code harnessRuns on your machineSends its own requestsClaude providersAnthropic API, Bedrock,Google Cloud, FoundryGATEWAY SLOT · ANTHROPIC_BASE_URL
Cursor builds each prompt on its own servers before it reaches a model provider. Claude Code's harness runs on the developer's machine and sends its own requests. The dashed line marks where each tool lets a gateway in.

The Cursor CLI narrows the gap for terminal users. It starts with agent, supports the editor's Agent, Plan, and Ask modes, has a print mode for CI, and hands a conversation to a cloud agent when a message starts with &.

How each tool applies and reviews edits

Cursor applies the agent's edits to files as it works and lets the developer reject them in a diff view afterward. Claude Code asks before each edit or applies edits without asking, depending on the permission mode. Both snapshot files before changing them, so a bad run can be rewound without Git.

In Cursor, edits appear in the diff view as they happen, and the developer rejects what they don't want. Checkpoints are created automatically before significant changes, are stored locally, and restore files without removing messages from the chat. Cursor's Agent Review runs a separate code review on local changes, either after every commit or with /agent-review.

In Claude Code, what happens before an edit depends on the permission mode. In Manual mode, the VS Code extension shows a side-by-side diff and asks for approval, and from v2.1.275 a developer can accept or reject each change in a file separately. Accept edits mode writes files without asking. Before every edit, Claude Code snapshots the file, and pressing Esc twice rewinds. Checkpoints cover files only, so a database write or a deployment cannot be undone that way.

Shell commands are where the two tools' safety models meet:

ControlCursorClaude Code
Classifier modeAuto-review: allowlisted calls run, other shell commands run in a sandbox where possible, the rest go to a classifier on Cursor's backendAuto: a classifier reviews most actions and blocks risky ones. The starting mode for terminal and VS Code sessions from v2.1.283
Deterministic modeAllowlist: listed actions run without approvalManual or Accept edits, with permissions.allow and permissions.deny rules
No promptsRun EverythingBypass mode, which admins can disable
SandboxOptional for shell commandsOS-level filesystem and network isolation with a domain allowlist

Cursor states plainly that Auto-review is not a security boundary, because the classifier can be wrong in either direction. The same holds for any classifier mode. Claude Code's admin guide makes a related point: denying the web-fetch tool does not stop curl if the shell is allowed, and only the OS-level sandbox closes that gap.

Context and codebase indexing

Neither tool depends on uploading an embeddings index of the repository. Cursor finds code with Instant Grep, which builds and queries its index on the developer's machine. Claude Code finds code with file-pattern and regex search tools that run during the task. Both send the files the agent opens to the model as part of the request.

Cursor's search docs say Instant Grep does not upload file paths or code to build an index and does not store embeddings of the codebase. For broad searches, the agent can start an Explore subagent with its own context window and a faster model, which returns findings instead of raw file contents. Developers can also attach files, folders, terminal output, and Git diffs with @ mentions.

Claude Code's search tools find files by pattern and search content with regex. The context window holds the conversation, file contents, command output, CLAUDE.md, auto memory, and loaded skills, and /context shows what is using space. Claude Code compacts history automatically as the window fills, defers MCP tool definitions until they are used, and runs subagents in separate context windows that return a summary. Context engineering explains why that budget matters more than the window's size.

Excluding files works differently. Cursor respects .gitignore, adds .cursorignore, and ignores .env files by default, but its docs warn that terminal commands and MCP tools run outside those file controls and may still read ignored files. Claude Code controls file access through permission rules and the sandbox, which admins can set centrally.

Project instructions are close to interchangeable. Cursor reads project rules from .mdc files in .cursor/rules, scoped by glob, description, or manual mention, and also reads AGENTS.md. Team rules, set in the dashboard, are available on Team and Enterprise plans. Claude Code reads CLAUDE.md, or a repository's AGENTS.md in its place, at the start of each session, and an organization can deploy a managed CLAUDE.md to every machine. A repository that keeps its instructions in AGENTS.md serves both tools.

Model choice: many vendors vs Claude only

Cursor gives a team models from several vendors, while Claude Code gives it one model family from several providers. Cursor's list includes its own Composer and Grok models alongside Claude, GPT, and Gemini, and its Auto mode routes each request. Claude Code runs Claude models only, and the provider decides which versions its aliases resolve to.

Cursor's Auto mode is now backed by Cursor Router, a classifier that picks a model per request in one of three modes: Cost, Balance, or Intelligence. Routing is not configurable per request. Cursor Router is launching for Teams and Enterprise plans, Enterprise teams start with it off, and admins choose which modes members can see. LLM routing covers the general trade-offs of letting a router pick.

Developers can also bring their own keys for OpenAI, Anthropic, Google, Azure OpenAI, and AWS Bedrock. Cursor's help page sets three limits on that:

  • Custom keys work only with chat models. Tab completion keeps using Cursor's own models.
  • Requests still pass through Cursor's servers for final prompt building. The key is sent with each request and not stored.
  • Cursor's zero data retention policy does not apply to requests made with a developer's own key.

On Teams and Enterprise plans, eligible third-party requests made with a developer's own key still carry the Cursor Token Rate, which Cursor's help page lists as $0.25 per million tokens.

Claude Code selects a model with an alias or a full model name. The opus, sonnet, and haiku aliases resolve to the newest version on the Anthropic API and, per Anthropic's model configuration page, to earlier versions on some other providers, such as Sonnet 4.5 on Bedrock and Google Cloud's Agent Platform. Teams that run through a cloud provider should pin full model names with ANTHROPIC_DEFAULT_SONNET_MODEL and its siblings. Anthropic does not support pointing Claude Code at non-Claude models through a gateway.

Team admin and policy controls

Cursor holds team policy in its web dashboard, and most of its model, MCP, and audit controls require the Enterprise plan. Claude Code holds policy in managed settings that reach each machine through the claude.ai admin console, an MDM profile, or a file, and those settings work with every provider, including Bedrock and Google Cloud.

ControlCursorClaude Code
Restrict modelsEnterprise: Team Settings, Models, plus per-group wideningavailableModels in managed settings on any provider; server-side restrictions on Claude Enterprise
Block personal API keysEnterprise: Personal API Keys (BYOK) toggleforceLoginMethod or forceLoginOrgUUID block API-key sessions
MCP serversEnterprise: allowlist by server and tool, with per-server network modesallowedMcpServers, deniedMcpServers, or a deployed managed-mcp.json
Command approvalAdmin-set run modes, sandbox networking, and read policypermissions.allow and deny, disableBypassPermissionsMode, sandbox settings
PrivacyPrivacy Mode on by default for teams, enforceable by adminsTelemetry opt-out through CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
Audit and telemetryEnterprise: audit log and server-side OpenTelemetry exportOpenTelemetry export from each client on every setup

Cursor's Enterprise controls also include a Git repository blocklist. Its OpenTelemetry export runs server-side and needs a collector reachable from the public internet, because Cursor connects to it from fixed source IPs.

Claude Code's organization setup guide lists the same kinds of controls as settings keys. Managed values override user and project settings, and developers can extend managed allow and deny lists but cannot remove entries from them. Delivery through the claude.ai admin console needs a Claude for Teams or Enterprise plan, while plist, registry, and file-based policies work on any provider. One caveat applies to Bedrock, Google Cloud, and Foundry deployments: cloud sessions, Code Review, Remote Control, and the Chrome extension need a claude.ai account, so those teams may still need seats.

Cost controls and usage reporting

Cursor caps spend with a monthly limit on usage beyond the plan's included pool, set per team and per member. Claude Code's caps depend on how the organization pays: seat allowances and usage-credit limits on Claude for Teams and Enterprise, workspace limits in the Claude Console, and the cloud provider's own budgets on Bedrock, Google Cloud, or Foundry.

On Cursor, spend limits stop paid additional usage once reached, while included usage keeps working. Admins set one team limit, a default per member, and per-member overrides, and Enterprise adds group-level limits, pooled usage across a contract, and spend alerts. Team analytics show agent edits, Tab completions, messages, and the share of committed code that came from AI, with an Admin API for spending and usage events.

On Claude Code, Anthropic's cost guide maps each billing setup to its controls:

Billing setupSee spendCap spendPer-user numbers
Claude for Teams or EnterpriseSpend report in org analyticsSeat allowance, then usage-credit limits per org, group, or memberSpend report CSV; Enterprise Analytics API
Claude ConsoleConsole cost pageWorkspace spend limitsConsole dashboard; Claude Code Analytics API
Bedrock, Google Cloud, FoundryCloud billing consoleCloud budget controlsOpenTelemetry or an LLM gateway

The third row is the gap. Anthropic's analytics do not cover cloud-provider usage, so a team on Bedrock sees one bill per account until it adds OpenTelemetry on every machine, a Claude apps gateway, or another gateway that tracks spend per key.

Cursor pricing and Claude Code pricing

Both vendors sell per-seat plans with a usage allowance, and both charge separately for usage past it. Cursor is now sold as part of The X Subscription, and third-party models in Cursor are billed at API list price outside the plan. Claude Code is included in Claude's paid plans from Pro upward. The figures below are what each vendor's pricing page listed on November 23, 2026, before tax.

PlanCursor, per cursor.com/pricingClaude Code, per claude.com/pricing
Free$0, limited usage$0, no Claude Code
EntryPlus, $8 a month, Cursor's own models onlyPro, $20 a month, or $17 a month billed annually
MidPremium, $30 a month, 4x Plus usageMax, $100 a month, 5x Pro usage
HighSuper, $100, and Ultra, $200 a monthUltra, $200 a month, 10x Pro weekly usage
TeamTeams, from $30 per user a monthTeam, $25 a standard seat or $125 a premium seat monthly, less billed annually
EnterpriseCustomCustom

The headline prices compare poorly, because the allowances measure different things. Cursor's included pool covers Cursor's own models, such as Grok and Composer, and Claude or GPT usage is paid from prepaid credit at list price. Claude's allowance resets on five-hour and weekly windows and covers Claude models directly. A Cursor team that runs Claude as its main model pays for that usage on top of the seat.

API billing is the third option for Claude Code: through the Claude Console or a cloud provider, every token is billed at the provider's rates with no seat. Prompt caching is the largest lever on that bill for either tool, since each turn resends the same long prefix.

Running either agent through a gateway

A gateway gives each developer a key, a budget, and a row in one request log, whichever agent they use. Claude Code points at a gateway with ANTHROPIC_BASE_URL and a gateway credential. Cursor accepts an OpenAI-compatible base URL override for chat models, but its requests leave from Cursor's servers, so the gateway has to be reachable from the public internet.

For Claude Code, the setup and the forwarding rules are covered in the Claude Code gateway guide: the gateway must speak the Anthropic Messages format, stream as it goes, and pass headers and cache_control through unchanged.

Cursor has more limits on the same idea. Its data governance page confirms that a custom model can be reached through an OpenAI-compatible base URL override or a third-party gateway. The override applies to every OpenAI-compatible model, Tab completion stays on Cursor's models, and on Teams plans the Cursor Token Rate still applies. A model served through the gateway must support tool calling, or agent mode fails. An Enterprise admin who has turned off personal API keys blocks this path entirely.

Bifrost, an open-source AI gateway by Maxim AI, documents both setups. Claude Code uses its /anthropic endpoint, and Cursor uses the base URL override with a virtual key in the OpenAI API key field, per the Cursor guide. Each developer's key then carries its own budget, rate limit, and allowed providers, and virtual keys covers the pattern in general. For machines where environment variables can't be trusted to stay set, Bifrost Edge, an Enterprise add-on priced per device, applies the same gateway governance and security policy to coding agents and desktop AI apps on each device, as the Edge overview describes.

Which coding agent fits which team

Choose Cursor when developers want an editor first and models from several vendors behind one subscription. Choose Claude Code when the team has standardized on Claude, wants the agent in the terminal and in CI, or must run inference through its own cloud account. The two also combine, since Claude Code's extension installs in Cursor.

Cursor fits a team that:

  • Works mostly inside an editor and wants Tab completion, inline review, and agents in one app.
  • Wants to switch between Claude, GPT, Gemini, and Cursor's own models per task, or let Auto pick.
  • Can accept that prompts are built on Cursor's servers, with Privacy Mode enforced by an admin.
  • Is on, or will buy, the Enterprise plan if it needs model allowlists, MCP allowlists, or audit logs.

Claude Code fits a team that:

  • Works in the terminal, runs agents in CI, or scripts them with the Agent SDK.
  • Has standardized on Claude and wants one harness built around Claude models.
  • Must keep inference on Bedrock, Google Cloud, or Foundry under existing cloud billing and compliance controls.
  • Wants policy delivered as files through MDM, on any provider, without an Enterprise contract.

The deciding question for a platform team is usually where the controls live. Cursor puts them in one vendor dashboard, mostly on its top plan. Claude Code puts them in settings files and in whichever account bills the tokens, which is more work to assemble and works the same on every provider.

Frequently asked questions

Is Claude Code better than Cursor?

Neither is better for every team. Claude Code suits teams that have standardized on Claude, work in the terminal, or must run models through their own cloud account. Cursor suits teams that want an editor with completion, review, and agents in one app and models from several vendors. Many developers use both, running Claude Code's extension inside Cursor.

Can I use Claude models in Cursor?

Yes. Cursor's model list includes Claude Opus, Sonnet, Haiku, and Fable, billed at Anthropic's list price from prepaid credit on The X Subscription plans. A developer can also add an Anthropic API key in Cursor's model settings, and Anthropic then bills the model cost directly. Requests still pass through Cursor's servers, and Tab completion keeps using Cursor's own models.

How much does Cursor cost?

As of November 23, 2026, Cursor's pricing page lists Free, Plus at $8 a month, Premium at $30, Super at $100, Ultra at $200, Teams from $30 per user a month, and custom Enterprise pricing. Plus runs only Cursor's own models, Grok and Composer. Third-party models such as Claude and GPT are billed separately at API list price, and legacy Pro and Teams plans continue for existing subscribers.

Does Cursor support a custom API base URL or gateway?

Yes, for chat models. Cursor accepts an OpenAI API key with an OpenAI-compatible base URL override, which can point at a gateway. Because Cursor's servers build the final prompt and make the call, the gateway must be reachable from the public internet. Tab completion stays on Cursor's models, and Enterprise admins can disable personal keys for the whole team.

Does Cursor or Claude Code index my codebase?

Neither uploads an embeddings index for search. Cursor's Instant Grep builds and queries a search index on the developer's machine, and Cursor says it does not upload file paths or code to build it. Claude Code searches with file-pattern and regex tools during each task. Both send the files the agent reads to the model provider.

Sources

  1. 01Cursor AgentCursor docs
  2. 02Agents WindowCursor docs
  3. 03SearchCursor docs
  4. 04Run ModesCursor docs
  5. 05RulesCursor docs
  6. 06Bring your own API keyCursor help
  7. 07Cursor RouterCursor help
  8. 08Model and Integration ManagementCursor docs
  9. 09Privacy and Data GovernanceCursor docs
  10. 10Spend limitsCursor help
  11. 11Cursor CLICursor docs
  12. 12PricingCursor
  13. 13How Claude Code worksClaude Code docs
  14. 14Use Claude Code in VS CodeClaude Code docs
  15. 15Model configurationClaude Code docs
  16. 16Set up Claude Code for your organizationClaude Code docs
  17. 17Manage costs effectivelyClaude Code docs
  18. 18Track team usage with analyticsClaude Code docs
  19. 19Plans and pricingClaude
  20. 20CursorBifrost docs