Grok Build vs Claude Code vs Codex: Which Terminal Coding Agent Wins in 2026

Three terminal coding agents, one verdict: what each really costs, where each breaks, and which to install. Real 2026 pricing, plus the new Grok Build.

Published Updated

Grok Build vs Claude Code vs Codex: Which Terminal Coding Agent Wins in 2026

Start with the terminal coding agent your subscription already includes. If you’re choosing from scratch, pick Claude Code for multi-file work you want to review and rewind, Codex CLI for explicit control over what runs locally, or Grok Build for limited free access and paid plans from $8 a month.

The verdict: use the one your subscription already includes

Start with a task from your own repository. Switch if you can name the part of the workflow your current agent makes harder, whether that’s undoing a multi-file edit, controlling network access or getting through a session without hitting a limit.

Plans, models and limits verified against xAI, Anthropic and OpenAI’s public documentation on November 27, 2026.

Agent and where it runsCurrent modelUS price to startLimit to watch
Grok Build · terminal, headless, or in apps that host it via the Agent Client ProtocolGrok 4.7Limited Free access. Plus is $8/monthPaid usage shares a weekly pool across Grok and Cursor
Claude Code · terminal, IDE, desktop and webClaude Opus 5.5 by default, subject to settings. Fable 5.2 is optionalPro is $20/month on monthly billingPro has five-hour and weekly limits shared with Claude
Codex CLI · terminal. Codex also has desktop, IDE and web clientsGPT-6.2 Sol for everyday coding, GPT-6.2 Astra for hard tasks on eligible setupsPlus is $20/month and explicitly includes the CLIPlus has a five-hour window and a weekly allowance. Usage varies by model and task

On November 19, 2026, xAI retired grok-build-0.1 from its API. The Grok Build getting-started guide shows Grok 4.7 in the terminal session header. If an old script pins the retired ID, use an available API model. The Grok 4.7 release notes list standard Grok 4.7 on the public API and reserve Grok 4.7 Fast for Cursor and Grok Build.

What a terminal coding agent does

A terminal coding agent works in your project directory. You describe a change, it reads the relevant files and project instructions, and it can edit code and run tests within its permissions. You review the diff, the record of what changed, before deciding what to keep.

That saves you from carrying snippets back and forth between chat and your editor. The tradeoff is that, depending on permissions, an agent can edit files and run commands before it pauses for you. Use a branch for anything you might want to undo.

Price: what each one costs to run

Start with the included subscription allowance if you already have one. Pay attention to how it resets and whether another tool shares it. API-key use is a separate billing route. The prices below are advertised US web prices.

Grok Build plans

Build has limited access on Free and is included on Plus and higher plans. xAI’s October 12, 2026 subscription announcement sets out the paid tiers and says existing SuperGrok, Cursor and X Premium customers can keep their current plans.

  • Free: $0/month with limited Grok Build access.
  • Plus: $8/month with the base paid usage pool.
  • Premium: $30/month with 4x Plus usage.
  • Super: $100/month with 15x Plus usage.
  • Ultra: $200/month with 50x Plus usage.
  • Teams: Premium at $30, Super at $100 and Ultra at $200 per user per month, with team administration.
  • Enterprise: Custom pricing with pooled usage.
  • API-key use: The standard Grok 4.7 API rate is $2 per million uncached input tokens and $6 per million output tokens, with higher rates above 200,000 prompt tokens. API usage is metered separately.

The subscription pool is shared across Grok and Cursor, refreshes weekly and supports top-ups. If you spent the morning in Cursor, check what’s left with /usage in Build before handing it a long refactor.

Claude Code plans

Anthropic’s pricing page includes Claude Code with Pro, Max, Ultra and the workplace plans. Claude Free omits it.

  • Pro: $20/month or $200 billed annually, which Anthropic displays as about $17/month. Five-hour and weekly limits apply.
  • Max: $100/month with 5x Pro usage every five hours and every week. Anthropic’s Max plan guide
  • Ultra: $200/month with 10x Pro’s weekly usage. Verified accounts have no five-hour cap. Anthropic’s Ultra plan guide
  • Team: Standard is $25/seat/month monthly or $20 billed annually. Premium is $125/seat/month monthly or $100 billed annually. Team starts at two members.
  • Enterprise: $20/seat/month billed annually with a 20-seat minimum, plus usage at API rates.
  • Education: Access is arranged through the institution. Claude for higher education
  • API-key use: An Anthropic Console account or supported provider is a separate metered route.

Claude chat and Claude Code draw from the same subscription pool. The model, task length and context affect how quickly it runs down. If you hit the limit, you can wait for the reset or add eligible usage credits. The monthly API credits that come with Max and Ultra are for API work and can’t fund Claude Code sessions. Anthropic’s Claude Code subscription guide

Codex plans

OpenAI’s Codex pricing and usage guide advertises GPT-6 Luna in the desktop app on Free and Go, subject to rollout. Plus is the first plan card that explicitly lists the CLI.

  • Free: $0/month, with GPT-6 Luna in the desktop app where available.
  • Go: $8/month, with GPT-6 Luna in the desktop app where available.
  • Plus: $20/month, including Codex CLI.
  • Pro: $100, $200 or $500 per month, all with Codex CLI. Pro $200 offers Ultrafast for GPT-6.2 Sol in Codex. Pro $500 offers Ultrafast for both GPT-6.2 models. OpenAI’s model launch and plan details
  • Business: From $25/user/month when billed monthly or $20/user/month when billed annually, with a two-user minimum. OpenAI’s Business seat guide describes the Standard and Premium usage allowances.
  • Enterprise and Edu: Contact sales. Codex access is subject to workspace controls.
  • API-key use: The CLI is supported with separate metered billing. Subscription cloud features require ChatGPT sign-in. OpenAI’s authentication guide

On Plus and Standard Business, OpenAI estimates 17 to 180 local messages with GPT-6.2 Sol or 6 to 50 with GPT-6.2 Astra in a five-hour window. Those ranges describe the same pool at different rates. A longer task or a cloud run can use more of it. Pro currently has no five-hour cap and still has an included allowance.

Codex already shares usage with ChatGPT Work. In its November 26 clarification, OpenAI said the December 2026 change brings a shared, token-based allowance across ChatGPT and Codex on Plus, Pro and Business as Work moves into ChatGPT. Instant chat stays outside the shared pool. Some accounts may see the change early. Once it reaches yours, check Settings → Usage for the combined balance and reset times. OpenAI’s shared-allowance notice · Codex usage limits and reset times

Grok Build: the low-cost entry with a complete toolkit

Grok Build is xAI’s terminal coding agent. It runs on Grok 4.7 and offers a limited Free tier. The faster serving option, Grok 4.7 Fast, is billed through your plan in Build or Cursor and is outside Build’s Free tier. xAI’s Grok 4.7 developer guide

Grok Build CLI launch page from xAI
Grok Build, xAI's terminal coding agent
  • Plan mode. On a change that touches several files, ask for a plan first. Project edits wait for your approval. You can comment on individual steps before approving. xAI’s modes and commands guide
  • Project setup. Build reads AGENTS.md and supports plugins, hooks, skills and MCP servers. MCP, the Model Context Protocol, gives the agent access to external tools and data sources.
  • Parallel worktrees. A worktree is a separate working copy of a Git repository. You can put parallel agents in separate worktrees so their edits don’t land in the same files. xAI’s worktree guide
  • Headless mode and ACP. grok -p runs without the interactive interface. Other apps can host the agent through the Agent Client Protocol.

Standard Grok 4.7 has a 500,000-token context window on the API, the amount of material the API model can take into account. For Build, read the context meter in your terminal session and check the plan allowance separately.

Who should reach for it: a cost-sensitive developer starting without a paid coding subscription, or someone who wants parallel worktrees and plugins. If you also use Cursor, the shared weekly allowance is the constraint to track.

Claude Code: the production default

Claude Code is the default pick for reviewable, multi-file work. It reads and edits repositories, runs tests and supports reusable project instructions, hooks, skills, MCP and subagents. Anthropic’s Claude Code overview

Claude Code product page from Anthropic
Claude Code, Anthropic's terminal agent

For a cross-file rename, ask for the affected call sites and tests, then review the diff. Claude Code’s /rewind can restore edits that its file tools tracked. A file touched only by a shell command, or an edit made by most subagent sessions, can survive that rewind. Keep a Git checkpoint too. Anthropic’s checkpointing guide

On November 23, 2026, Anthropic announced Claude Ship and began rolling out /ship. On a finished GitHub branch, the command can commit and push changes, open a pull request, review it and follow up on failing checks and review feedback. Review what you’re about to hand over before invoking it. The command draws on ordinary Claude Code usage. The repository-wide Claude Ship agents for Team and Enterprise have separate token-based billing, and branch rules still govern what merges. Anthropic’s Claude Ship announcement · How Claude Code /ship works

Who should reach for it: an engineer who values project rules and checkpoints while working across files, or a developer who wants help following up on a GitHub pull request. Keep your current agent if it already meets those review and test requirements.

If that choice depends on where you work, compare Claude Code with Cursor for an IDE workflow, GitHub Copilot for GitHub and editor integration, Devin for delegated work or OpenCode for a different terminal setup.

Codex CLI: the ChatGPT-native, sandbox-first pick

Codex CLI is OpenAI’s terminal agent and a sensible first choice if you already have eligible ChatGPT access. Its local sandbox governs where commands can write and whether they can reach the network. The approval policy determines when Codex asks for permission.

OpenAI Codex CLI documentation page
Codex CLI, OpenAI's terminal agent

With the documented local defaults, Codex can edit files and run commands inside the workspace, with network access off. A task that needs to fetch a dependency or write outside the workspace can require approval. Decide where those boundaries should be before you hand it a task. OpenAI’s sandbox and approval guide

  • Models. Choose GPT-6.2 Sol for everyday edits and GPT-6.2 Astra for a hard task like tracing a bug across services. Availability depends on plan and workspace settings. The CLI needs version 0.166.0 or later for either model. Use /model to see what your session can select. OpenAI’s current model guidance · OpenAI’s CLI requirements for GPT-6.2
  • Pinned GPT-5.5 settings. If a config or script still pins GPT-5.5 under ChatGPT sign-in, switch it to an available model. That retirement took effect October 14, 2026, for ChatGPT-authenticated Codex. API-key sessions follow separate API availability.
  • Automation and review. codex exec supports scripted runs, and /review gives you a dedicated pass over changes. The CLI accepts image inputs and supports MCP.
  • Cloud handoff. Submit a task to a configured Codex Cloud environment and apply the result locally when it’s ready. Cloud access depends on your plan and workspace. OpenAI’s Codex plan and client guide

Who should reach for it: a developer with eligible ChatGPT access, or one who wants to set explicit filesystem and network boundaries. If a repository needs external services or writes outside the workspace, budget time to configure those permissions.

Where each one hits a wall

The wall that matters is whichever one interrupts the work you do most. A small patch tells you more about that than a model name.

The upside
What it does well
4 points

  • An eligible subscription can cover the first trial without another purchase
  • Claude Code combines project instructions with checkpoints for multi-file work
  • Codex gives you configurable sandbox and approval settings
  • Grok Build offers limited Free access and a low paid entry
The downside
Where it falls short
3 points

  • Grok Build shares its weekly pool with Cursor on paid X Subscription plans
  • Claude Code shares usage with Claude, and checkpoints only cover tracked changes
  • Codex model access depends on your plan and workspace, and some work needs permission changes

Give the agent repository rules, keep a way back and review the patch. A change that passes the relevant tests is a better reason to keep using a tool than a long feature list.

Install all three and compare them on your repository

Use separate branches or working copies for the same bounded task. These are the documented macOS and Linux installation commands.

  1. Install Grok Build

    After installation, run grok in your project and follow the browser sign-in. xAI also documents a Windows PowerShell installer.

    Bash
    curl -fsSL https://x.ai/cli/install.sh | bash
  2. Install Codex CLI

    Run codex in your project and sign in with an eligible ChatGPT account or use API-key authentication. OpenAI also documents npm, Homebrew and Windows options.

    Bash
    curl -fsSL https://chatgpt.com/codex/install.sh | sh
  3. Install Claude Code

    Run claude in your project and authenticate with an eligible Claude account or a supported API billing route. Anthropic’s installation guide

    Bash
    curl -fsSL https://claude.ai/install.sh | bash
  4. Add project instructions

    Put framework conventions, test commands and protected paths in AGENTS.md. Grok Build and Codex support it. Claude Code also reads it when it finds neither CLAUDE.md nor CLAUDE.local.md in the working directory or above it. If you already use CLAUDE.md, import the shared rules with @AGENTS.md. Anthropic’s project instruction docs

Give each agent the same bug report and acceptance criteria. Compare the patch, test results, interruptions and allowance consumed.

Which to pick: the decision rules

  1. Already have eligible access? Use it first. Pay for another agent only when it solves a specific problem in your workflow.
  2. Need project instructions and checkpoints for multi-file work? Pick Claude Code. Keep Git for changes its rewind misses.
  3. Want explicit sandbox boundaries or already use ChatGPT? Start with Codex CLI and confirm the available models and permissions.
  4. Starting without a paid subscription? Try Grok Build on Free. Check the shared allowance before you upgrade.

This week, pick a small backlog issue, define what a passing result looks like and try the agent your plan covers. For a wider search, see the best AI coding assistants in 2026.

Is Claude Code still the best coding agent?

It’s the default here for project instructions and checkpoints across multiple files. Pick Codex if sandbox control matters more, or Grok Build if you want to start with limited free terminal access.

What are the big three coding agents in 2026?

This comparison covers Anthropic’s Claude Code, OpenAI’s Codex and xAI’s Grok Build. Each has a terminal client. Claude Code and Codex also have dedicated IDE and desktop options, and other apps can host Grok Build via the Agent Client Protocol.

Can you use Grok with Claude Code?

You can use Grok Build and Claude Code as separate tools on the same repository. Each uses its own access and model configuration. Use a separate branch or worktree for each tool if you compare their changes.

Is Grok better than Claude at coding?

Choose by the work you need to do. Grok Build’s free entry is good for a bounded trial, while Claude Code’s checkpoints make it a good fit for changes across files. Compare their patches on the same issue before drawing a conclusion about coding quality.

Does it cost extra to run these on top of my subscription?

Usage within your plan’s included allowance is covered by the subscription. Top-ups, purchased credits, API-key billing and some model choices can add charges. Claude Enterprise also separates seat pricing from usage.

Want the build-tooling calls without testing every release yourself? I break down which AI tools are actually worth your stack, with real pricing and the production gotchas, in a short weekly note. Subscribe to the newsletter.

Last Updated
Category
Build
Related Articles
LM Studio Bionic: What It Is and How to Start

LM Studio Bionic: What It Is and How to Start

How Bionic works alongside LM Studio, where its models run and how to start a coding or document project on your computer.Dec 4, 2026Build
OpenRouter Free Models: Which to Call and What the Limits Are

OpenRouter Free Models: Which to Call and What the Limits Are

Find a free OpenRouter model for your project, make an API call, check your remaining quota, and see which providers may retain or train on prompts.Dec 4, 2026Build
Vapi AI: What It Is, What It Costs and How to Start

Vapi AI: What It Is, What It Costs and How to Start

Learn how Vapi answers and places calls, connects to a calendar or n8n, and what it takes to set up a first phone assistant.Dec 4, 2026Build
Claude-Mem: What It Remembers and How to Use It

Claude-Mem: What It Remembers and How to Use It

See what claude-mem saves between Claude Code sessions, how to install and disable it, and which records can leave your machine.Dec 4, 2026Build
Amazon Bedrock: What It Is, What It Costs, and How to Start

Amazon Bedrock: What It Is, What It Costs, and How to Start

See which models Amazon Bedrock offers, what AWS bills for, and how to try a first request. Decide when to use Bedrock or the model maker’s own API.Dec 4, 2026Build
Claude Code MCP

Claude Code MCP

Connect a local or hosted MCP server to Claude Code, check sign-in, and choose between a shared .mcp.json and a claude.ai connector.Dec 3, 2026Build
Vercel Sandbox Desktop

Vercel Sandbox Desktop

Start a cloud desktop, watch an agent drive Chrome, or open Blender. See the exact commands, SDK example, and what a viewer link lets a teammate do.Dec 3, 2026Build
Claude Code REVIEW.md

Claude Code REVIEW.md

Where Claude Code reads REVIEW.md, what to put in it, and how to check your rules with a sample change. Includes a full web team example.Dec 3, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.