Claude Code alternatives that run on open LLMs
If you want a terminal agent like Claude Code on open LLMs, the main choices are OpenCode, Aider, Goose and MinniCode, with Cline if you prefer an editor. Move for the cost, the choice of model or to run it locally. Stay for the hardest work, where a frontier model still earns its price. And if the only problem is the bill or the usage limit, cutting what Claude Code loads every turn may be enough.
Updated 2026-11-25
First, what is the problem?#
| If the problem is | Then |
|---|---|
| The API bill, and the answers are good | Keep Claude Code and send less: how to reduce Claude Code token usage |
| The plan’s usage limit | Send less first, then use an open-LLM agent for routine work while you wait for the reset: usage limit reached |
| You want to choose the model | An open-LLM agent |
| Code must not leave your computer | An open-LLM agent on a local model |
| You want to read or change the agent’s source | An open source agent: OpenCode, Aider, Cline or Goose |
The alternatives#
- OpenCode is open source (MIT) and runs in the terminal, with a desktop app in beta. It comes with a set of free models and connects to OpenRouter, Anthropic and local models. Its default policy allows actions and asks before reading
.envfiles, so set your own permission rules if you are used to Claude Code’s prompts. - Aider is open source (Apache-2.0) pair programming in the terminal. It commits each edit to git, so you review commits rather than approve diffs. It connects to OpenRouter, Ollama, LM Studio and any OpenAI-compatible API.
- Goose is open source (Apache-2.0), with a desktop app and a CLI. It connects to many providers and can load local models itself.
- Cline is open source (Apache-2.0) and lives in VS Code and JetBrains, with a CLI and a desktop app. Every edit and command needs your approval unless you turn on auto-approve.
- MinniCode is ours: a low-cost, open-model coding agent for the terminal, in beta. It is free under its own licence and not open source. It runs on NVIDIA or OpenRouter models with your own key, on a local model, or on your Claude subscription, and shows you every edit first.
The full comparison, with sources and the date we read them, is in Open-LLM coding agents compared.
When to keep Claude Code#
- Long refactors across many files. A smaller open model loses the thread sooner. Keep a frontier model for these.
- Your team already shares Claude Code settings, hooks, skills and plugins. Moving one person costs more than it saves.
- You rely on features only it has. List the ones you use in a normal week before you move.
If cost is the reason and the answers are good, shrink what it loads first. MinniMemoryMCP sorts your memory files into a small part that loads every turn and files that load when a task needs them. Measured 15 November 2026: at API rates, a Claude Code session on our test memory cost $0.47 before MinniMemoryMCP 1.6.0 and $0.29 after on average, 37.7% less (each of the three sessions 33.9% to 40.0% less). A blind judge found 80 of 87 answers correct before and 81 after.
What comes across#
The thing worth keeping is what you taught the agent about your project. In MinniCode:
- Project memory. With no
MINNI.md, MinniCode readsAGENTS.md, orCLAUDE.mdwhen there is noAGENTS.md, as your project memory. A repo’s own file is followed only after you say yes. Its memory commands never write to it. - MCP servers.
/mcplists the ones you set up in Claude Code and/mcp import <name>copies one over. - Your Claude plan. If you keep it, MinniCode can run on it through the
claudeprogram on your computer, so you can switch between an open model and Claude by task with/provider. Check your plan’s current terms first. - Not hooks or plugins. Those belong to Claude Code and stay there.
For any other agent, look up which memory file it reads before you start, and copy your rules into that file.
Try one without committing to it#
- Pick a repository with tests, and make a branch.
- Choose three small tasks you have already done with Claude Code, so you know what a good answer looks like.
- Run them in the new agent on an open model: NVIDIA hands out free keys.
- Compare the diffs and the test results, not how the chat felt.
- Keep both for a week: open models for routine edits, Claude Code for the hard ones.