Claude Code vs Cursor in November 2026: terminal agent or AI editor

Claude Code vs Cursor compared on pricing, models, agent modes, cloud agents, rules, MCP, privacy, and team controls, with picks by situation.

Published
Reading time
15 min read
Level
Intermediate
By
AI for Devs
TL;DR
  • As of November 16, 2026, Claude Code is the better pick for terminal-first work on Claude models: Max at $100 a month or Ultra at $200 includes Opus 5.5 up to usage limits, and a session can run entirely on your laptop or your own runners.
  • Cursor is the better pick for editor-first work and model choice: its weekly pool covers Grok 4.7 and Composer 2.5, and Claude, GPT, and Gemini cost API list price on Premium ($30 a month) and above.
  • On Cursor Teams, a $0.25 per million token rate on eligible third-party models adds 45% to a cache-heavy Opus 5.5 session and 91% to the same session on Sonnet 5.5, by this article's arithmetic.
  • Claude Code reaches an AI gateway with one base URL. Cursor's custom base URL covers chat models only, passes through Cursor's servers first, and leaves Tab on Cursor's own models.
  • Cursor loads .claude/skills, .claude/agents, and Claude Code hooks, and both tools read AGENTS.md, so running both on one repository takes little duplicate setup.

Claude Code vs Cursor is a choice between Anthropic's terminal-first coding agent and an AI-first editor that became part of SpaceX on August 14, 2026. Claude Code runs Claude models from a CLI, IDE extensions, a desktop app, and the browser, while Cursor puts its agent inside an editor with Tab completion and sells it through The X Subscription alongside Grok. Both now ship plan modes, classifier-reviewed autonomy, cloud agents, skills, hooks, and MCP. They differ on which models a plan pays for, where prompts travel, and what a gateway can see. Every fact below was read from vendor docs, pricing pages, and changelogs on November 16, 2026, against Claude Code 2.1.325 and Cursor 3.27.

#Claude Code vs Cursor at a glance

Claude Code is a Claude-only coding agent you drive from a terminal, an IDE panel, a desktop app, or a browser. Cursor is an editor and agent with its own Grok and Composer models, plus paid access to models from Anthropic, OpenAI, Google, and others.

Claude CodeCursor
MakerAnthropicCursor, part of SpaceX
Main interfaceTerminal CLI, VS Code and JetBrains extensions, desktop app, webEditor and Agents Window, CLI, web, iOS, JetBrains through ACP
Autocomplete as you typeNoneTab, including multi-line and cross-file edits
ModelsClaude only: Opus 5.5 by default, Sonnet 5.5, Haiku 5.5, Fable 5.2Grok 4.7, 4.6, 4.5, and Composer 2.5 in the plan; others at API price
Lowest price with the agentPro, $20 a monthFree with limited usage; Plus, $8 a month
Cloud agentsPro and up; GitHub for cloning and pull requestsPremium and up; GitHub, GitLab, Bitbucket, Azure DevOps
Code searchAgentic search with file tools, no indexInstant Grep, indexed on your machine
Instruction filesCLAUDE.md, .claude/rules/, or AGENTS.md.cursor/rules/*.mdc, AGENTS.md, Team Rules
Zero data retentionEnterprise, enabled per organization by AnthropicPrivacy Mode, on by default for teams

#Workflow and interface: terminal agent or AI editor

Claude Code starts from a prompt, and Cursor starts from an open file. You run claude in a project directory, describe a task, and review the diff. The same engine backs the terminal, IDE, desktop, and web surfaces, so CLAUDE.md, settings, and MCP servers carry across them. claude -p runs one prompt non-interactively, so you can pipe logs into it or call it from CI.

Cursor's editor runs VS Code extensions, and Tab predicts multi-line edits, missing imports, and your next edit location, including in other files. Claude Code has no autocomplete and edits only when asked. Cursor 3, released April 2, 2026, added the Agents Window for running many agents across repositories, locally, in the cloud, or over SSH.

On Cursor CLI vs Claude Code, the terminal tools now look alike. Cursor's agent command has Agent, Plan, and Ask modes, a -p print mode, session resume, and an & prefix that hands the conversation to a cloud agent. Claude Code's CLI is where its permission modes, hooks, and plugins start.

#Models and context windows

Claude Code runs Claude models only, while Cursor bundles its own models into the plan and bills everything else at API list price. For which model to choose, see the best LLM for coding comparison.

In Claude Code, the opus, sonnet, haiku, and fable aliases resolve to Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.2 on the Anthropic API, and Opus 5.5 is the default on every paid plan. On Amazon Bedrock and Google Cloud's Agent Platform, sonnet still resolves to Sonnet 4.5, so pin newer versions there. Current Claude models run with a 1M-token context window by default, at standard per-token prices on the Anthropic API. Anthropic doesn't support routing Claude Code to non-Claude models through any gateway.

Cursor's weekly pool covers Grok 4.7, Grok 4.6, Grok 4.5, and Composer 2.5, and Cursor lists the Grok models as jointly trained with SpaceXAI. On Premium and above, third-party models cost API list price from the first request: Claude Opus 5.5 at $4 input and $20 output per million tokens, GPT-5.6 Sol at $4 and $20, and Gemini 4 Argon at $2 and $10. Plus runs Cursor's models only, at medium effort.

Cursor opens Opus 5.5 at a 300K-token window and Sonnet 5.5 at 200K, with 1M as the maximum. On Teams and Enterprise, Auto can hand the choice to Cursor Router, which picks a model per request in Balance or Intelligence mode.

#Claude Code vs Cursor pricing, November 2026

Heavy Claude users pay less in Claude Code, because Claude's subscriptions include Claude usage while Cursor bills Claude at API price on top of the plan. Cursor costs less when its own models are enough. Prices were read from claude.com/pricing and cursor.com/pricing on November 16, 2026, before tax.

TierClaude (includes Claude Code)Cursor (The X Subscription)
Free$0, no Claude Code$0, limited Agent, Chat, and Tab on Cursor models
EntryPro: $20 a month, or $17 billed annuallyPlus: $8; Cursor models only, no cloud agents
Daily useMax: $100, 5x Pro usage, $100 a month in API creditsPremium: $30, 4x Plus, cloud agents, third-party models at list price
Heavy useUltra: $200, 10x Pro weekly, no 5-hour limit for verified accountsSuper: $100, 15x Plus; Ultra: $200, 50x Plus
Team seatStandard $25 ($20 annually), Premium $125 ($100 annually)Premium, Super, or Ultra seat at $30, $100, or $200
Enterprise$20 per seat a month billed annually, plus usage at API rates, 20-seat minimumCustom, with pooled usage
Per tokenAnthropic API: Opus 5.5 at $4 input, $20 output per millionThird-party list price; Teams add $0.25 per million

Cursor's annual prices are $80, $300, $1,000, and $2,000 for Plus through Ultra, and customers on legacy plans such as Pro at $20 keep them until they switch. The Claude API pricing guide and the LLM pricing dataset cover per-token rates in more depth.

Compare Cursor Ultra vs Claude Code on Max with care. Cursor's $200 Ultra buys 50 times Plus usage of Cursor's models and no Claude tokens, while Claude's $100 Max includes Opus 5.5 up to its usage limits. Anthropic doesn't publish those limits in tokens, so no exact break-even exists.

#The Cursor Token Rate on Teams

On Cursor Teams and Enterprise, eligible third-party requests carry a Cursor Token Rate of $0.25 per million tokens on input, output, and cached tokens alike, including requests made with your own key. Models with a cache-read price strictly below $0.10 per million are exempt, so Haiku 5.5 is exempt and Sonnet 5.5, at exactly $0.10, is not. Agents reread context from cache on every turn, so a flat rate weighs most on the cheapest tokens. This script prices the example session on Anthropic's costs page, which is 94% cache reads:

token_rate.py
Python
# Token mix: the example session on Anthropic's Claude Code costs page.
SESSION = {"input": 1_200, "cache_write": 50_000, "cache_read": 940_000, "output": 5_300}
 
# Anthropic list prices per million tokens, read November 16, 2026.
PRICES = {
    "Opus 5.5": {"input": 4.00, "cache_write": 5.00, "cache_read": 0.20, "output": 20.00},
    "Sonnet 5.5": {"input": 2.00, "cache_write": 2.50, "cache_read": 0.10, "output": 10.00},
}
TOKEN_RATE = 0.25  # Cursor Teams and Enterprise, per million tokens of every type
 
for model, price in PRICES.items():
    base = sum(SESSION[k] * price[k] for k in SESSION) / 1e6
    exempt = price["cache_read"] < 0.10  # Cursor exempts cache reads strictly below $0.10
    rate = 0.0 if exempt else sum(SESSION.values()) * TOKEN_RATE / 1e6
    print(f"{model}: ${base:.3f} at list price, ${base + rate:.3f} on Cursor Teams (+{rate / base:.0%})")

It ran on Python 3.15.1 with no dependencies:

Text
Opus 5.5: $0.549 at list price, $0.798 on Cursor Teams (+45%)
Sonnet 5.5: $0.274 at list price, $0.524 on Cursor Teams (+91%)
One cache-heavy agent session costs $0.55 on Claude Opus 5.5 at list price and $0.80 on Cursor Teams; on Sonnet 5.5 it costs $0.27 and $0.52Cost of one session, in US dollars$0.00$0.20$0.40$0.60$0.80Opus 5.5, list priceAPI, Cursor individual$0.55Opus 5.5, Cursor Teamsplus $0.25 per million$0.80, +45%Sonnet 5.5, list priceAPI, Cursor individual$0.27Sonnet 5.5, Cursor Teamsplus $0.25 per million$0.52, +91%cache writecache readoutputinputtoken rate
Fig. 1On a session that is 94% cache reads, Cursor's $0.25 per million token rate adds 45% on Opus 5.5 and 91% on Sonnet 5.5, because it exceeds both models' cache-read prices.

The percentage depends on this mix. An output-heavy session pays a smaller share, Cursor's own caching may differ from Claude Code's, and individual Cursor plans don't pay the rate.

#Agent modes and permission controls

Both tools now start agents in a classifier-reviewed mode, where a second model checks risky actions so you approve fewer prompts. Claude Code's auto mode has been the default for interactive terminal and VS Code sessions since v2.1.283, with Sonnet 5 as the default classifier. Cursor's Auto-review has been the default since Cursor 3.6 on May 29, 2026; its classifier runs on Cursor's backend on Gemini 3.5 Flash Lite, with Haiku as a fallback.

NeedClaude CodeCursor
Explore without editsplan modeAsk mode
Plan before buildingplan mode, or opusplan to plan on Opus and build on SonnetPlan Mode, with questions and an editable plan file
Fewer prompts, with a safety checkauto modeAuto-review
Approve every actionManual (default)Allowlist, left empty
Run only approved toolsdontAskAllowlist
No checksbypassPermissions, for isolated containersRun Everything
Debug from runtime logsNo dedicated modeDebug Mode

Debug Mode has no Claude Code counterpart. The agent lists hypotheses, adds log statements that report to a local debug server, asks you to reproduce the bug, fixes the root cause, and removes the logging. Both tools keep checkpoints for rolling back an agent's edits.

Neither vendor treats its classifier as a security boundary. Anthropic says auto mode reduces prompts without guaranteeing safety, and Cursor says Auto-review can allow a call you would have blocked. Claude Code's deny rules hold in every mode, including bypassPermissions. Cursor's cloud agents skip Run Modes, because each runs on its own machine.

#Background and cloud agents

Cursor's cloud agents reach more git hosts, do more inside the VM, and since November 5 can host internal apps. Claude Code's cloud sessions are GitHub-first but can run on your own runners. Both count cloud work against the same plan usage as local work.

On your machine, Claude Code's agent view (claude agents) dispatches and tracks several background sessions from one screen. Cloud sessions run on Anthropic's infrastructure on Pro, Max, Ultra, and Team plans and Enterprise premium seats, with no separate VM charge. You start them from claude.ai/code, the mobile or desktop app, or claude --cloud, and pull one into the terminal with --teleport. Cloning and pull requests in Anthropic-hosted environments require GitHub. Cloud scheduled tasks, in research preview, run a saved prompt on a schedule, an API call, or a GitHub event, and self-hosted environments, in public beta on Team and Enterprise, run cloud sessions on runners inside your network.

Cursor's Cloud Agents, formerly Background Agents, run in isolated VMs with your repositories, dependencies, and secrets, on Premium and higher. You can start one from the desktop app, the web, iOS, Slack, Linear, a GitHub or Bitbucket comment, or the API, against GitHub, GitLab, Bitbucket Cloud, or Azure DevOps. They return pull requests with screenshots, videos, and logs, let you take over the VM's desktop, and can work across several repositories. Automations trigger them on schedules, source control events, or Slack, and Self-Hosted Machines move tool execution onto hardware you manage.

Cursor's Apps, announced November 5, let a cloud agent build and host an internal web app. Cursor provisions Postgres when needed, puts private apps behind Cursor sign-in, and runs secret, credential, .env, and source-map checks plus an AI security review before anything publishes. Team admins see every app and secret and can unpublish any app. Claude Code has no hosting feature. Cursor also made its Agent SDK generally available on October 20, for agents defined as code folders and triggered from git hosts, Slack, webhooks, or cron.

Claude Code runs the whole session on hardware you control in the terminal or a self-hosted environment; every Cursor mode builds prompts or runs the agent loop in Cursor's cloudHardware you controlVendor cloudClaude CodeTerminal, IDE, or Desktopsession and toolsClaude CodeCloud sessionsession and toolsClaude CodeSelf-hosted environment, betasession and toolsCursorEditor, Agents Window, or CLItoolsprompt buildingCursorCloud Agentagent and toolsCursorSelf-Hosted Machinetoolsagent loopModel calls go to the model provider in every row, or to a gateway you configure.
Fig. 2Claude Code can keep a whole session on hardware you control, in the terminal or a self-hosted environment. Every Cursor mode builds prompts or runs the agent loop in Cursor's cloud.

#Codebase context, rules, and MCP

Both tools find code by searching it on demand rather than through a cloud index, and both read AGENTS.md. Their rule formats and MCP config files still differ.

#Code search and context

Claude Code builds no index. Its agent loop calls file search, regex search, and read tools as it works, and code intelligence plugins add a language server for definitions and references. Anthropic suggests exposing any existing code search or RAG index through MCP.

Cursor's Instant Grep builds and queries its index on your machine. Cursor's docs say it uploads no file paths or code to build that index and stores no embeddings of your codebase for search. An Explore subagent runs broad searches in its own context, @ mentions attach files, terminals, and diffs, and .cursorignore adds exclusions beyond .gitignore. Ignore files don't stop terminal commands or MCP tools from reading those files.

#Rules and instruction files

PurposeClaude CodeCursor
Project instructionsCLAUDE.md, or AGENTS.md when no CLAUDE.md existsAGENTS.md, or .mdc files in .cursor/rules/
Rules for some paths.claude/rules/ with a paths field.mdc rules with globs
Personal and organization~/.claude/CLAUDE.md; managed CLAUDE.mdUser Rules; Team Rules on Teams and Enterprise
Skills.claude/skills/.cursor/skills/, .agents/skills/, and .claude/skills/
Subagents.claude/agents/.cursor/agents/ and .claude/agents/
Hooks.claude/settings.json.cursor/hooks.json, plus Claude Code hooks

Claude Code also writes auto memory to a MEMORY.md file, and the first 200 lines or 25KB load at each session start. A Cursor rule's frontmatter sets whether it always applies, applies to matching files, applies when its description matches the task, or applies only when you mention it.

#MCP servers

Both tools are full MCP clients. Claude Code adds servers with claude mcp add over HTTP, SSE, stdio, or WebSocket at local, project (.mcp.json), or user scope, can serve itself as an MCP server, and defers large tool sets with tool search. Cursor reads .cursor/mcp.json and ~/.cursor/mcp.json, installs from its marketplace in one click, and supports tools, prompts, resources, roots, elicitation, and MCP Apps. Cursor Enterprise admins get an MCP allowlist by command or URL pattern, and Claude Code admins get managed MCP settings. A server built with the MCP server guide works in both.

#Privacy, data retention, and admin controls

On business plans both vendors keep code out of training by default, and both reserve SCIM and audit logs for Enterprise.

#Training and retention

On Claude's Free, Pro, Max, and Ultra plans, a setting decides whether your Claude Code data trains future models, with 5-year retention if you allow it and 30 days if you don't. On Team, Enterprise, and the API, Anthropic doesn't train on Claude Code prompts or code and keeps data 30 days. Zero data retention is available to qualified Enterprise accounts once Anthropic enables it, and it turns off cloud sessions, Remote Control, and feedback uploads. Claude Code also keeps plaintext transcripts under ~/.claude/projects/ for 30 days.

Cursor keys data handling to Privacy Mode. With it on, code is never used for training and Cursor holds zero data retention agreements with its providers. With it off, Cursor's data use page, updated September 3, 2026, says Cursor may use codebase data, prompts, editor actions, and code snippets to train its models. Privacy Mode is on by default for team members, and admins can enforce it. Fable models need data retention approval in Cursor because Anthropic stores their inputs for harm reviews.

#Team admin features

Both vendors include SSO on their team plans.

  • Claude Team includes SSO, central billing, usage analytics, spend controls, and organization-wide skills. Claude Code adds server-managed settings that reach signed-in clients without MDM, model allowlists, and an analytics dashboard with GitHub contribution metrics.
  • Claude Enterprise adds SCIM, role-based access, audit logs, a compliance API, custom retention, IP allowlisting, per-user spend limits, and a HIPAA-ready offering.
  • Cursor Teams includes central billing, usage analytics, enforced Privacy Mode, Team Rules, a team marketplace, and SAML or OIDC SSO.
  • Cursor Enterprise adds SCIM, audit logs, service accounts, model access restrictions, a repository blocklist, MCP allowlists, auto-run, browser, and network controls, a switch that blocks personal API keys, and per-user limits on CLI and cloud agent access.

#Route both tools through an AI gateway

An AI gateway gives a team one place for provider keys, budgets, and request logs. Claude Code connects to an LLM gateway by base URL, usually ANTHROPIC_BASE_URL, and works with any gateway that exposes a supported API format. Cursor reaches a gateway only through its OpenAI base URL override, which covers less of the product.

Bifrost, an open-source AI gateway, has a setup guide for each tool. For Claude Code, point ANTHROPIC_BASE_URL at the gateway's /anthropic path and put a virtual key, which carries per-developer budgets and rate limits, in ANTHROPIC_AUTH_TOKEN. To keep billing on a Claude subscription, sign in with /login and send the virtual key in an x-bf-vk header instead. Bifrost adopts Claude Code's own session header for session affinity, so a session stays on one provider key and keeps its prompt cache. This configuration was not run for this article:

~/.claude/settings.json (not run here)
JSON
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://bifrost.example.com/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "sk-bf-your-virtual-key"
  }
}

Admins can make the gateway the only destination by setting allowedProviders to ["customEndpoint"] in managed settings with the base URL pinned, on Claude Code v2.1.285 or later. Some traffic still skips it: cloud sessions and Slack aren't part of a gateway deployment, and Remote Control turns off when the base URL points away from Anthropic.

For Cursor, paste the virtual key into the OpenAI API Key field, turn on Override OpenAI Base URL, enter the gateway URL ending in /cursor, and add models by provider/model name. Cursor sends every request through its own servers to build the final prompt, so the gateway needs a public URL and Cursor's backend still sees each prompt. Custom keys work with chat models only, so Tab stays on Cursor's models, and Cloud Agents use Cursor's curated model list. Own-key requests also fall outside Cursor's zero data retention, still pay the token rate on Teams, aren't available on Plus, and can be blocked by Enterprise admins.

Claude Code's CLI and IDE requests can all pass a gateway, while cloud sessions and Slack skip it; in Cursor only chat-model requests with a custom key reach it, after Cursor's backend, and Tab and Cloud Agents never doClaude CodeCLI and IDEANTHROPIC_BASE_URL setGatewayAnthropic-format endpointClaude modelsAnthropic or a cloudCloud sessions, Slackon AnthropicClaude modelsgateway not appliedskips the gatewayCursorAgent and Chatcustom OpenAI keyCursor backendbuilds the promptGatewaypublic base URLAny configured modelprovider/model nameTabautocompleteCursor backendCursor modelscustom keys not usedskips the gatewayCloud AgentsCursor's VMsCurated modelschosen in Cursorskips the gatewaygatewayCursor backendmodel provider
Fig. 3Claude Code's CLI and IDE requests can all pass a gateway. Cursor's base URL override reaches it only for chat-model requests with a custom key, after Cursor's backend builds them; Tab and Cloud Agents stay off it.

A gateway only sees traffic from tools configured to use it. Bifrost Edge routes and governs AI requests from the Cursor editor and the Claude Code CLI on employee machines, so the guardrails, budgets, and audit logs set at the gateway apply there; its supported applications page lists both. Edge requires the Enterprise gateway. The Bifrost details here describe the product as of November 16, 2026.

#Run Claude Code and Cursor together

Running both takes little setup: Cursor as the editor for Tab and Debug Mode, and Claude Code in Cursor's terminal or through Anthropic's Claude Code extension for Cursor. These steps keep the two agents on the same instructions:

  1. Put shared instructions in AGENTS.md. Cursor reads it directly, and Claude Code reads it when no CLAUDE.md exists, or through an @AGENTS.md import at the top of a CLAUDE.md.
  2. Keep skills in .claude/skills/ and subagents in .claude/agents/. Cursor loads both for compatibility, and a .cursor/ copy wins on a name clash.
  3. Write hooks once in .claude/settings.json. Cursor runs Claude Code hooks while its Third-Party Imports setting is on, the default, and its own hooks win when responses conflict.
  4. Configure MCP twice, in .mcp.json and .cursor/mcp.json, or register one gateway endpoint in both.
  5. Budget for two plans. Claude Max at $100 plus Cursor Premium at $30 is $130 a month, with Claude usage on Anthropic's plan and Grok or Composer usage in Cursor's pool.

#Which to pick, by situation

Choose by where you write code and which models you pay for. Each pick holds as of November 16, 2026, and the coding agents hub tracks changes.

  • Terminal-first developers who hand whole tasks to Claude: Claude Code on Max ($100) or Ultra ($200), which include Opus 5.5 up to usage limits.
  • Developers who write most code by hand: Cursor, for Tab and inline diffs.
  • Teams that switch between Claude, GPT, Gemini, and Grok: Cursor Premium or higher, accepting API list price and, on Teams, the token rate.
  • The cheapest workable plan: Cursor Plus at $8 if Grok 4.7 and Composer 2.5 cover your work, or Claude Pro at $20 if you need Claude.
  • Cloud agents on GitLab, Bitbucket, or Azure DevOps, or an agent that ships an internal app: Cursor.
  • Agent sessions that must run on hardware you control: Claude Code, in the terminal or a self-hosted environment.
  • Teams that need every model call to pass a gateway: Claude Code, since Cursor's base URL override leaves out Tab and Cloud Agents.
  • Teams split between editor users and terminal users: both, sharing AGENTS.md, .claude/skills/, and hooks.

#Questions

Is Claude Code better than Cursor?

Neither is better for everyone. As of November 16, 2026, Claude Code suits terminal-first developers who hand whole tasks to Claude models, with Opus 5.5 included in the $100 Max and $200 Ultra plans. Cursor suits developers who write code in an editor, want Tab autocomplete, or switch among Grok, Claude, GPT, and Gemini. The two can also run side by side on one repository.

Can you use Claude Code inside Cursor?

Yes. Anthropic publishes the Claude Code extension for Cursor as well as VS Code, and the CLI runs in Cursor's integrated terminal. The extension needs a paid Claude plan or a Claude Console account and bills there, not to Cursor. Cursor also loads Claude Code skills, subagents, and hooks from the .claude folder, so both agents can share one setup.

Is Cursor cheaper than Claude Code?

Cursor is cheaper when its own models cover your work: Plus costs $8 a month and Premium $30, for Grok 4.7 and Composer 2.5. For Claude models, Claude Code usually costs less, because Claude's $20 Pro, $100 Max, and $200 Ultra plans include Claude usage, while Cursor bills Claude at API list price on top of the plan. Prices were read November 16, 2026.

Does Cursor use Claude models?

Yes, on Premium and higher plans. Cursor offers Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.2 at Anthropic's API list price, paid from prepaid credit, plus a $0.25 per million token rate on Teams and Enterprise. Free and Plus include only Cursor's own models: Grok 4.7, 4.6, 4.5, and Composer 2.5. Premium and higher can also use your own Anthropic key.

What is the difference between Cursor CLI and Claude Code?

Both are terminal coding agents with interactive and print modes, a plan mode, and session resume. Cursor CLI, started with the agent command, can use any model Cursor offers and hands a conversation to a Cursor cloud agent with an ampersand prefix. Claude Code runs Claude models only but adds permission modes, hooks, plugins, agent view for background sessions, and fuller gateway support.

Can Cursor use a custom API base URL or AI gateway?

Partly. Cursor's Override OpenAI Base URL setting sends chat-model requests to a gateway, but every request passes through Cursor's servers first, so the gateway needs a public URL. Custom keys only work with chat models, so Tab stays on Cursor's own models, and Cloud Agents use Cursor's curated model list. Requests with your own key also fall outside Cursor's zero data retention.

Does Claude Code index my codebase?

No. Claude Code keeps no search index. It searches files on demand with its file search, regex search, and read tools, and code intelligence plugins add a language server for definitions and references. Cursor's Instant Grep keeps an index, but builds and queries it on your machine, and Cursor's docs say it stores no embeddings of your code for search.