Codex vs Cursor
OpenAI's coding agent and the AI editor SpaceX renamed Grok Build on 30 November 2026, compared on what decides a team's choice once agents work unattended: the machine each runs on, which repositories it can reach, where work starts and what lands in review.
Facts checked against each vendor’s documentation on .
The short answer
First, the name: on 30 November 2026 Cursor became the Grok Build desktop app, after SpaceX's acquisition of the company in August. The editor, agent sessions and Cloud Agents carry on as before, and the docs have moved to docs.grok.com; the visible change for teams is that from 7 December you tag @Build instead of @Cursor in Slack, GitHub, Linear and Jira. This page calls it Cursor, because that's the name most people still search for.
On code quality there's no lasting winner: it moves with every model release, and the two aren't exclusive: Codex has an extension that runs inside Cursor's editor. What differs is how each one works once nobody is watching. Codex Cloud builds and tests its own environment from your repositories, reaches private services over Tailscale and cloud accounts over OIDC, and keeps secrets out of the VM behind a proxy. Cursor's Cloud Agents clone from GitHub, GitLab, Bitbucket Cloud and Azure DevOps, run multi-repo environments, start from Slack, Teams, Jira, Linear, GitHub and an API, and hand back pull requests with screenshots and videos of how the agent checked its work.
Codex and Cursor side by side
| Feature | Codex | Cursor |
|---|---|---|
| What it is | OpenAI's coding agent: a CLI, an IDE extension for VS Code and compatible editors (Cursor and Windsurf among them), a desktop app, and Codex Cloud. | An AI code editor with an agent built in, now the Grok Build desktop app, plus a terminal agent and Cloud Agents that run on its own machines. |
| Models | OpenAI models. Sign in with a ChatGPT plan or use an API key. | Its own models plus third-party models. Cloud Agents use a curated selection, and you can choose the context window size on supported models. |
| Running it in the cloud | Codex Cloud tasks, started from the web, the desktop app (Work in › Cloud) or mobile. | Cloud Agents (formerly Background Agents), started from cursor.com/agents, by choosing Cloud in the desktop app, from the iOS app, or through the API. |
| The cloud machine | A VM per task. OpenAI lists 2 vCPUs, 8 GiB memory and 8 GiB disk on Plus, and 4 vCPUs, 16 GiB and 32 GiB disk on Pro, Business and Enterprise, with larger VMs on request for Enterprise. | An isolated VM per agent. The default size isn't published; check with Cursor if your builds or tests need more. |
| Environment setup | Codex inspects your repositories, installs and tests the setup itself, records an install script and a start skill, and you publish the result. | Agent-led setup that installs and verifies the environment itself, a saved snapshot, or a Dockerfile in .cursor/environment.json. Builds prepare the machine in the background. |
| Sharing a setup | Publish an environment and share it with your workspace (Enterprise). Each person supplies their own personal secrets when a shared setup asks for them. | Saved environments for you or your team, or the committed .cursor/environment.json. Self-Hosted Machines move tool execution to hardware you manage. |
| Git hosts | GitHub.com, with GitLab.com in beta. Cloud environments don't support self-hosted GitHub Enterprise Server. | GitHub (Cloud and Enterprise Server), GitLab (Cloud and Self-Hosted), Bitbucket Cloud and Azure DevOps. |
| Several repositories | An environment can check out several repositories, and a running task can be asked to clone another one it has access to. | Multi-repo environments clone several repositories into one machine, and the agent opens a pull request in each repo it changes. |
| Network access | All public internet, or restricted to a package-manager preset plus domains you add. Private services over a Tailscale VPN, including databases and other TCP services. | Internet access by default. Allow all, default domains plus an allowlist, or allowlist only, set per user, saved environment or team. Private services over Tailscale or Cloudflare Tunnel. |
| Credentials | Environment variables, or network secrets the proxy substitutes on HTTPS so the raw value never enters the VM. OIDC gives tasks short-lived AWS and Google Cloud credentials. | Secrets load as environment variables; Runtime Secrets are redacted from the transcript and commits, Build Secrets reach only the Docker build. OIDC tokens for AWS, GCP, Azure, Vault and other verifiers. |
| Slack and chat | Ask @ChatGPT in Slack or Microsoft Teams, in Enterprise workspaces with cloud delegation turned on. | @Cursor in Slack (@Build from 7 December), plus Microsoft Teams and Jira. Agents started there run under a team-owned service account by default. |
| Linear | Assign an issue to Codex or mention @Codex; it runs as a cloud task and posts progress back to the issue. | Delegate an issue to the app (still listed as Cursor in Linear) or mention @Cursor in a comment (@Build from 7 December); follow-up comments steer the running agent. |
| GitHub | @codex review on pull requests, and the openai/codex-action workflow, which runs codex exec in your CI. | Comment @cursor on a pull request or issue (@build from 7 December). Bugbot reviews pull requests. |
| Repo instructions | AGENTS.md. Skills stored in the repository are available in cloud tasks. | AGENTS.md, Cursor rules, and command hooks in .cursor/hooks.json. MCP servers configured for your team. |
| What comes back | A diff and test results to review in the task, then a commit or pull request. | A pull request with screenshots, videos and logs of how the agent checked its work, and a remote desktop you can take over to try the change. |
| Price | Cloud tasks come with ChatGPT plans. Check OpenAI's Codex pricing page for current plans and usage limits. | Cloud Agents need a plan that includes them and bill at the chosen model's rate. Check the current pricing page for plans. |
The rename, and what it changes for a team
SpaceX completed its acquisition of Cursor in August 2026 and on 30 November brought it under the Grok Build name: the Cursor editor is now the Grok Build desktop app, and Grok Build's terminal app now runs Cursor's agent harness. The announcement says the IDE, agent sessions and third-party models work as they did before, and the Cloud Agent documentation describes the same features under the new name.
Two things are worth doing now if your team uses it. Update any runbooks, Slack habits and automations that tag @Cursor: from 7 December the mention is @Build in Slack, GitHub, Linear and Jira, while command-line and API automations that call agent keep working as written. And re-read the plan, data and model terms with your new account, since the company behind them has changed; that's a question for your contract, not for a comparison table.
An agent or an editor
On a laptop these are different kinds of tool. Codex is an agent you reach from wherever you work: the terminal, an extension in VS Code-style editors, a desktop app or the web. Cursor is the editor itself, with the agent beside your code. They aren't exclusive: the Codex extension installs in Cursor, so plenty of engineers use Codex inside Cursor's editor.
For a team that wants agents to work without someone watching, the laptop experience matters less. Both run tasks on their own machines in the cloud and hand back work to review. The trade-offs of that move are covered in cloud vs local agent environments.
Building the environment
Both now lean on the agent to set itself up. Codex Cloud inspects your repositories, installs dependencies, tests the workflow, and records what worked as an install script and a start skill; you review its report and publish. New tasks start from the published filesystem, and a background refresh keeps repositories current without rerunning installation.
Cursor offers agent-led setup too, where you watch it install and verify everything before the environment is saved, or you can commit a Dockerfile and install script in .cursor/environment.json. Either way it runs the install as a Build in the background so agents start from a machine that's ready. The goal on both sides is an agent that can install, build and test without asking, which is what dependency preloading and toolchain parity are about.
Where your code lives
This can settle the question first. Codex Cloud works with GitHub.com, lists GitLab.com as beta, and doesn't support self-hosted GitHub Enterprise Server. Cursor's Cloud Agents work with GitHub (including Enterprise Server), GitLab (including self-hosted), Bitbucket Cloud and Azure DevOps, and Enterprise teams can reach private source control over AWS PrivateLink or Cloudflare Tunnel.
Both handle more than one repository. A Codex environment can check out several repositories, and a running task can clone another it has access to. Cursor's multi-repo environments put several repositories in one machine and open a pull request in each one the agent changes. The site's guide to repo access for cloud coding agents covers the permissions each needs.
Network access and credentials
They start from opposite defaults. A Codex environment either has all public internet or is restricted to a package-manager preset plus the domains you add. Cursor's agents have internet access by default, and you narrow it to the default domains plus an allowlist, or an allowlist only, per user, saved environment or team. If your agents touch anything sensitive, set Cursor's allowlist before the first run. The site's guide to network access controls covers what to allow.
Secrets differ in where they live. Codex can keep a credential outside the VM entirely: programs see a placeholder, and the proxy substitutes the real value on HTTPS requests to the domains you allow. Cursor loads secrets into the machine as environment variables and redacts Runtime Secrets from the transcript and commits, while Build Secrets reach only the Docker build. Both mint short-lived OIDC credentials instead of storing cloud keys, and both reach private services over Tailscale; Cursor also documents Cloudflare Tunnel. More on scoping: environment variable scoping across agent runs.
Starting work from Slack, Linear and GitHub
Both take work from where it's written. Codex takes Linear issues assigned to it or mentions of @Codex, reviews pull requests with @codex review, and in Enterprise workspaces with cloud delegation on, takes work from Slack or Teams through @ChatGPT. OpenAI says the older Codex Cloud experience still runs Code Review and the Linear and GitHub integrations and that it plans to retire it, so check which environment those integrations use before you set them up.
Cursor's triggers cover Slack, Microsoft Teams, Jira, Linear, GitHub and an API, and agents started from shared channels run under a team service account so teammates can steer the same run. Remember the mention changes to @Build on 7 December. On GitHub, Cursor's Bugbot reviews pull requests, and Codex also runs in GitHub Actions. More on each path: triggering coding agents from Slack, connecting coding agents to Linear and GitHub Actions integration.
What comes back, and how to review it
Codex keeps the task, its diff and its test results together, so a reviewer can ask for changes in the same task before anything is committed, and a task's saved VM state stays recoverable for up to seven days after it was last used. Cursor opens a pull request with screenshots, videos and logs showing how the agent checked its work, and lets a reviewer take over the agent's remote desktop to try the change without checking out the branch. Whichever you use, make the pull request carry what the reviewer needs: what was asked, what ran and what passed. Trigger interfaces and PR delivery contracts goes into what to require.
Which one fits which team
Plenty of teams run both. If you're choosing, these are the questions that usually decide it:
- Code on Bitbucket, Azure DevOps, self-hosted GitLab or GitHub Enterprise Server: Cursor's Cloud Agents work with those today; Codex Cloud doesn't.
- Work that crosses several repositories and should come back as a pull request in each: Cursor's multi-repo environments do that directly.
- A team that wants credentials never to enter the agent's machine: Codex's network secrets keep the raw value behind the proxy.
- Work that starts in Jira: Cursor has a native trigger. Linear and Slack: both do, with Codex's Slack route limited to Enterprise workspaces.
- A team already paying for ChatGPT that wants OpenAI's models end to end: Codex. A team that wants to switch models per task inside one editor: Cursor.
Running both without two workflows
Picking one isn't required. Keep one AGENTS.md at the repo root (both read it), keep setup in scripts the repository owns rather than in each vendor's settings, and send both agents' output through the same pull request review. The site's multi-agent routing guide goes task class by task class, and per-task VM isolation for Cursor and Codex weighs the isolation each gives. Platforms that run several agents in the same kind of environment exist for this: Replicas, for one, runs Claude Code, Codex and other agents each in an isolated VM, starts them from Slack, Linear or GitHub, and returns pull requests. If Claude Code is also on your shortlist, see Claude Code vs Codex and Claude Code vs Cursor.
Check these before you choose
Plans, prices and limits change faster than this page. Confirm these with each vendor for your own team:
- Current prices and usage limits, on OpenAI's and Grok Build's pricing pages: both change often, and Cloud Agents bill at the chosen model's rate.
- Which plan includes what you need: Cursor's docs say Cloud Agents aren't on its Free or Plus plans, and Codex in Slack and shared environments need an Enterprise workspace.
- Where your code lives: confirm your git host and any self-hosted instance against each vendor's current docs.
- Whether the agent can reach every registry, service and database your tests need, from inside its environment.
- Each vendor's data retention and training terms for your plan, including any change to Cursor's terms after the move to Grok Build.
- Every Slack, Linear, GitHub and Jira habit or automation that tags @Cursor, before the switch to @Build on 7 December.
Sources
- Codex Cloud environments (OpenAI)
- Codex IDE extension (OpenAI)
- Use Codex in Linear (OpenAI)
- Review GitHub pull requests with Codex (OpenAI)
- Codex GitHub Action (OpenAI)
- Cursor is now Grok Build (SpaceXSI)
- Cloud Agents (Grok Build docs)
- Cloud environment setup (Grok Build docs)
- Cloud Agent security and network (Grok Build docs)
- Self-Hosted Machines (Grok Build docs)
- Linear integration (Grok Build docs)
- GitHub integration and Bugbot (Grok Build docs)
Go deeper on Hands Off Development
- Per-Task VM Isolation for Cursor and Codex Evaluated Against Real Engineering Threat Models
Sandbox escapes show why microVMs matter more than OS-level isolation for coding agents.
- Multi-Agent Routing on a Single Cloud Platform When Claude Code Codex Cursor and OpenCode Each Own Different Task Classes
A task-by-task guide to which coding agent fits which job.
- Headless Agent Execution Pipelines That Deliver Pull Requests From Cursor and Claude Code Without Human Babysitting
How Claude Code and Cursor ship unattended PRs through triggers, sandboxes, and review.
- Cloud vs Local Agent Environments for Engineering Teams
Laptops can't isolate, parallelize, or reproduce agent work at team scale.
- Repo Access Configuration for Cloud Coding Agents
How to scope tokens, secrets, and sandboxes for autonomous agents.
- Network Access Controls for Sandboxed Agent Environments
Agent sandboxes leak through the network, and scoped egress allowlists close the gaps.
- Connecting Coding Agents to Linear for Task Automation
Linear's coding sessions turn issues into agent tasks with PR review.
- Why Shared CI Runners Contaminate Cursor and OpenCode Agent Jobs and How Per-Task VMs Fix It
Fresh VMs per task cut off the shared state and credentials that patches miss.