# Codex alternatives: 6 coding agents, compared on price, limits and models

*Codex alternatives: Claude Code, OpenCode, Cursor, GitHub Copilot CLI, Antigravity CLI and goose. Price, limits and models from each maker, November 2026.*

Dmitriy Solodukha, checked 2026-11-23 · https://caprock.dev/guides/codex-alternatives/

The Codex alternatives as of 23 November 2026: Claude Code, Anthropic's agent, on Claude Pro at $20; OpenCode (MIT), which can sign in with your ChatGPT Plus or Pro plan and run 200+ other providers; Cursor, an editor with its own agent and CLI; GitHub Copilot, whose every plan includes Copilot CLI; Antigravity CLI, Google's, free with a weekly quota; and goose (Apache-2.0). Caprock is not an agent: it runs Codex beside them and reads Codex's usage.

**In short**
- **Claude instead of GPT:** Claude Code, on Claude Pro at $20 or higher.
- **Keep your ChatGPT plan:** OpenCode (MIT) signs in with ChatGPT Plus or Pro and runs 200+ other providers.
- **Free:** Antigravity CLI ($0, weekly quota), OpenCode's free models, goose on your own key.
- **Not an agent:** Caprock runs Codex beside them and shows Codex's 5-hour and weekly windows.
- **Read 23 November 2026** on each maker's own site, docs and repository.

## What are the best alternatives to Codex?

*Codex and its alternatives, from each maker's own pages, read 23 November 2026.*

| Tool | What it is | Price for one person | Open source | Runs on | Models |
| --- | --- | --- | --- | --- | --- |
| Codex | OpenAI's agent: CLI, IDE extension, cloud, ChatGPT app | In every ChatGPT plan: Free $0, Go $8, Plus $20, Pro from $100 | CLI: yes, Apache-2.0 | macOS, Linux, Windows | OpenAI; local models through --oss; other providers in its config |
| Claude Code | Anthropic's agent: CLI, IDE extensions, desktop app | Pro $20 a month ($17 yearly), Max $100, Ultra $200; not on Free | No (“All rights reserved”) | macOS 13+, Windows 10 1809+, Linux | Claude |
| OpenCode | Open-source agent for any model | Free, with free models; Go $10 a month; or your ChatGPT Plus or Pro sign-in | Yes, MIT | Terminal; desktop app in beta (macOS, Windows, Linux) | 200+ providers, OpenAI's included |
| Cursor | AI code editor with its own agent and a CLI | Free; Plus $8 (Grok models only); Premium $30; Ultra $200 | No | macOS, Windows, Linux | Grok on every plan; others from Premium at API list price |
| GitHub Copilot CLI | GitHub's agent in the terminal, with Copilot in editors | In every Copilot plan: Free; Pro $10, Pro+ $39, Max $100 | No (GitHub's own licence) | macOS, Windows, Linux | Auto selection on Free; more on paid plans |
| Antigravity CLI | Google's agent: a desktop app and a CLI | Individual $0 with a weekly quota; more with Google AI Pro or Ultra | No licence on its pages | macOS 13+, Windows 10+, Linux | Gemini, Claude Sonnet and Opus 4.6, GPT-OSS-120b on Individual |
| goose | Open-source agent with a desktop app and a CLI | Free; your own provider | Yes, Apache-2.0 | macOS, Linux, Windows | 85+ providers |
| Caprock | Not an agent: a desktop app that runs agents in tabs and records every session | Free; optional Premium $30 a year | Yes, Apache-2.0 | macOS; Windows and Linux (x64) | Starts Codex, Claude Code, OpenCode, Gemini CLI, Cursor's CLI, Hermes Agent, Grok; reads Codex's sessions and plan windows |

*A cell says what the maker documents; where its pages say nothing, the cell does not guess. “Free” means the agent; the model is paid separately unless a plan includes it.*

## What Codex does well

OpenAI's coding agent: Codex CLI in the terminal (“Lightweight coding agent that runs in your terminal”, its repository says), the Codex IDE extension, Codex Cloud and the ChatGPT desktop app.

- Included in every ChatGPT plan: “ChatGPT Work and Codex are included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan.”
- Codex CLI is open source, Apache-2.0, on macOS, Linux and Windows.
- “Pro plans currently have no five-hour limit”; Pro is $100, $200 or $500 a month.

## Why people look for a Codex alternative

- Made for OpenAI's models; local models through `--oss` (Ollama or LM Studio), and other providers set up in its config.
- For Plus, OpenAI gives estimates of local messages per five-hour period, and “Weekly limits may also apply.”
- The pricing page gives no five-hour or weekly figures for Free and Go.

Before switching: `/status` in Codex CLI shows how much of each window is left, and [how to check Codex usage](https://caprock.dev/guides/check-codex-usage/) covers the dashboard.

## Claude Code: Anthropic's coding agent for the terminal, editors and desktop

Claude models on a flat plan, with Anthropic's own agent. Not open source; Claude Pro $20 a month ($17 billed yearly), Max $100, Ultra $200, or an API key. [code.claude.com/docs/en/overview](https://code.claude.com/docs/en/overview), claude.com/pricing, code.claude.com/docs/en/setup and github.com/anthropics/claude-code, read 23 November 2026.

- On macOS 13+, Windows 10 1809+ and Linux; in VS Code, JetBrains and the Claude desktop app.
- Ultra has “No 5-hour limit” for verified accounts.
- Another vendor's model through an Anthropic-compatible endpoint: DeepSeek and Moonshot (Kimi) publish the settings.

**Limits:**

- “The free claude.ai plan does not include Claude Code access.”
- Pro and Max run on a 5-hour and a weekly cycle.
- Not open source: its LICENSE.md reads “All rights reserved”.

```bash
curl -fsSL https://claude.ai/install.sh | bash
```

## OpenCode: Open-source coding agent for any model

Keeping your ChatGPT plan and adding every other model beside it. MIT; free models with no account; Go $10 a month, Go Plus $40. [opencode.ai](https://opencode.ai), opencode.ai, opencode.ai/docs/go and github.com/anomalyco/opencode (README; MIT; release v1.19.6, 17 November 2026), read 23 November 2026.

- “Log in with ChatGPT Plus or Pro or GitHub Copilot.”
- “The open source coding agent for any model”: “bring any of 200+ providers.”
- “OpenCode comes with a set of free models. No account needed.”

**Limits:**

- The desktop app is marked beta in its README.
- You choose and pay for the model; its free models may be free only for a limited time.

```bash
curl -fsSL https://opencode.ai/v2/install | bash
```

## Cursor: AI code editor with its own agent, and a CLI

The agent inside an editor rather than a terminal. Free, limited; Plus $8 a month; Premium $30; Super $100; Ultra $200. [cursor.com](https://cursor.com), cursor.com/pricing and cursor.com/download, read 23 November 2026.

- An editor for macOS, Windows and Linux, with an agent and a CLI, `agent`.
- Premium adds third-party models in Cursor at API list price.

**Limits:**

- Plus: “Only Grok models are available on this plan.”
- Not open source.

## GitHub Copilot CLI: GitHub's coding agent in the terminal

You already pay for GitHub Copilot, or want Copilot in the editor too. In every Copilot plan: Free; Pro $10 a month, Pro+ $39, Max $100. [github.com/github/copilot-cli](https://github.com/github/copilot-cli), docs.github.com (Copilot plans; installing Copilot CLI) and github.com/github/copilot-cli (v1.0.114, 18 November 2026), read 23 November 2026.

- “All plans include Copilot CLI and the Copilot app.”
- On Windows, macOS and Linux: `npm install -g @github/copilot`, WinGet or Homebrew.

**Limits:**

- Free: “2000 completions per month”, auto model selection only, limited agent access.
- Under GitHub's own licence, not an open-source one.

```bash
npm install -g @github/copilot
```

## Antigravity CLI: Google's agent: a desktop app and a CLI

A free agent with Gemini and Claude models, no subscription needed. Individual $0 with a weekly quota; higher limits with Google AI Pro or Ultra. [antigravity.google](https://antigravity.google), antigravity.google/pricing and /download, and github.com/google-gemini/gemini-cli, read 23 November 2026.

- Individual, $0: “Baseline agent quota refreshed weekly”, the CLI included.
- Individual models: Gemini 3.8 Flash, Claude Sonnet 4.6, Claude Opus 4.6, GPT-OSS-120b; Google AI Pro adds Gemini 4 and Claude Sonnet and Opus 5.5.
- Desktop app on macOS 13+, Windows 10+ and Linux; the CLI on macOS, Linux and Windows.

**Limits:**

- No licence on its pages; not the open-source Gemini CLI, whose free individual access moved here on 18 June 2026.
- The page gives no figure for the weekly quota.

```bash
curl -fsSL https://antigravity.google/cli/install.sh | bash
```

## goose: Open-source agent with a desktop app and a CLI

An open-source desktop app as well as a CLI, on whichever provider you have. Apache-2.0, free. [github.com/aaif-goose/goose](https://github.com/aaif-goose/goose), github.com/aaif-goose/goose (release v1.60.2, 20 November 2026), read 23 November 2026.

- “Use the native desktop app on macOS, Linux, or Windows, or work from the terminal with the CLI.”
- It can “connect to over 85 providers, including Anthropic, OpenAI, Gemini, OpenRouter, and Amazon Bedrock.”

**Limits:**

- “goose is a general-purpose agent for coding, research, writing, automation, and data analysis”: not for code alone.
- You bring the model: a provider you pay, or a local one.

## Caprock: Desktop app for coding agents; not an agent

Trying an alternative without leaving Codex: both side by side, one history, one usage view. Apache-2.0, free; optional Premium, $30 a year or $100 once. [github.com/dspv/caprock](https://github.com/dspv/caprock), dspv/caprock at master (v0.191.0): README (OpenCode, Codex and DeepSeek Harness), internal/agents/binaries.go, read 23 November 2026.

- Starts Codex, Claude Code, OpenCode, Gemini CLI, Cursor's CLI, Hermes Agent and Grok in terminal tabs per project.
- Reads every Codex session under `~/.codex`, archived ones and those from before you installed it included, beside Claude Code and OpenCode in one projects list.
- Shows Codex's 5-hour and weekly windows as Codex last wrote them, under Claude's on the Cost screen; which windows appear depends on the plan.
- “Continue in…” starts any session again in another agent, with a summary you read first.

**Limits:**

- Not an agent and no models of its own: it runs and records the agents you have.
- Codex records tokens, not cost: Caprock prices them at OpenAI's list price, an estimate, not your plan's bill.
- It does not run GitHub Copilot CLI, Antigravity or goose.

## Also named in "Codex alternatives" lists

- **Cline** — Apache-2.0, an agent in VS Code with a CLI and a desktop app, on your own key: [Cline alternatives](https://caprock.dev/guides/cline-alternatives/).
- **Gemini CLI** — Apache-2.0, but free individual access moved to Antigravity CLI on 18 June 2026.
- **Claude Code alternatives** — the same question from the other side: [Claude Code alternatives](https://caprock.dev/guides/claude-code-alternatives/).

## Which Codex alternative to pick

Pick by what Codex does not give you. Several can run side by side, and OpenCode can keep using your ChatGPT plan.

- **Stay on Codex** — codex does what you need and the plan's limits fit.
- **Claude Code** — claude models on a flat plan.
- **OpenCode** — your ChatGPT plan plus any other model, open source.
- **Cursor** — an AI editor rather than a terminal agent.
- **GitHub Copilot CLI** — you already pay for GitHub Copilot.
- **Antigravity CLI** — free, no subscription needed.
- **goose** — open source, a desktop app, any provider.
- **Caprock** — codex and an alternative side by side, with usage per project.

Row by row: [Codex vs Claude Code](https://caprock.dev/guides/codex-vs-claude-code/), [OpenCode vs Codex](https://caprock.dev/guides/opencode-vs-codex/) and [Cursor vs Codex](https://caprock.dev/guides/cursor-vs-codex/).

## Sources

- [Codex on GitHub — repository description, install, --oss local models; Apache-2.0, release rust-v0.171.0 (20 November 2026), read 23 November 2026](https://github.com/openai/codex)
- [Codex — pricing: "ChatGPT Work and Codex are included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan"; Go $8, Plus $20, Pro $100/$200/$500; "Pro plans currently have no five-hour limit", read 23 November 2026](https://learn.chatgpt.com/docs/pricing)
- [Codex — overview: the ChatGPT desktop and mobile apps, web, Codex CLI, IDE extension, Codex Cloud, read 23 November 2026](https://learn.chatgpt.com/docs)
- [Codex — app: "Download ChatGPT for macOS, Windows, or Linux", read 23 November 2026](https://learn.chatgpt.com/docs/app)
- [Claude — pricing: Pro $20 ($17 yearly), Max $100, Ultra $200 ("No 5-hour limit" for verified accounts), read 23 November 2026](https://claude.com/pricing)
- [Claude Code docs — advanced setup: macOS 13.0+, Windows 10 1809+, Linux; not on the free plan, read 23 November 2026](https://code.claude.com/docs/en/setup)
- [Claude Code on GitHub — LICENSE.md: "All rights reserved", read 23 November 2026](https://github.com/anthropics/claude-code)
- [DeepSeek docs — Claude Code on DeepSeek's Anthropic-compatible API, read 23 November 2026](https://api-docs.deepseek.com/quick_start/agent_integrations/claude_code)
- [Kimi docs — Claude Code on Moonshot's Anthropic-compatible API, read 23 November 2026](https://platform.kimi.ai/docs/guide/claude-code-kimi)
- [OpenCode — home: ChatGPT Plus or Pro or GitHub Copilot sign-in, 200+ providers, free models with no account, read 23 November 2026](https://opencode.ai/)
- [OpenCode docs — Go: $10/month, Go Plus $40/month, read 23 November 2026](https://opencode.ai/docs/go/)
- [OpenCode on GitHub — README (install, desktop app beta); MIT, release v1.19.6 (17 November 2026), read 23 November 2026](https://github.com/anomalyco/opencode)
- [Cursor — pricing: Free, Plus $8 ("Only Grok models"), Premium $30, Super $100, Ultra $200, read 23 November 2026](https://cursor.com/pricing)
- [Cursor — download: macOS, Windows, Linux, read 23 November 2026](https://cursor.com/download)
- [Cursor docs — CLI overview: the agent command, read 23 November 2026](https://cursor.com/docs/cli/overview)
- [GitHub docs — Copilot plans: Free (2000 completions a month), Pro $10, Pro+ $39, Max $100; "All plans include Copilot CLI and the Copilot app", read 23 November 2026](https://docs.github.com/en/copilot/get-started/plans)
- [GitHub docs — installing Copilot CLI: Windows, macOS, Linux; npm, WinGet, Homebrew, read 23 November 2026](https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli)
- [GitHub Copilot CLI on GitHub — GitHub Copilot CLI License, release v1.0.114 (18 November 2026), read 23 November 2026](https://github.com/github/copilot-cli)
- [Google Antigravity — pricing: Individual $0, "Baseline agent quota refreshed weekly", models per plan, read 23 November 2026](https://antigravity.google/pricing)
- [Google Antigravity — download: desktop app on macOS 13+, Windows 10+, Linux; the CLI and its install commands, read 23 November 2026](https://antigravity.google/download)
- [Gemini CLI on GitHub — Apache-2.0; free individual access moved to Antigravity CLI on June 18, 2026, read 23 November 2026](https://github.com/google-gemini/gemini-cli)
- [goose on GitHub — README: desktop app and CLI on macOS, Linux, Windows, 85+ providers; Apache-2.0, release v1.60.2 (20 November 2026), read 23 November 2026](https://github.com/aaif-goose/goose)
- [Cline on GitHub — Apache-2.0, release v4.1.27 (21 November 2026), read 23 November 2026](https://github.com/cline/cline)
- [Caprock README — OpenCode, Codex and DeepSeek Harness: Codex sessions from ~/.codex, list-price cost, Codex's plan windows; Continue in… (v0.191.0)](https://github.com/dspv/caprock/blob/master/README.md#opencode-codex-and-deepseek-harness)
- [Caprock source — the agents New agent starts (internal/agents/binaries.go)](https://github.com/dspv/caprock/blob/master/internal/agents/binaries.go)
- [Caprock docs — installing the app: macOS, Windows and Linux x64 (docs/install-app.md)](https://github.com/dspv/caprock/blob/master/docs/install-app.md)
