A comparison of three agents that work from the terminal: two are tied to their model provider, and the third is open source and works with many providers.…
Claude Code, Codex and OpenCode: coding agents in the terminal
AI Tools Comparison Engine
A comparison of three agents that work from the terminal: two are tied to their model provider, and the third is open source and works with many providers. There is no absolute best choice; the choice follows the models you want and how you pay.
| Criterion | Claude CodeReviewed: 15 November 2026 | CodexReviewed: 15 November 2026 | OpenCodeReviewed: 15 November 2026 |
|---|---|---|---|
| Tool typeType | Terminal coding agent, IDE extension, Cloud agent | Terminal coding agent, IDE extension, Cloud agent | Terminal coding agent, Smart terminal, Other |
| DeveloperDeveloper | Anthropic | OpenAI | Anomaly (anomalyco; formerly under sst/opencode) |
| AI modelsAI models | Claude models (Anthropic), Third-party providers supported for Terminal CLI, VS Code and JetBrains (per docs) | OpenAI GPT-6 / GPT-6.1 family (e.g. GPT-6.1 Sol, GPT-6 Luna, GPT-6 Astra, GPT-6.1 Terra), Any OpenAI API model your API key can access | 200+ LLM providers via Models.dev, Claude, GPT, Gemini models, Local models, Existing subscriptions such as ChatGPT Plus/Pro and GitHub Copilot, OpenCode Go curated models |
| Operating systemsOperating systems | Windows, macOS, Linux, Browser | Windows, macOS, Linux, Browser | Windows, macOS, Linux, Browser |
| AutonomyAutonomy | It carries out multi-step tasks (reading, editing, running commands) with permission modes, and supports subagents and a non-interactive mode for automation. | It carries out tasks with configurable approval modes inside a sandbox, and runs in the background in the cloud. | A build agent that executes with full permissions, and a plan agent for analysis without changes. |
| MCP supportMCP | Yes | Yes | Yes |
| Skills supportSkills | Yes | Yes | Yes |
| SubagentsSubagents | Yes | Yes | Yes |
| Works locallyLocal | Yes | Yes | Yes |
| API connectivityAPI | Yes | Yes | Yes |
| LicenceLicense | Proprietary — closed source | Apache-2.0 (Codex CLI repo); cloud service proprietary — open source | MIT — open source |
| Free planFree tier | The free Claude plan does not include Claude Code; you can instead use an Anthropic Console (API) account with pay-as-you-go billing. | ChatGPT Free ($0 per month): gives access to the GPT-6 Luna model at standard speed in the desktop app, subject to the gradual rollout. | The software is free, and some free models are available without an account. |
| PricesPricing | Paid — Pro: $20 / per month (billed monthly); Max: $100 / per month; Ultra: $200 / per month; Team (Standard seat): $25 / per user per month (billed monthly); Team (Premium seat): $125 / per user per month (billed monthly); Enterprise: US$20 / per seat, billed annually | Free with paid plans — Go: $8 / per month; Plus: $20 / per month; Pro: From $100 / per month; Business: $20 / per user per month (2+ users); Enterprise & Edu: Contact sales; API key: API pricing / usage-based | Free with your own API key — Go: $10 / per month; Go Plus: $40 / per month; Go Teams: $20 / per member / month |
| DocumentationDocs | Official documentation | Official documentation | Official documentation |
| FeaturesFeatures | An agentic terminal interface that reads the codebase, edits files and runs commands • Multiple surfaces: the terminal, a VS Code/Cursor extension, a JetBrains plugin, a desktop app and the web (claude.ai/code) • MCP integration with external tools and data • CLAUDE.md memory, skills, hooks and subagents • A non-interactive mode (claude -p) and the Agent SDK for building custom agents | A terminal agent that edits files and runs local tools with configurable permissions and a sandbox • The codex exec command for scripts and CI, and the Codex SDK • MCP servers through codex mcp • Skills, plugins, subagents and AGENTS.md configuration • Reviewing uncommitted changes, commits or branches | An open-source coding agent with a terminal interface (TUI) • Provider-agnostic: more than 200 providers through Models.dev • Built-in agents: build (full permissions), plan (read-only) and a general subagent • MCP servers, plugins, custom agents, skills and custom commands • Running several agents in parallel on the same project |
| LimitationsLimitations | Requires a paid Claude subscription or an API (Console) account; not available on the free plan • Closed source • Linux support in the desktop app is in beta (Ubuntu/Debian) • Mainly tied to Claude models | Tied to OpenAI models • Per-5-hour-window and weekly usage limits on subscription plans • Using an API key does not include the cloud features (GitHub and Slack review) • Native Windows details are documented on separate Windows/WSL pages | Package managers on Windows are not supported (standalone executables are available) • Access to paid models is billed separately unless the free models or the Go plan are used • The desktop app is in beta |
Choosing by criterion
- If you want to run local models: Supported according to the documentation: OpenCode
- If cost is the most important criterion: Start with: Codex (Free with paid plans), OpenCode (Free with your own API key), and check the usage limits on each tool's page
- If you need open-source code that you can inspect or modify: Codex, OpenCode
There is no "absolute winner": each line above depends on a single criterion and is based on documented data only.
How to choose? (by the criterion that matters most to you)
| You want freedom to choose the provider or to run local models | OpenCode works with more than 200 providers through Models.dev and is open source. |
|---|---|
| You mainly use Claude models and need integration with GitHub Actions and GitLab CI | Claude Code supports this officially, with skills, hooks and subagents. |
| You have a ChatGPT subscription and want background cloud tasks and code review | Codex offers Codex Cloud and code review within the ChatGPT subscription. |
This guidance is based on specific criteria and the directory's data at review time; it is not a judgement that one tool is better than another overall.
Ready-made comparisons
Four agent-based development environments. They differ in subscription model and in how work is organised (specs, an agent dashboard, cloud agents).
Platforms that build apps from prompts in the browser. The main differences are the credit system, free-plan limits and hosting.
A comparison of assistants that work inside editors. Note that some are being discontinued for new subscribers.
Three open-source tools that work with your own keys or with local models. They differ in interface (editor or terminal) and in how they work.
Services that review pull requests automatically. The CodeRabbit data needs checking because its official pages were not read.
Libraries for building agents and multi-agent systems inside your applications. They differ in level of abstraction and in how tied they are to one provider.
Tools that turn Figma designs into code. The differences are in the supported outputs and in working on an existing codebase.
Tools that complement coding agents: static quality analysis, security scanning and analysis of production errors. They are not necessarily substitutes for one another.
Tools tied to mobile platforms: Android, iOS and Flutter.
