Versus · AI tools

Cursor CLI vs Claude Code: two terminal agents, one of them under a new name

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • Claude Code if you want the deeper terminal agent with the bigger toolbox: CLAUDE.md project memory, hooks, subagents, GitHub Actions and GitLab CI, plus the same engine in VS Code, JetBrains, a desktop app and the web.
  • Cursor CLI if you want one cheap plan that runs models from several makers: cursor.com/cli now shows a "Cursor is now Grok Build" banner, the CLI installs as the grok command, and Grok's plans start at $8 a month (Plus).

Compared here

  • 01Claude Code
  • 02Cursor CLI (Grok Build)

Short answer

Pick Claude Code if you want the deeper terminal agent with the bigger toolbox: CLAUDE.md project memory, hooks, subagents, GitHub Actions and GitLab CI, plus the same engine in VS Code, JetBrains, a desktop app and the web. It comes with Claude Pro at $20 a month ($17 billed yearly). Pick Cursor CLI if you want one cheap plan that runs models from several makers: cursor.com/cli now shows a "Cursor is now Grok Build" banner, the CLI installs as the grok command, and Grok's plans start at $8 a month (Plus).

The biggest 2026 change: "Cursor CLI" is no longer a separate Cursor product you install from cursor.com. Its docs redirect to docs.grok.com, its install script lives on x.ai, and its models are billed through Grok plans, with third-party models charged separately from Premium up. Below: what each one is today, install, models, automation, prices, and who should pick which.

At a glance

From cursor.com/cli, docs.grok.com/build/overview, grok.com/pricing, code.claude.com/docs and claude.com/pricing, read 4 December 2026. Prices in US dollars as shown, before tax.
Cursor CLI (Grok Build)Claude Code
Command you rungrokclaude
Install (macOS/Linux)curl script from x.aicurl script from claude.ai, or Homebrew, apt, dnf, apk
WindowsPowerShell or WSLPowerShell, CMD, WSL or WinGet
Other surfacesCursor editor; GitHub Actions listed on the CLI pageVS Code, JetBrains, desktop app, web, mobile
ModelsGrok, Anthropic, OpenAI, Gemini, Cursor's Composer and moreClaude models; third-party cloud providers supported
Headless modegrok -pclaude -p
MCPYesYes
Project memory fileNot stated on the overview pageCLAUDE.md, or reads AGENTS.md
Cheapest paid planGrok Plus $8 a monthClaude Pro $20 a month, $17 yearly
Heaviest planGrok Ultra $200, 50x Plus usageClaude Ultra $200, 10x Pro weekly

Money first. We may earn a commission if you sign up through our links to Claude or Cursor. Neither link decides the verdict. If you only need one of these, pay for one; most people do not need both.

Every fact here comes from the vendors' own pages: cursor.com/cli, the Grok Build docs, Grok's pricing page, the Claude Code docs and Claude's pricing page, all read on 4 December 2026. We did not run our own benchmark. You will see third-party speed and score tables on page one of Google; we are not repeating numbers we cannot check.

First, what "Cursor CLI" means in December 2026

The demo on Cursor's CLI page still shows an agent command, and many older guides on page one were written for that. The install path you get today is different.

On 4 December 2026, cursor.com/cli shows a banner: "Cursor is now Grok Build." The install command on that page is curl -fsSL https://x.ai/cli/unified/install.sh | bash. Cursor's CLI docs address now redirects to docs.grok.com. And the Grok Build docs say the command you run is grok, updated with grok update.

So when people search "Cursor CLI vs Claude Code" now, the honest comparison is Grok Build's CLI vs Claude Code. The Cursor editor is still there, and its CLI page still sells model choice, but the billing and the binary come from Grok. Our longer Cursor vs Claude Code vs Codex page covers the editor side of this move.

Install and platforms

Cursor CLI (grok):

  • macOS and Linux: curl -fsSL https://x.ai/cli/unified/install.sh | bash
  • Windows: irm https://x.ai/cli/unified/install.ps1 | iex, and the docs say to use PowerShell or WSL.
  • macOS on Apple silicon or Intel. Linux on x86_64 or arm64 with glibc 2.28 or later. The docs say Alpine and other musl-based distributions are not supported.
  • Sign in through the browser by running grok, with grok login --device-auth over SSH, or with an XAI_API_KEY for CI.

Claude Code:

  • macOS, Linux and WSL: curl -fsSL https://claude.ai/install.sh | bash
  • Windows PowerShell: irm https://claude.ai/install.ps1 | iex, plus a CMD version and WinGet (winget install Anthropic.ClaudeCode).
  • Homebrew (brew install --cask claude-code), and apt, dnf or apk on Debian, Fedora, RHEL and Alpine.
  • Anthropic says native installs update themselves in the background; Homebrew and WinGet installs do not.
  • Git for Windows is recommended on native Windows so it can use Bash; otherwise it falls back to PowerShell.

Small but real: if you run Alpine containers, Claude Code lists an apk route and the grok docs say musl is not supported.

What each agent can do in the terminal

Both do the core job: read your project, edit files across the codebase, run shell commands, and talk to you in a chat at the prompt. Both support MCP servers for connecting outside tools, and both have a headless print mode for scripts: claude -p "..." and grok -p "...".

Where they differ is how much is documented around that core.

Claude Code's docs cover:

  • CLAUDE.md: a project file read at the start of every session for your coding rules. If your repo already has an AGENTS.md for other agents, Claude Code can read that instead.
  • Auto memory: it saves learnings across sessions on its own.
  • Skills: packaged workflows like /review-pr.
  • Hooks: shell commands that run before or after actions, such as formatting after each edit.
  • Subagents and background agents: several agents working on parts of a task, with a lead agent merging results.
  • Scheduling: cloud scheduled tasks that run with your computer off, desktop scheduled tasks and /loop.
  • Moving between surfaces: claude --teleport to pull a web session into the terminal, /desktop to continue in the desktop app, Remote Control from your phone.

The Grok Build overview page covers:

  • Modes: switch with Shift+Tab (the page does not name them).
  • Slash commands at the prompt and /usage to see your credit use in a session.
  • MCP servers, plugins and skills listed as features.
  • Custom models configured in ~/.grok/config.toml.
  • The cursor.com/cli page adds Shell Mode with "safety checks and output display", headless use "in scripts and automation workflows", and GitHub Actions for CI/CD.

The Grok overview did not mention project rules files or session resume, so we cannot tell you how those work today. If you rely on .cursor/rules from the old Cursor CLI, test your setup after the switch.

Models: one maker or many

This is the clearest split.

Cursor CLI sells choice. Its page says "Frontier models from Anthropic, OpenAI, Gemini, Cursor, and more," and the model picker it shows includes Auto, Grok 4.7, Opus 5.5, GPT-5.6 Sol High Fast, Fable 5.2 Max, Gemini 3.1 Pro and Composer 2.5. The catch is on Grok's pricing page: on Premium, Super and Ultra, third-party models are billed separately. Using Claude or GPT through Grok Build costs extra on top of the plan.

Claude Code runs Claude models. Anthropic's docs say the terminal CLI, VS Code and JetBrains also support third-party providers, linking to an integrations page we did not open; nothing on the overview suggests GPT or Gemini models. If you want GPT or Gemini in the same session, Claude Code is the wrong tool.

Bar-stool version: if you want to switch brains mid-week, Cursor CLI. If you have already decided Claude is your brain, buying it straight from Anthropic skips a middleman bill.

Price: what you actually pay

Grok plans (grok.com/pricing, USD before tax; yearly prices not shown):

  • Free: $0, "Limited Grok Build agent requests", no cloud agents.
  • Plus: $8 a month, Grok Build included in a shared usage pool.
  • Premium: $30 a month, 4x Plus usage, cloud agents and automations, AI code review, code and app hosting.
  • Super: $100 a month, 15x Plus usage.
  • Ultra: $200 a month, 50x Plus usage.

Claude plans (claude.com/pricing):

  • Free: no Claude Code.
  • Pro: $20 a month, or $17 a month billed yearly ($200 up front). Claude Code included.
  • Max: $100 a month, 5x Pro usage.
  • Ultra: $200 a month, 10x Pro usage per week.
  • Team: Standard seat $25 a month ($20 yearly), Premium seat $125 ($100 yearly) with 5x a standard seat's usage.

Neither vendor publishes the number of requests behind "1x". So "Ultra is 50x Plus" and "Ultra is 10x Pro" cannot be compared to each other. Do not let the bigger multiplier fool you.

If you are deciding between Claude tiers, our Claude Pro vs Max page shows how fast Claude Code eats the limit.

Who should pick which

Pick Claude Code if:

  • You want an agent that works the same in terminal, VS Code, JetBrains, desktop and browser.
  • You automate: CI reviews, scheduled jobs, hooks, subagents.
  • You are happy on Claude models and want one bill. Start with Claude Pro.

Pick Cursor CLI (Grok Build) if:

  • You want the cheapest paid start: $8 a month.
  • You like hopping between models from different makers and accept that non-Grok models cost extra from Premium up.
  • You already live in the Cursor editor. See Cursor.

Use both if: you like the Cursor editor and Claude's agent. Claude Code's docs include an "Install for Cursor" link for its extension, so Claude Code can run inside Cursor. You pay Anthropic for Claude Code and only pay Grok if you also use its agent.

Other terminal agents worth a look

If neither fits, there are good options: OpenAI's Codex CLI, Google's Gemini CLI and the open source OpenCode, which runs almost any model. We compare seven of them in terminal based AI coding assistants, and the open source route in Claude Code vs OpenCode. For the bigger picture, see our AI tools hub.

Questions people ask

Is Cursor CLI better than Claude Code?

Neither wins for everyone. Claude Code has more built-in automation: hooks, subagents, CLAUDE.md memory, GitHub Actions and GitLab CI, scheduled tasks. Cursor CLI, now the grok command, is cheaper to start at $8 a month and lets you pick models from several makers. Choose Claude Code for depth, Cursor CLI for price and model choice.

What happened to Cursor CLI?

As of 4 December 2026, cursor.com/cli shows a banner saying Cursor is now Grok Build. The install script points to x.ai, the CLI docs redirect to docs.grok.com, and the command is grok. Plans are sold on grok.com, from Free to Ultra. The Cursor page still lists models from Anthropic, OpenAI, Gemini and Cursor.

Can I use Claude models in Cursor CLI?

Yes, according to cursor.com/cli, which lists frontier models from Anthropic, OpenAI, Gemini, Cursor and more, with Opus 5.5 shown in the model picker. Grok's pricing page says third-party models are billed separately on Premium, Super and Ultra plans. If you mostly want Claude, paying Anthropic directly for Claude Code is the simpler route.

Is Claude Code free?

No. Claude's Free plan does not include Claude Code. You need Pro at $20 a month ($17 billed yearly), Max at $100, Ultra at $200, a Team seat, or an Anthropic Console account that pays per use through the API, per claude.com/pricing and the Claude Code docs.

Can I run Claude Code inside Cursor?

Yes. The Claude Code docs offer an Install for Cursor link for the Claude Code extension, alongside VS Code. So you can keep the Cursor editor you like and still run Claude Code inside it. You would pay Anthropic for Claude Code, and Grok only if you also use its agent.

Which is better for CI and scripts?

Both have a headless print mode: claude -p and grok -p. Claude Code's docs also cover GitHub Actions, GitLab CI/CD, automatic PR code review and cloud scheduled tasks. The Cursor CLI page lists GitHub Actions and headless use in scripts. For a team that lives in CI, Claude Code documents more of it today.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Cursor CLI page (Grok Build banner), checked 4 Dec 2026
  2. Grok Build docs: overview (cursor.com/docs/cli redirects here), checked 4 Dec 2026
  3. Grok pricing, checked 4 Dec 2026
  4. Claude Code docs: overview, checked 4 Dec 2026
  5. Claude pricing, checked 4 Dec 2026