Other coding agents

AI coding agents compared: Claude Code, Codex, Cursor

3 min read

Short: pick Claude Code if you live in the terminal and want deep Anthropic-model agents that also reach into your IDE, desktop and web; pick Cursor if you want the model inside an editing surface; pick Codex CLI if you are in the OpenAI ecosystem and want an open-source terminal agent. Need to swap models freely? OpenCode is the model-agnostic choice. All of these are agents that read your repo, edit files and run commands.

1. The comparison table

ToolSurfaceModel / providerMCPOpen sourceCost
Claude CodeTerminal + IDE/desktop/webAnthropic Claude (3rd-party in CLI)YesNoPlan or API key
Codex CLITerminal (+ IDE ext)OpenAI (ChatGPT or API)YesYes, Apache-2.0Plan or API key
Copilot CLITerminalGitHub models + bring-your-ownYesNoCopilot plan
CursorIDE (AI editor)Many (Anthropic, OpenAI, Google, xAI)YesNoPlan or API key
OpenCodeTerminalModel-agnostic (75+ providers)YesYesFree app, bring your own key
WindsurfIDE (now Devin Desktop)Multiple modelsYesNoPlan

Every tool here speaks MCP, so the real split is terminal versus editor and how tied you are to one provider.

2. Terminal agents vs IDE agents

Terminal agents (Claude Code, Codex CLI, Copilot CLI, OpenCode) run in your shell: they grep, run tests, read the output and loop, staying editor-agnostic. IDE agents (Cursor, Windsurf) put the model inside the editing surface with tab completions and inline edits. Claude Code blurs the line by shipping IDE, desktop and web surfaces too; see Claude Code vs Cursor.

3. Model lock-in and open source

Codex CLI is tied to OpenAI, Claude Code to Anthropic (with third-party providers in the CLI), Gemini CLI to Google. Copilot CLI defaults to GitHub-hosted models but accepts an OpenAI-compatible, Azure or Anthropic endpoint. OpenCode and Aider are model-agnostic and open source; Cursor mixes providers but is closed. To choose a model, see pick an AI model.

4. Current churn to know

Two things moved in 2026. Windsurf was renamed Devin Desktop by Cognition. And Google moved unpaid Gemini CLI users to Antigravity CLI, per its GitHub repo.

5. Pick one and start

Read the matching first-steps guide: Codex CLI, Copilot CLI, Cursor or OpenCode.

Verify it worked

Source: Claude Code overview.

Open the full interactive version (with copy buttons) ↗

← All guides