Alternatives at a glance
| Type | Best for | Made by | Open source | Models | Free option | Paid | |
|---|---|---|---|---|---|---|---|
| Codex | Terminal CLI, plus IDE extension, desktop app and web | ChatGPT subscribers; the cheapest entry, with ChatGPT Free and Go | OpenAI | CLI under Apache-2.0 | OpenAI models; open models through codex --oss with Ollama | ChatGPT Free and Go include Codex: GPT-6 Luna in the desktop app, subject to rollout | ChatGPT Plus $20 a month, Pro from $100 |
| opencode | Terminal CLI, plus desktop, mobile and web apps | Free and open source with almost any provider or a local model | The opencode project | MIT | 200+ providers and local models, Ollama included; ChatGPT Plus or Pro and GitHub Copilot subscriptions work | The tool is free; bring your own provider or a local model | Optional OpenCode Go from $10 a month |
| Aider | Terminal CLI | Git-aware pair programming with the model of your choice | Aider-AI | Apache-2.0 | Almost any LLM, local models included (for example through Ollama) | The tool is free; you pay your model provider, or nothing with a local model | None; only your model provider's charges |
| Cursor | IDE or editor, plus Cursor CLI | An AI editor with cloud agents and code review | Anysphere | No | Grok models on Plus; third-party models at API list price on Premium and higher | Free plan with limited agent and chat requests | Plus $8 a month (Grok models only), Premium $30, Super $100, Ultra $200 |
| GitHub Copilot | IDE extension, plus Copilot CLI and the Copilot app | Teams already on GitHub; Copilot in the cloud on paid plans | GitHub | Not stated | Claude, GPT and Gemini models; Copilot Free uses auto model selection only | Copilot Free with an allowance of AI credits and 2,000 completions a month | Pro $10 a month, with higher tiers up to Max at $100 |
| Google Antigravity | IDE or editor, plus Antigravity CLI and the Antigravity app | A free Google plan with Gemini models | Not stated | Gemini models; its pricing page also lists Claude models on the $0 and Google AI Pro plans, and full access to third-party partner models on Ultra | $0 individual plan with basic weekly rate limits | Google AI Pro $20 a month; Ultra $100 or $200 a month | |
| Local models via Ollama | Local model runtime used by the tools above | Running open models on your own hardware | Ollama | Depends on the model | Open models on your own hardware, or Ollama's cloud models | Free on your own hardware | Optional: Ollama's cloud models |
| Folsom | Web and Mac app | Not choosing: one agent across the model accounts you connect, in web and Mac apps | Folsom AI | No | Folsom's models, plus ChatGPT, Copilot and other subscriptions or API keys you connect | None; the agent needs a plan | Pro $50 a month, Max $200 a month |
| Gemini CLI | Terminal CLI | Teams on Gemini Code Assist or paid Gemini API keys | Apache-2.0 | Gemini | None for individuals since June 18, 2026: free and Google AI Pro/Ultra access moved to Antigravity CLI | Gemini Code Assist Standard and Enterprise, or paid Gemini API keys |
Prices are the vendors' US list prices and change often; follow the links to check them. Local models need a machine that can run them with a long context window; Ollama's Codex guide says to use a context window of at least 64k tokens.
- OpenAI: Codex pricing and usage limits
- openai/codex on GitHub (Apache-2.0)
- opencode.ai
- opencode docs: providers
- anomalyco/opencode on GitHub (MIT)
- opencode docs: OpenCode Go
- Aider-AI/aider on GitHub (Apache-2.0)
- Aider docs: connecting to LLMs
- Cursor: pricing
- Cursor: terms of service
- GitHub Docs: Copilot plans
- Google Antigravity: pricing
- Google Antigravity blog: changes to Antigravity plans
- Ollama docs: Codex
- Folsom docs: plans
- google-gemini/gemini-cli on GitHub
What Reddit recommends (2026 threads)
Archived 2026 Reddit threads don't pick one replacement for everyone; the answers split by whether people are leaving Claude's five-hour and weekly limits, cutting monthly spend, or moving to local and open-weight models (archived snapshots checked Nov 5 and Nov 22, 2026).
For open-source and local-model setups, two r/LocalLLaMA threads—April 2026 (163 comments) and August 2026 (133 comments)—repeatedly put opencode first as the most plug-and-play terminal harness for local llama.cpp or Ollama models and multi-model subagents, with Pi next for its minimal prompt on consumer GPUs, alongside Qwen Code, Cline and Kilo Code. Several replies note that Claude Code itself can point at a local server through ANTHROPIC_BASE_URL, though Anthropic doesn't support non-Claude models.
For paid subscriptions and daily repository work, an r/GithubCopilot thread from March 2026 (68 comments) and a June 2026 discussion of what developers use day to day pair Claude Code with Copilot or Codex so one plan's quota doesn't stall implementation. An August 2026 r/Anthropic thread comparing $100 plans finds many heavy coders preferring ChatGPT Pro with Codex for longer runs without a five-hour cap while keeping Claude for planning, and an August 2026 r/AI_Agents thread comparing Claude Code, Cursor and Codex splits between Claude Code for terminal workflow, Cursor for inline IDE refactoring and Codex for ChatGPT subscribers.
- r/LocalLLaMA: What is the best coding agent (CLI) like Claude Code for local development? (Apr 2026)
- r/LocalLLaMA: Best open-source harness like Claude Code? (Aug 2026)
- r/GithubCopilot: Claude Code vs GitHub Copilot limits? (Mar 2026)
- r/GithubCopilot: Which AI coding assistant are developers actually using in 2026? (Jun 2026)
- r/Anthropic: ChatGPT Pro ($100) vs Claude Max ($100) (Aug 2026)
- r/AI_Agents: ClaudeCode vs cursor vs codex (Aug 2026)
The 8 best Claude Code alternatives
Each of the eight is compared in the table above, with prices from the vendors' own pricing pages. Gemini CLI is the table's ninth row and the one exception: it is no longer a free route for individuals, because Google moved free individual access to Antigravity CLI on June 18, 2026.
1. Codex
OpenAI's coding agent, as a terminal CLI with an IDE extension, a desktop app and a web surface. Best for ChatGPT subscribers: Codex is included in ChatGPT Free and Go (GPT-6 Luna in the desktop app, subject to rollout, without Codex Cloud), and it runs open models through codex --oss with Ollama. ChatGPT Plus is $20 a month, and Pro starts at $100.
2. opencode
An open-source agent under the MIT license, as a terminal CLI with desktop, mobile and web apps. Best for free and open source with almost any provider or a local model: the tool itself costs nothing, and ChatGPT Plus or Pro and GitHub Copilot subscriptions work. Optional OpenCode Go starts at $10 a month.
3. Aider
An open-source (Apache-2.0) AI pair programmer that runs in your terminal and commits each change to git. Best for git-aware pair programming with the model of your choice, local models included. The tool is free; you pay only your model provider, or nothing at all with a local model.
4. Cursor
An AI editor with agents, cloud agents and code review, plus a Cursor CLI. Best for an AI editor of its own, with Grok models on Plus and third-party models at API list price on Premium and higher. The free plan has limited agent and chat requests; Plus is $8 a month for Grok models only, Premium $30, Super $100 and Ultra $200.
5. GitHub Copilot
GitHub's agent, an IDE extension with Copilot CLI and the Copilot app. Best for teams already on GitHub, since Copilot in the cloud comes with paid plans. Copilot Free includes an allowance of AI credits and 2,000 completions a month, and Pro is $10 a month, with higher tiers up to Max at $100.
6. Google Antigravity
Google's agent-first IDE, with an Antigravity CLI and the Antigravity app, running Gemini models. Best for a $0 Google plan with Gemini models: the individual plan costs nothing and has basic weekly rate limits. Google AI Pro is $20 a month, and Ultra is $100 or $200 a month.
7. Local models via Ollama
Ollama is a local model runtime that the agents above connect to. Best for running open models on your own hardware and paying nothing per token, if the machine can hold a long context window (Ollama's Codex guide says to use a context window of at least 64k tokens). Free on your own hardware; Ollama's cloud models are optional.
8. Folsom
Folsom is a coding agent in its web and Mac apps that runs on the model accounts you connect, such as ChatGPT and Copilot subscriptions. Best for not choosing: a second opinion, parallel Sessions, or finishing a task when Claude Code is out of usage. There is no free plan; Pro is $50 a month and Max $200 a month.
Terminal vs IDE Claude Code alternatives
Claude Code itself runs in your terminal, IDE extensions, a desktop app and the web. Pick a terminal agent if you want to keep that workflow, or an AI editor or IDE extension if you'd rather see every change in your editor.
- Terminal CLI: Codex CLI, OpenAI's open-source (Apache-2.0) agent that runs locally and works with your ChatGPT plan or an API key.
- Terminal CLI: opencode, free and MIT-licensed, with 200+ providers and local models; it also comes as desktop, mobile and web apps.
- Terminal CLI: Aider, free and Apache-2.0, AI pair programming in your terminal that commits each change to git, with almost any LLM.
- Terminal CLI: Antigravity CLI, Google's terminal surface for Antigravity agents, included on every Antigravity plan, the $0 individual plan too.
- Terminal CLI: Gemini CLI, Google's open-source terminal agent, now for Gemini Code Assist Standard and Enterprise, Code Assist for GitHub and paid API keys; individuals moved to Antigravity CLI.
- IDE or editor: Cursor, an AI editor with agents, cloud agents and code review, plus a Cursor CLI; free plan with limited requests.
- IDE extension: GitHub Copilot, in your IDE, with Copilot CLI and the Copilot app on every plan, Copilot Free included.
- OpenAI: Codex CLI
- opencode docs: introduction and install
- Aider-AI/aider on GitHub (Apache-2.0)
- Google Antigravity: Antigravity CLI
- Google Antigravity docs: plans and rate limits
- google-gemini/gemini-cli on GitHub
- Cursor docs
- GitHub Docs: About GitHub Copilot
- GitHub Docs: installing the GitHub Copilot extension in your environment
- GitHub Docs: GitHub Copilot CLI
- GitHub Docs: Copilot plans
Switching because of Claude's usage limits?
If you're switching because Claude Code keeps hitting its five-hour or weekly limit rather than for a missing feature, you may not need to leave Claude Code: see how its usage limit works and what to do when you reach it, and how to keep a task going on another account.
Hit your limit? Folsom keeps going on your other connected accounts or Folsom credits.
Waiting on the weekly cap? Check when the Claude weekly limit resets to see how Anthropic assigns your account's fixed reset time.
Already paying for GitHub Copilot? See whether you can use a Copilot subscription in Claude Code and how standalone sign-in differs from a community proxy.
Free Claude Code alternatives
Codex on ChatGPT Free: OpenAI includes Codex in the Free plan with GPT-6 Luna in the desktop app, subject to rollout; Codex Cloud is not included.
Google Antigravity's individual plan is $0 a month with basic weekly rate limits. Gemini CLI is no longer the free route: Google moved free individual access to Antigravity CLI on June 18, 2026.
opencode with a local model: opencode is free and MIT-licensed, and connects to Ollama on your computer. Codex can do the same with codex --oss. You pay only for your hardware, and quality depends on the model you can run.
You can't use a Claude Pro or Max subscription in opencode or other third-party tools: Anthropic prohibits it, and opencode removed those plugins in version 1.3.0.
For lower-cost monthly and API options, compare a cheaper version of Claude Code.
Try another model on a real task in Folsom
Open Folsom on the web or the Mac app
Sign in at reasonmachines.com, or download the Folsom Mac app for macOS from reasonmachines.com/download and sign in there. Both open the same Sessions.
Connect the plans you already pay for
In Settings › Models, choose Sign in with ChatGPT to run OpenAI models on your ChatGPT Plus, Pro or Business plan, and add any other subscriptions or API keys you use. Choose a connected model or account in the composer to use it. Automatic routing starts with Folsom, then providers alphabetically and each provider's oldest account first; it does not prioritize subscriptions over API keys.
Give it a task you know well
Ask Folsom for a task you already know the answer to, such as a review of your current branch, and compare the answer with Claude Code's own. Switch the model in the composer to compare providers on the same task.
You don't have to choose
Keep Claude Code for what it does best, and use Folsom's web or Mac app for second opinions, parallel Sessions, or a task when Claude Code is out of usage. Folsom runs on the model accounts you connect, such as your ChatGPT plan or Copilot subscription, so you pick the model per task.
Comparing SpaceXSI's always-on AI teammate with Anthropic's coding agent? See Grok Bot vs Claude Code for plans, shared usage pools and where each runs.
Related comparisons
Compare Claude Code vs Cursor vs Codex across their workflows.
For a dated shortlist, see the best coding agent right now.
For token and subscription cost math, check whether is OpenCode cheaper than Claude Code.
Open-source and local-LLM alternatives in 2026
Free and open source: opencode (MIT), Aider (Apache-2.0), Cline (Apache-2.0) and OpenHands (MIT). All four work with local models: opencode and Cline through Ollama, Aider with almost any LLM including local ones, and OpenHands with the agent and model you choose. A local model costs nothing per token, but quality depends on the model your hardware can run.
Cheaper than Claude Code: Codex is included in ChatGPT Free and Go, Cursor has a free plan and Plus at $8 a month, GitHub Copilot Pro is $10 a month, and Google Antigravity has a $0 individual plan.
Folsom: all your AI subscriptions in one coding agent
Use the subscriptions you already pay for (ChatGPT Plus/Pro/Business, Claude Pro/Max, SuperGrok or X Premium+, GitHub Copilot) or your own API keys in one coding agent. Hit your limit? Folsom keeps going on your other connected accounts or Folsom credits.
Folsom is an always-on teammate that is also a coding agent: its own cloud computer per Session, memory across Sessions, Loops and Slack, with the model picked per task. Work that runs on your own subscription or API key is billed by that provider and keeps its limits; Folsom's plans are Pro at $50 and Max at $200 a month, with no free plan, and it isn't open source.
Questions
Is there something better than the Claude code?
Not for everyone, but there are strong alternatives for different needs: Codex for ChatGPT subscribers, Cursor for an AI editor, GitHub Copilot if you already work on GitHub, and opencode or Aider for free, open-source tools that run almost any model. Folsom lets you use several providers' models on the accounts you connect, so you don't have to pick one.
What is the best terminal alternative to Claude Code?
It depends on what you already pay for: Codex CLI if you have a ChatGPT plan, opencode or Aider if you want free, open-source tools that work with almost any model or a local one, and Antigravity CLI if you want Google's Gemini models on a free or Google AI plan. Gemini CLI is now for Gemini Code Assist organizations and paid API keys, not individuals.
What is the best IDE alternative to Claude Code?
Cursor if you want an AI editor of its own, with agents, cloud agents and code review, and GitHub Copilot if you want to keep your current IDE: it's an extension for Visual Studio, JetBrains IDEs, Vim/Neovim and other editors. Both have free plans with limited usage.
Is there a free AI like Claude code?
Yes. opencode (MIT) and Aider (Apache-2.0) are free and open source, costing nothing beyond your model provider or a local model through Ollama; Codex is included in ChatGPT Free, and Cursor, GitHub Copilot and Google Antigravity have free plans with limited usage.
Is Claude Code still the best for coding?
On Artificial Analysis's Coding Agent Index v2.1 it is one point behind the top entry: Antigravity CLI on Gemini 4 Neon scores 59, Claude Code on Fable 5.2 58 and Codex on GPT-6.2 Astra 53, and Codex costs less per task ($5.12 against $15.47). Whether it's best for you depends on price, Claude's usage limits and which models you want to use.
Is Gemini CLI still free?
Not for individuals. Gemini CLI's README says free individual access and Google AI Pro and Ultra moved to Antigravity CLI on June 18, 2026; Gemini CLI now serves Code Assist licenses and paid API keys.
Can I use my Claude subscription in opencode?
No. Anthropic doesn't permit third-party tools to route requests through Free, Pro, Max or Ultra plan credentials, and opencode stopped bundling those plugins in 1.3.0. opencode works with an Anthropic API key, other providers or local models.
Is Folsom free?
No. Folsom's coding agent needs a plan: Pro is $50 a month and Max $200 a month. Models you run on your own connected accounts count against those accounts.
