Skip to main content

Codex vs Cursor (now Grok Build)

Codex is OpenAI's agent for OpenAI models, included in every ChatGPT plan. Cursor, renamed Grok Build, is an editor and terminal agent built around SpaceXSI's Grok models.

Codex and Cursor solve the same job from different starting points. Codex is a coding agent that runs in a terminal, an IDE extension, the ChatGPT desktop app and the cloud. Cursor is a desktop editor with an agent built in. On November 30, 2026, Cursor became Grok Build, and its terminal product is now the Grok Build TUI. Facts on this page were checked against each vendor's own site and docs as of December 4, 2026.

Decision Table​

CodexCursor (Grok Build)
Entry priceIncluded in ChatGPT Free. Go is $8 and Plus is $20 per monthFree tier with limited agent requests. Plus is $8 per month
Starting pointA prompt in a directory, from the CLI, IDE extension, desktop app or cloudThe Grok Build desktop app, with the editor and the Agents Window
ModelsOpenAI models only, such as GPT-6.2 Astra and GPT-6.2 SolGrok 4.7 and Composer 2.5 on every plan. Anthropic, Google and OpenAI models from Premium up, billed at API list price
Default safetySandbox on, writes limited to the workspaceAuto-review: allowlisted calls run, shell commands go to a sandbox, the rest to a classifier
Open sourceThe openai/codex CLI is Apache 2.0No
Best forPeople who already pay for ChatGPT and want a terminal agentPeople who want an editor and agent in one app, or many model vendors

At a Glance​

CodexCursor (Grok Build)
SurfacesCodex CLI, IDE extension, ChatGPT desktop and mobile apps, ChatGPT on the web, Codex CloudDesktop app with the editor and Agents Window, the grok Terminal UI, Cloud Agents
PricingChatGPT Free, Go $8, Plus $20, Pro from $100, Business $25 per user billed monthly. Or an API key at API pricesFree, Plus $8, Premium $30, Super $100, Ultra $200 per month. Teams and Enterprise plans
ModelsGPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna and older GPT-6 models. Custom providers that speak the Responses APIGrok 4.7, 4.6, 4.5 and Composer 2.5 included. Claude, Gemini and GPT models on Premium and above
PermissionsSandbox modes read-only, workspace-write, danger-full-access. Approval policies on-request or neverAgents Window: Auto-review, Allowlist, Run Everything. Terminal UI: Ask, Auto, Always-approve
SandboxSeatbelt on macOS, native sandbox on Windows, bubblewrap on Linux and WSL2Shell commands sandboxed in Auto-review, configured with sandbox.json
Project instructionsAGENTS.md.cursor/rules, AGENTS.md
Headless and CIcodex execgrok -p. Scripts that call the old agent command keep working

Editor or Agent​

Cursor puts the agent inside the editor. You read diffs in the window you write code in, and the Agents Window runs and reviews several agents from one place. The rename did not change that: the announcement says the IDE, agent sessions and third-party models work as before.

Codex starts from the agent. You give it a task in the CLI, the desktop app or the cloud, and you review the result in your own editor. The Codex IDE extension runs in VS Code, Cursor and Windsurf, and Xcode and JetBrains IDEs have their own integrations. You can run Codex inside Grok Build and keep both.

Pricing and Models​

Codex comes with every ChatGPT plan. Free and the $8 Go plan cover light tasks. Plus at $20 adds Codex on the web, the CLI, the IDE extension and cloud code review. Pro costs $100, $200 or $500 per month. With an API key you pay API prices, and cloud features such as GitHub code review are not included.

Grok Build's Plus plan at $8 includes Grok 4.7, 4.6, 4.5 and Composer 2.5, and does not allow your own API keys. Premium at $30 adds cloud agents and third-party models from Anthropic, Google and OpenAI. Those models bill at API list price from prepaid credit, on top of the plan.

If you want GPT-6.2 models, Codex includes them in the ChatGPT plan. Grok Build lists GPT-6.2 Astra and GPT-6.2 Sol as third-party models, so they cost extra there and need Premium or above. Best LLM for Coding compares the models and their API prices.

Safety Defaults​

Codex sandboxes commands by default. In workspace-write mode it edits files in the workspace and runs routine commands, and pauses when it needs to go further. On Linux and WSL2 you install bubblewrap first.

Grok Build's docs recommend Auto-review. Allowlisted calls run at once, other shell commands run in a sandbox when they can, and the rest go to a classifier on the Grok Build backend. The Terminal UI has its own modes and starts in Auto when that feature is available.

When to Pick Which​

  • Pick Codex if you already pay for ChatGPT, want an open source CLI, want OpenAI models without extra billing, or want to keep your current editor.
  • Pick Cursor (Grok Build) if you want the editor and the agent in one app, a choice of model vendors, or cloud agents that open pull requests while your laptop is closed.
  • Pick both if you like the Grok Build editor but want Codex's agent. Install the Codex extension in Grok Build or run codex in its terminal.

Alternatives​

Best Coding Agent CLIs covers every current terminal agent in one table.

Running Several Agents at Once​

Two agents that edit one checkout overwrite each other's uncommitted changes. Give each agent its own git worktree, or run each in its own Treq workspace and review the results as a stack.

Sources​

Checked December 4, 2026:

Next Steps​