# OpenCode vs Cursor (now Grok Build)

_OpenCode is a free, MIT-licensed agent for almost any model. Cursor, renamed Grok Build, is a paid editor and agent built around SpaceXSI's Grok models._

OpenCode is a terminal [coding agent](/learn/concepts/ai-engineering/coding-agents) with a desktop app and a web app. 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, run as `grok`. Facts on this page were checked against each tool's own site and docs as of December 4, 2026.

## Decision Table

| | OpenCode | Cursor (Grok Build) |
| --- | --- | --- |
| License | MIT | Proprietary |
| Price | Free. You pay your provider, or OpenCode Go at $10 per month | Free tier with limited agent requests. Plus $8, Premium $30 per month |
| Models | Any provider in the models.dev catalog, ChatGPT and GitHub Copilot sign-in, local models through Ollama | Grok 4.7 and Composer 2.5 on every plan. Anthropic, Google and OpenAI models from Premium up, at API list price |
| Starting point | A terminal, desktop or web session in a directory | The Grok Build desktop app, with the editor and the Agents Window |
| Default safety | No OS sandbox. Every action allowed except reading `.env` files | Auto-review: allowlisted calls run, shell commands go to a sandbox, the rest to a classifier |
| Best for | People who switch models, run local models or want source they can fork | People who want an editor and agent in one app, plus cloud agents |

## At a Glance

| | OpenCode | Cursor (Grok Build) |
| --- | --- | --- |
| Surfaces | Terminal UI, desktop app, web app | Desktop app with the editor and Agents Window, `grok` Terminal UI, Cloud Agents |
| Pricing | Free client. OpenCode Go $10 and Go Plus $40 per month | Free, Plus $8, Premium $30, Super $100, Ultra $200 per month. Teams and Enterprise plans |
| Your own API keys | Yes, for any supported provider | Not on Plus |
| Permissions | Ordered `allow`, `ask` and `deny` rules per action and resource | Agents Window: Auto-review, Allowlist, Run Everything. Terminal UI: Ask, Auto, Always-approve |
| Sandbox | None. Shell commands run with your user's full access | Sandbox for shell commands, configured with `sandbox.json` |
| Project instructions | `AGENTS.md`, falling back to `CLAUDE.md` | `.cursor/rules`, `AGENTS.md` |
| Skills and extensions | Skills, plugins, custom agents, MCP | Skills, plugins, hooks, subagents, MCP |
| Headless and CI | `opencode run` | `grok -p`. Scripts that call the old `agent` command keep working |

## Models and Cost

OpenCode itself is free. It reads its provider list from models.dev, and you connect a provider with an API key or a sign-in. A ChatGPT Plus or Pro plan and a GitHub Copilot account both work. OpenCode Go is an optional $10 subscription to a curated list of models tested for agentic coding, and Go Plus at $40 raises the limits.

Grok Build's $8 Plus plan 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 such as Claude Opus 5.5, Gemini 4 Carbon and GPT-6.2 Sol. Those bill at API list price from prepaid credit, on top of the plan.

If you want Claude or GPT models, OpenCode lets you pay the provider directly with no plan in between. If Grok and Composer cover your work, Grok Build Plus is $8 with no separate token bill. [Best LLM for Coding](./best-llms-for-coding-agents.mdx) compares the models and their prices.

## Editor or Terminal

Grok Build keeps the editor and the agent in one window. The rename announcement says the IDE, agent sessions and third-party models work as before. The rewritten Agents Window runs several agents and shows their changes for review. Cloud Agents work on a branch on a cloud machine and keep going while your laptop is closed.

OpenCode has no editor. You run it in any terminal, including the one inside Grok Build, and review its changes in your own editor or with `git diff`. Its desktop and web apps give the same agent a window of its own.

## Safety Defaults

OpenCode's `build` agent allows every action by default, including access outside the workspace. Only reading `.env` files asks first. Shell commands run with your user's filesystem, process and network access. Add `deny` and `ask` rules before you leave it unattended, or run it in a [cloud sandbox](./sandbox-providers-for-coding-agents.mdx).

Grok Build's docs recommend Auto-review. Allowlisted calls run at once, other shell commands run in a sandbox when they can, and anything else goes to a classifier on the Grok Build backend. The classifier runs on the Grok Build backend and can read files on your machine to judge a call.

## When to Pick Which

- **Pick OpenCode** if you want a free agent, any model including local ones, MIT source code, or a terminal workflow with your current editor.
- **Pick Cursor (Grok Build)** if you want the editor and agent in one app, a sandbox and classifier by default, or cloud agents.
- **Pick both** if you use Grok Build as your editor. Run `opencode` in its terminal for models your plan does not include.

## Alternatives

- **Claude Code:** Anthropic's agent, with editor extensions and an optional sandbox. See [OpenCode vs Claude Code](./opencode-vs-claude-code.mdx) and [Cursor vs Claude Code](./cursor-vs-claude-code.mdx).
- **Codex:** OpenAI's Apache 2.0 agent, included in ChatGPT plans. See [Codex vs OpenCode](./codex-vs-opencode.mdx) and [Codex vs Cursor](./codex-vs-cursor.mdx).
- **Cline:** an Apache 2.0 agent for many providers that runs inside VS Code and Cursor. See [Cursor vs Cline](./cursor-vs-cline.mdx) and [OpenCode vs Cline](./opencode-vs-cline.mdx).

## Running Several Agents at Once

Agents that share one checkout overwrite each other's changes. Give each its own [git worktree](/learn/concepts/git/git-worktrees), or run each in its own Treq [workspace](/docs/concepts/workspaces) and review the results as a stack.

## Sources

Checked December 4, 2026:

- [OpenCode Go](https://opencode.ai/go), [OpenCode providers](https://opencode.ai/docs/providers/), [Permissions](https://opencode.ai/docs/permissions/), [Agents](https://opencode.ai/docs/agents/), [Instructions](https://opencode.ai/docs/instructions/), [CLI](https://opencode.ai/docs/cli/)
- [Cursor is now Grok Build](https://forum.cursor.com/t/cursor-is-now-grok-build/179623), [Grok pricing](https://grok.com/pricing), [Grok Build models and pricing](https://docs.grok.com/build/agents-window/models-and-pricing), [Run modes](https://docs.grok.com/build/agents-window/agent/security/run-modes), [Terminal UI permissions](https://docs.grok.com/build/features/permissions), [Cloud Agents](https://docs.grok.com/build/agents-window/guides/cloud-agents)

## Next Steps

- [Best Coding Agent CLIs](./best-coding-agent-clis.mdx): every current terminal agent in one table
- [Best Open-Weight Coding Models](./best-open-weight-coding-models.mdx): models to run through OpenCode
- [Best Tools for Running AI Coding Agents in Parallel](./best-parallel-agent-tools.mdx): apps that manage several agents
