Claude Code alternatives: Codex, OpenCode, Pi, Copilot CLI and more
The terminal coding agents besides Claude Code as of November 2026: models and sign-ins, open source or not, prices, and which still run Claude.
The main terminal coding agents besides Claude Code, as of November 21, 2026: Codex CLI (OpenAI, open source, included with every ChatGPT plan from Free), OpenCode (open source, 200-plus providers, signs in with ChatGPT Plus or Pro or GitHub Copilot), Pi (open source and minimal, 15-plus providers), GitHub Copilot CLI (closed, on every Copilot plan from Free, with Claude, GPT and Gemini models), Antigravity CLI (Google’s, which took over free and Google AI Pro users from Gemini CLI in June 2026), Aider (open source, any model by API key), and Cursor’s CLI. Hermes Agent is an open-source personal agent rather than a coding agent, but works from the terminal on almost any model. If the reason you are leaving is Claude’s usage limits rather than Claude itself, several of these still run Claude models: by API key, through OpenRouter, on Copilot or Google AI Pro, or by driving your own installed Claude Code.
At a glance
Versions and prices as each maker published them on November 21, 2026; prices in US dollars a month.
| Agent | Source | Models and sign-in | Where you use it | What it costs |
|---|---|---|---|---|
Codex CLI 0.171.0 | Open, Apache-2.0 | OpenAI models on a ChatGPT plan or an API key; local models through Ollama or LM Studio | Terminal | Any ChatGPT plan: Free, Go $8, Plus $20, Pro from $100; or API prices |
OpenCode 2.3.2 | Open, MIT | 200-plus providers and local models; ChatGPT Plus or Pro, Copilot; your own Claude Code | Terminal, desktop app, mobile app | Free, plus the model; its own Go from $10 |
Pi 1.6.0 | Open, MIT | 15-plus providers, OpenRouter and Ollama among them; a subscription or key through /login | Terminal; print, JSON and RPC modes; an SDK | Free, plus the model |
GitHub Copilot CLI 1.0.114 | Closed | Copilot’s models, Claude Opus 5.5 and Sonnet 5.5 among them; or your own OpenAI, Anthropic or Ollama endpoint | Terminal on Linux, macOS, Windows | Copilot Free $0, Pro $10, Pro+ $39, Max $100 |
Antigravity CLI 1.5.12 | Not stated | A Google account, a Gemini API key or Google Cloud; Gemini models, and Claude on Google AI Pro | Terminal (agy) | Free with a weekly quota; Google AI Pro and Ultra; Business from $30 a seat |
Gemini CLI 0.70.0 | Open, Apache-2.0 | Gemini Code Assist licences, or legacy paid API and Vertex keys | Terminal | No free tier any more |
Aider 0.86.2 | Open, Apache-2.0 | Almost any model by API key, local ones included | Terminal | Free, plus the model |
Cursor CLI | Not stated | Cursor’s models; Claude, GPT and Gemini from Premium up | Terminal (agent), beside the Cursor editor | Free, Plus $8, Premium $30, Super $100, Ultra $200 |
Hermes Agent 0.23.3 | Open, MIT | Almost any provider: ChatGPT or Codex sign-in, OpenRouter, Nous Portal, API keys, local servers | Terminal, desktop app, messaging apps | Free, plus the model |
Claude Code itself, for the comparison: version 2.1.330, closed source, Claude models only, on any paid Claude plan from Pro at $20 or an Anthropic API key. Anthropic’s gateway docs say it “doesn’t support routing Claude Code to non-Claude models through any gateway,” so wanting GPT, Gemini or a local model means another agent rather than a setting.
Codex CLI
OpenAI’s Codex CLI is “a coding agent from OpenAI that runs locally on your computer,” licensed Apache-2.0. You run codex and choose Sign in with ChatGPT, or set it up with an API key. OpenAI’s pricing page says Codex is “included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan,” and an API key pays “based on API pricing.” Its --oss flag uses “a local open source model provider”, asking you to pick LM Studio or Ollama if you have not configured one.
npm install -g @openai/codex
codexCopiedWhat you give up: Claude models, and Claude Code’s own features, such as auto mode, where a classifier reviews each action in place of a prompt, and Remote Control from the Claude phone app. Which plan gives how much is in which ChatGPT plans include Codex, and a test of the two agents on the same three bugs is in Codex vs Claude Code.
OpenCode
OpenCode is an MIT-licensed coding agent with “200+ LLM providers through Models.dev, including local models.” You can “Log in with ChatGPT Plus or Pro or GitHub Copilot,” bring any provider’s key, use OpenCode’s own Go plan (“curated models from $10/month”), or start on its free models with no account. It comes as a terminal app, a desktop app and a mobile app.
npm install -g @opencode/cliCopiedWhat you give up: a sandbox, since its security policy says “OpenCode does not sandbox the agent,” and Claude Code’s built-in classifier and Remote Control. What you keep: Claude, if you want it, through an API key or its Claude Agent provider (below). The full side-by-side is OpenCode vs Claude Code.
Pi
Pi calls itself “a minimal, extensible agent harness that you can make your own”: MIT-licensed, “15+ providers, hundreds of models” (OpenRouter and Ollama among them), with /login inside Pi to connect a subscription or an API key. OpenAI lists Pi among the open-source apps that take Sign in with ChatGPT, where “App usage counts toward your existing plan limits.”
npm install -g --ignore-scripts @earendil-works/pi-coding-agentCopiedWhat you give up is deliberate: Pi’s home page lists “No sub-agents”, “No permission popups” and “No plan mode”, which you add with extensions if you want them. Pi vs Claude Code sets the two side by side.
GitHub Copilot CLI
GitHub’s Copilot CLI lets you “use Copilot directly from your terminal” on Linux, macOS and Windows, and needs an active Copilot subscription. GitHub’s plans page includes it on all four: Free ($0, “Free plan supports CLI and agent mode”), Pro ($10, with $15 of monthly credits), Pro+ ($39, $70) and Max ($100, $200), with credits “consumed based on the number of tokens processed.” GitHub’s model list marks Claude Opus 5.5 and Claude Sonnet 5.5 as available in the CLI, beside OpenAI’s and Google’s models; which ones you get depends on your plan. You switch with /model, and you can point it at your own OpenAI-compatible, Azure OpenAI or Anthropic endpoint, or a local model such as Ollama.
npm install -g @github/copilot
copilotCopiedWhat you give up: open source (its licence lets you install and run it, not modify it), and anything specific to Claude Code and the Claude plans.
Antigravity CLI and Gemini CLI
Google moved its consumer users off Gemini CLI. The Gemini CLI README now says “Free individual access and Google AI Pro / Ultra (Google One) moved to Antigravity CLI on June 18, 2026,” and that Gemini CLI is “Designed for Gemini Code Assist Standard / Enterprise licenses and Code Assist for GitHub on Google Cloud,” with no free tier. It stays open source under Apache 2.0, and its README says it is “Not tuned for the Gemini 4 series.”
The successor for individuals is Antigravity CLI, started with agy. It signs in with a Google account in the browser, or, over SSH, prints an authorization URL to open on your own computer and takes back a code. A Gemini API key also works, but only with modelProvider set to gemini in ~/.gemini/antigravity-cli/settings.json: “Only setting a GEMINI_API_KEY environment variable on its own has no effect.”
curl -fsSL https://antigravity.google/cli/install.sh | bash
agyCopiedGoogle’s pricing page offers it free with a weekly quota, on Gemini 3.8 Flash, Claude Sonnet 4.6, Claude Opus 4.6 and GPT-OSS-120b, with a note that those are to be removed on November 30, 2026. Google AI Pro adds “higher 5-hour refreshed quotas” and the Gemini 4 models, and lists Claude Sonnet 5.5 and Claude Opus 5.5 too; the page shows no price for Pro or Ultra. Its pages state no licence.
Aider
Aider is a terminal pair programmer under Apache-2.0 that “can connect to almost any LLM, including local models,” with your own API key. It has no plan of its own: you pay the provider.
python -m pip install aider-install
aider-installCopiedOne fact to weigh: its latest release on PyPI is 0.86.2, from February 12, 2026, nine months before this was written.
Cursor CLI
Cursor’s CLI runs its agent in the terminal as agent, interactively or in print mode with -p. It uses your Cursor plan: Free, Plus $8, Premium $30, Super $100 or Ultra $200 a month. Its models page says Claude, GPT and Gemini are available “On Premium and above” at the model’s API list price, and “Plus and Free don’t include third-party models,” which leaves Cursor’s own models on the cheaper plans.
curl https://cursor.com/install -fsS | bash
agentCopiedHermes Agent
Nous Research’s Hermes Agent (MIT, v0.23.3 as of November 19, 2026) is a general personal agent rather than one built for coding: it keeps a memory of you, creates skills from experience, and is reached from the terminal, a desktop app or messaging apps such as Telegram and Slack. Its provider docs cover a ChatGPT or Codex sign-in through hermes model, OpenRouter, Nous Portal, API keys and local model servers. What Hermes Agent is has the rest.
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bashCopiedKeeping Claude models in another agent
If your problem is the Claude plan’s limits rather than the model, these are the routes the makers’ pages describe:
- An Anthropic API key, billed per token, works in OpenCode, Pi, Aider and Hermes, and in Claude Code itself; on Max and Team plans it can draw on the monthly API credits.
- OpenRouter, which lists Claude Opus 5.5 as
anthropic/claude-opus-5.5, takes one key into OpenCode, Pi or Hermes. - Another company’s plan: Copilot CLI lists Claude Opus 5.5 and Sonnet 5.5, Antigravity’s Google AI Pro lists both, and Cursor offers Claude from Premium up. These bill against that company’s plan, not yours with Anthropic.
- Your own Claude Code, driven by another harness: OpenCode’s Claude Agent provider, added in version 2.2.3 (“Install Claude Code, run
claude auth login, and select Claude Agent in/connect”), Pi’s pi-claude-code extension and a Hermes plugin each hand the work to your installed, signed-in Claude Code.
The last route still draws on your Claude plan, and Anthropic’s terms bar other developers from offering Claude login in their apps or routing requests through plan credentials on behalf of their users, while allowing you to sign in to the unmodified Claude Code with your own plan. Whether a given harness falls on the right side of that is Anthropic’s call; your Claude subscription in Hermes, Pi or OpenCode sets each route beside Anthropic’s own sentences. And before leaving over limits at all, the Claude Code usage limits guide covers what each limit is and when it resets, and the Claude plans guide what each plan includes.