The full guide
Codex alternatives, step by step
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.
What are the best alternatives to Codex?
| 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 |
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 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, 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”.
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, 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.
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, 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, 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.
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, 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.
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, 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, 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.
- 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.
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, OpenCode vs Codex and Cursor vs Codex.
Questions people ask
- What is the best alternative to Codex?
- It depends on what you want instead. Claude models: Claude Code, on Claude Pro at $20. Your ChatGPT plan plus other models: OpenCode, MIT, which signs in with ChatGPT Plus or Pro. An editor: Cursor. Already on GitHub Copilot: Copilot CLI, in every Copilot plan. Free: Antigravity CLI, $0 with a weekly quota.
- Is there a free alternative to Codex?
- Codex itself is included in ChatGPT Free. Beyond it: Antigravity CLI's Individual plan is $0 with a weekly quota; OpenCode ships free models that need no account; goose and Cline are free and open source on your own API key.
- Can I use my ChatGPT plan outside Codex?
- Yes, in OpenCode: its site says “Log in with ChatGPT Plus or Pro or GitHub Copilot.” Then the same agent can also run 200+ other providers.
- Can I use Codex and Claude Code together?
- Yes: they are separate programs. Caprock, free and Apache-2.0, starts both in tabs side by side, reads both histories, and shows Codex's 5-hour and weekly windows next to Claude's.
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
- 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
- Codex — overview: the ChatGPT desktop and mobile apps, web, Codex CLI, IDE extension, Codex Cloud, read 23 November 2026
- Codex — app: "Download ChatGPT for macOS, Windows, or Linux", read 23 November 2026
- Claude — pricing: Pro $20 ($17 yearly), Max $100, Ultra $200 ("No 5-hour limit" for verified accounts), read 23 November 2026
- Claude Code docs — advanced setup: macOS 13.0+, Windows 10 1809+, Linux; not on the free plan, read 23 November 2026
- Claude Code on GitHub — LICENSE.md: "All rights reserved", read 23 November 2026
- DeepSeek docs — Claude Code on DeepSeek's Anthropic-compatible API, read 23 November 2026
- Kimi docs — Claude Code on Moonshot's Anthropic-compatible API, read 23 November 2026
- OpenCode — home: ChatGPT Plus or Pro or GitHub Copilot sign-in, 200+ providers, free models with no account, read 23 November 2026
- OpenCode docs — Go: $10/month, Go Plus $40/month, read 23 November 2026
- OpenCode on GitHub — README (install, desktop app beta); MIT, release v1.19.6 (17 November 2026), read 23 November 2026
- Cursor — pricing: Free, Plus $8 ("Only Grok models"), Premium $30, Super $100, Ultra $200, read 23 November 2026
- Cursor — download: macOS, Windows, Linux, read 23 November 2026
- Cursor docs — CLI overview: the agent command, read 23 November 2026
- 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
- GitHub docs — installing Copilot CLI: Windows, macOS, Linux; npm, WinGet, Homebrew, read 23 November 2026
- GitHub Copilot CLI on GitHub — GitHub Copilot CLI License, release v1.0.114 (18 November 2026), read 23 November 2026
- Google Antigravity — pricing: Individual $0, "Baseline agent quota refreshed weekly", models per plan, read 23 November 2026
- Google Antigravity — download: desktop app on macOS 13+, Windows 10+, Linux; the CLI and its install commands, read 23 November 2026
- Gemini CLI on GitHub — Apache-2.0; free individual access moved to Antigravity CLI on June 18, 2026, read 23 November 2026
- 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
- Cline on GitHub — Apache-2.0, release v4.1.27 (21 November 2026), read 23 November 2026
- Caprock README — OpenCode, Codex and DeepSeek Harness: Codex sessions from ~/.codex, list-price cost, Codex's plan windows; Continue in… (v0.191.0)
- Caprock source — the agents New agent starts (internal/agents/binaries.go)
- Caprock docs — installing the app: macOS, Windows and Linux x64 (docs/install-app.md)
Try it
The record of every coding agent you run, the sessions it did not start included. Free, open source; nothing leaves your machine.
Caprock is a desktop app: it installs on your computer, not your phone.
Or email yourself the link:
macOS, Windows and Linux. Your phone pairs with it by QR code. Install options →
Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.
Windows 10 22H2 or later, x64. Windows may ask once whether to run it: click More info, then Run anyway.
Paste it into Claude Code, Codex or any coding agent.
See what it says ▾
Install the Caprock desktop app for me. It is open source (Apache-2.0), a local app for my coding agents: https://github.com/dspv/caprock What the install does and how to remove it: https://github.com/dspv/caprock/blob/master/docs/install-agent.md Run the install script for my system: https://caprock.dev/mac.sh, /win.ps1 or /linux.sh. Read it before you run it if you like. Leave my Claude Code settings alone; the app asks me itself. Tell me when it's open.
Or run it yourself:
Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app
Or run it yourself:
Paste in PowerShell: it installs Caprock for you and opens it.
Or run it yourself:
Paste in a terminal: it installs Caprock for you, no sudo. Or download the AppImage