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

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.

Dmitriy Solodukha · Updated · 7 min read

Checked against Caprock v0.191.0

  1. Claude models, on a flat plan Claude Code Pro $20; not open source.
  2. Keep your ChatGPT plan, add any other model OpenCode MIT; ChatGPT Plus or Pro sign-in.
  3. An editor with the agent inside Cursor Plus $8 (Grok only); Premium $30.
  4. You already pay for GitHub Copilot GitHub Copilot CLI In every Copilot plan.
  5. Free, no subscription needed, with Gemini and Claude models Antigravity CLI $0 Individual, weekly quota.
  6. Open source, a desktop app, any provider goose Apache-2.0; 85+ providers.
  7. Codex and the others side by side, with usage Caprock Not an agent: it runs and records the ones you have.
From each maker's own site, docs, pricing page and repository, read 23 November 2026.

The tool you have

What Codex does, and why people look elsewhere

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.

What Codex does well

  • 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, by OpenAI's own pages

  • 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.

learn.chatgpt.com/docs, /docs/pricing and /docs/app, and github.com/openai/codex, read 23 November 2026.

Side by side · read 23 November 2026

Codex and six alternatives, side by side

Price, licence, where it runs and which models, from each maker's own pages, read 23 November 2026. All but Caprock are agents; Caprock runs them.

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.

Alternative 1 of 7

Claude Code

Anthropic's coding agent for the terminal, editors and desktop · Not open source; Claude Pro $20 a month ($17 billed yearly), Max $100, Ultra $200, or an API key

Pick it for: Claude models on a flat plan, with Anthropic's own agent.

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

What it does well

  • 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”.
  1. 1

    Install on macOS, Linux or WSL

Alternative 2 of 7

OpenCode

Open-source coding agent for any model · MIT; free models with no account; Go $10 a month, Go Plus $40

Pick it for: Keeping your ChatGPT plan and adding every other model beside it.

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

What it does well

  • “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.
  1. 1

    Install

Alternative 3 of 7

Cursor

AI code editor with its own agent, and a CLI · Free, limited; Plus $8 a month; Premium $30; Super $100; Ultra $200

Pick it for: The agent inside an editor rather than a terminal.

cursor.com · cursor.com/pricing and cursor.com/download, read 23 November 2026

What it does well

  • 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.

Alternative 4 of 7

GitHub Copilot CLI

GitHub's coding agent in the terminal · In every Copilot plan: Free; Pro $10 a month, Pro+ $39, Max $100

Pick it for: You already pay for GitHub Copilot, or want Copilot in the editor too.

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

What it does well

  • “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.
  1. 1

    Install

Alternative 5 of 7

Antigravity CLI

Google's agent: a desktop app and a CLI · Individual $0 with a weekly quota; higher limits with Google AI Pro or Ultra

Pick it for: A free agent with Gemini and Claude models, no subscription needed.

antigravity.google · antigravity.google/pricing and /download, and github.com/google-gemini/gemini-cli, read 23 November 2026

What it does well

  • 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.
  1. 1

    Install on macOS or Linux

Alternative 6 of 7

goose

Open-source agent with a desktop app and a CLI · Apache-2.0, free

Pick it for: An open-source desktop app as well as a CLI, on whichever provider you have.

github.com/aaif-goose/goose · github.com/aaif-goose/goose (release v1.60.2, 20 November 2026), read 23 November 2026

What it does well

  • “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.

Alternative 7 of 7

Caprock

Desktop app for coding agents; not an agent · Apache-2.0, free; optional Premium, $30 a year or $100 once

Pick it for: Trying an alternative without leaving Codex: both side by side, one history, one usage view.

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

What it does well

  • 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.

Decide

Which one to pick

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

Which Codex alternative fits which need, read 23 November 2026
If you want Use
Codex does what you need and the plan's limits fit Stay on Codex
Claude models on a flat plan Claude Code
Your ChatGPT plan plus any other model, open source OpenCode
An AI editor rather than a terminal agent Cursor
You already pay for GitHub Copilot GitHub Copilot CLI
Free, no subscription needed Antigravity CLI
Open source, a desktop app, any provider goose
Codex and an alternative side by side, with usage per project Caprock

What Caprock does not do

  • An agent or a model of its own: it starts and records Codex, Claude Code, OpenCode and the rest.
  • Run GitHub Copilot CLI, Antigravity or goose.
  • Write Codex's config: it reads the transcripts; a session it starts gets per-run flags only.

Free, open source, on your machine

Keep Codex, try the rest beside it

Free and open source, on macOS, Windows and Linux. Install the app; Codex, Claude Code and OpenCode sessions show up together with their usage.

Install Caprock ↓

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?

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 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

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 →

Download on the App StoreDownload on the App Store

On an iPhone, pair it with the app.

Download for Mac

Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.

Download for Windows

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:

curl -fsSL https://caprock.dev/mac.sh | sh

Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app

Or run it yourself:

irm https://caprock.dev/win.ps1 | iex

Paste in PowerShell: it installs Caprock for you and opens it.

Or run it yourself:

curl -fsSL https://caprock.dev/linux.sh | sh

Paste in a terminal: it installs Caprock for you, no sudo. Or download the AppImage