Pick a Claude Code alternative by constraint, not by logo
Most people searching for Claude Code alternatives are not rejecting the agent. They hit a wall of some kind, whether a usage cap, a bill, slow turns, a locked model, or a privacy requirement, and they just want to know what to do next.
The best alternative depends on which constraint pushed you off. If only the model or route is the problem, keep Claude Code and repoint it. It is not model-locked, and its Terminal, VS Code, and JetBrains surfaces support third-party providers. If the harness itself is the friction, switch agents.
Quick picks by constraint
Find your constraint, take the recommended move, and jump to the section it points to.
| Constraint | Recommended move | Why |
|---|---|---|
| Speed | Try a faster catalog model | Often the model, not harness |
| Model freedom | Repoint the route | Any provider, keep harness |
| Best open source | OpenCode | Closest to Claude Code |
| Cheapest / free | Gemini CLI free tier | 1,000 requests/day, $0 |
| Local & private | Cline or Continue.dev | Local + self-hosted models |
| Teams | Cursor or Continue Team | Per-seat team tiers |
First, decide: is it the harness or only the model/route?
This one decision shapes everything that follows, and most alternative guides skip it. The harness is the agent loop: planning, context, tool calls, permissions, diff review, and UI. The model is the LLM doing the reasoning.
Figure 1: Harness or only the model/route?
Keep Claude Code, change the route
If the pain is a usage cap, cost, model freedom, or one provider's latency, the route is the problem, not the harness. Repointing Claude Code is Anthropic-documented, not a hack: it routes inference through an LLM gateway set with the ANTHROPIC_BASE_URL variable, with per-provider variants for Bedrock, Vertex, and Foundry.
Fast is one implementation. fast claude on writes the gateway and model map into ~/.claude/settings.json and snapshots the original so you can revert. See the change the route with Fast reference. That balance is its own meter and does not raise your Anthropic quota.
Switch the harness
If the harness itself is the friction, and you want an IDE-native flow, a browser IDE, multi-repo orchestration, or deep AWS integration, switch agents.
Why people switch from Claude Code (five constraints)
Five constraints drive almost every switch; match yours to the lane that fixes it.
- Usage limits. Claude Code subscriptions meter usage by plan tier, from short sprints on Pro up to expanded limits on Max, which is precisely the cap switchers hit. A route change or higher-limit lane fixes it without abandoning the harness.
- Cost. Sticker price is not the metric; total cost per success is, computed with the rubric below.
- Speed. Often a model-choice problem, not a harness problem. Try a faster catalog model on the harness you already have before migrating.
- Model or provider lock-in. Solved by repointing Claude Code, or by moving to a harness that drives multiple providers.
- Local or privacy control. Handled by self-hosted or local-capable harnesses, with one caveat: open source does not mean private by default.
How to evaluate an alternative (a rubric, not a logo list)
Rate every option by wall-clock time and cost per successfully completed task, including retries and setup, not tokens per second or sticker price.
| Criterion | What to measure | Why it matters |
|---|---|---|
| Completion rate | Tasks finished correctly | The real output metric |
| Time to correct result | Wall-clock, not tok/s | Retries hide in latency |
| Retries / autonomy | Loops before success | Cheap models can loop |
| Model & provider freedom | Providers it can drive | Avoids future lock-in |
| Context management | How it maps your repo | Drives answer quality |
| Permissions & diff review | Control over edits | Safety on real code |
| Observability | Visibility into usage/spend | Cost stays predictable |
| Setup / maintenance | Hours to configure & keep | Belongs in cost per success |
Point two harnesses at the same model: if the result changes, the harness was your variable; if not, the model was. Then compute the durable number: subscription, API spend, hardware, and config hours, divided by tasks that shipped. A nominally faster model can lose when retries make it slower to a correct result.
Two paths compared: change the route vs. change the harness
There are only two moves: change the model route and keep Claude Code, or change the harness.
| Approach | Keeps Claude Code? | Best when | Cost model | Reversible? |
|---|---|---|---|---|
| Change the route with Fast | ✅ | Only route frustrates | Separate metered balance | ✅ fast claude off |
| Change the harness | ❌ | Harness is friction | Varies by tool | Reinstall / reconfigure |
Change the route with Fast keeps the harness, repoints it via fast claude on, bills a separate metered balance, and reverses cleanly with fast claude off.
Change the harness trades switching cost for a different workflow. Terminal and open-source destinations include OpenCode, Aider, Cline, Gemini CLI, and Continue.dev; IDE-native ones include Cursor and GitHub Copilot. If OpenCode is your destination, you can route OpenCode through Fast too. Go deeper in Compare OpenCode and Claude Code and Compare Codex and Claude Code.
"Free" and "open source," honestly
Free software is not free inference
OpenCode, Aider, Cline, Gemini CLI, and Continue.dev cost $0 to install, but inference is paid somewhere, whether that's your own API key, a provider's free tier, or local hardware. The strongest genuinely-free start is Gemini CLI: Apache-2.0, running on Gemini 3, with a free tier of 60 requests per minute and 1,000 per day on a personal Google account.
Open source is not automatically private
In an April 2026 hands-on test, OpenCode was judged the option that "gets closest" to Claude Code, but the reviewer noted privacy depends heavily on setup, especially sharing and plugins. Self-hosting does not, by itself, keep your code local; treat privacy as a configuration you verify, not one you inherit.
Try it reversibly: a 5-minute Fast pilot
For a pure usage, cost, or model-freedom complaint, the lowest-friction experiment is not a migration. It is a reversible route change on the harness you already use.
#!/usr/bin/env bash
# A reversible Fast pilot: route Claude Code to a Fast catalog model, then undo it.
# 1. Install the CLI (use the package manager you already have).
npm install -g @inference/fast
# 2. Sign in through the browser approval flow; selects your first project.
fast login
# 3. Route Claude Code. Writes the gateway and model map into
# ~/.claude/settings.json and snapshots the original to ~/.inference-fast/backups.
# Restart Claude Code after this completes.
fast claude on
# 3a. (Optional) Route to a specific catalog model instead of the default.
fast claude on --model "<catalog-id>"
# 4. Confirm the route is active before running work.
fast claude status
# 5. Run your normal Claude Code tasks. Requests appear under the Usage
# dashboard (/dashboard/usage) with the selected model, tokens, and spend.
# 6. Restore your original settings byte-for-byte and remove the backup.
# Restart Claude Code after restoring.
fast claude offEach step is one command: install and fast login , fast claude on snapshots your settings.json first , run your tasks, then confirm spend in the usage dashboard , and reverse with fast claude off .
To test a specific model, run fast claude on --model <catalog-id> and pick a catalog model. One command to try and one to undo settles the usage and route question without commitment.
Start with $26 free
Create a Fast Inference account, choose a hosted model, and track requests, tokens, and spend in one usage dashboard.
Create your accountWhen to stay with Claude Code
Switching cost is a real tax. New config files, BYO keys, and re-learned workflows all cost hours that belong in your total cost per success.
Stay if the harness fits your workflow and only the model or route frustrated you; then change the route, not the agent. A genuine workflow mismatch justifies a switch; a pure usage, cost, or route complaint usually does not.
Last verified: plans and limits (dated)
Volatile prices, model IDs, and usage limits live in one dated place so the framework survives monthly churn. Competitor figures are attributed and dated as theirs; first-party where possible.
Last verified: August 22, 2026
| Tool | Free option | Paid entry | Notes |
|---|---|---|---|
| Claude Code | No | $20/mo Pro | Max $100–$200/mo |
| Gemini CLI | 1,000 req/day | Free | Apache-2.0, Gemini 3 |
| OpenCode | $0 | BYO key | 75+ providers |
| Aider | $0 | BYO key | Git-native pair coder |
| Cline | $0 | $20/user/mo | Teams tier |
| Cursor | Hobby $0 | $20/mo Pro | Ultra $200/mo |
| GitHub Copilot | Free $0 | $10/mo Pro | Business $19/user |
| Continue.dev | Solo $0 | $10/dev/mo | Self-hosted models |
| Codex CLI | ChatGPT plan | Via ChatGPT | gpt-5.6 default |
For Fast's current plans, credits, and listed model rates, see Fast pricing.
Conclusion
The right alternative removes your specific constraint at the lowest total cost per success. If only the route is the problem, repoint Claude Code; if the harness is, score candidates on completion and wall-clock time. The fastest way to settle it is the reversible route change: turn it on, watch your usage, and undo it if it does not help.
Run Claude Code on Fast Inference
Keep the Claude Code harness, route model traffic to a selected Fast model, and restore your original settings with fast claude off.
See the Claude Code guideRelated Reading
- Run Claude Code on Fast Inference — the reversible install walkthrough behind the pilot above.
- Codex Usage and Limits — a closer look at the usage-limit switching driver.
- Inference Economics: What are your options? — supports the total-cost-per-success framing in the rubric.