# Open-LLM coding agents: OpenCode, Aider, Cline, Goose and MinniCode compared

> Source: https://minniai.com/learn/open-llm-coding-agents (canonical HTML page)

[Guides](https://minniai.com/learn)


An open-LLM coding agent is a coding agent you can point at an open-weight model, hosted or on your own computer, instead of one company’s paid model. OpenCode, Aider, Cline, Goose and MinniCode all do it. Pick OpenCode, Aider or Goose if you want open source in the terminal, Cline if you work in an editor, and MinniCode if you want an agent tuned to send open models fewer tokens, that asks before each edit, or in auto mode only before pull requests and merges.

Updated 2026-11-25

## What an open-LLM coding agent is

A coding agent has two parts: the model that writes, and the program around it that reads your files, shows edits, runs tests and decides what to send. In Claude Code and Codex both parts come from one company. An open-LLM coding agent lets you choose the model, including open-weight ones such as Nemotron, Qwen or DeepSeek, from a hosted provider or on your own machine.

Two words get mixed up here. **Open LLM** is about the model: its weights are published, so many providers can host it and you can run it yourself. **Open source** is about the agent: its code is published. An agent can be one, both or neither. Four of the five below are open source. MinniCode is not: it is free to use under its own licence, and it is built for open LLMs.

## Side by side

|  | What it is, in its own words | Where it runs | Models its docs name | Licence | Before it acts |
| --- | --- | --- | --- | --- | --- |
| OpenCode | "The open source coding agent" | Terminal, a desktop app in beta, web and mobile | OpenRouter, Anthropic, Ollama, LM Studio, vLLM and others from the models.dev catalog; a set of free models is included | MIT | Its default policy allows actions and asks before reading `.env` files; you set other rules yourself |
| Aider | "AI pair programming in your terminal" | Terminal, and beside your editor | OpenRouter, Anthropic, OpenAI, DeepSeek, Ollama, LM Studio and any OpenAI-compatible API | Apache-2.0 | Commits each edit to git as it makes it, so you review or `/undo` the commit |
| Cline | "The open source coding agent in your IDE, terminal, & desktop!" | VS Code, JetBrains, a CLI, and a desktop app | OpenRouter, Anthropic, OpenAI, Google, Ollama, LM Studio and any OpenAI-compatible API; some free models | Apache-2.0 | Every file edit and terminal command requires your approval, unless you turn on auto-approve |
| Goose | "Your open source AI agent" | A desktop app and a CLI on macOS, Linux and Windows | OpenRouter, Anthropic, OpenAI, Gemini, Ollama and LM Studio; it can also load local models itself | Apache-2.0 | Tool permission controls and a sandbox mode |
| MinniCode | The low-cost, open-model coding agent | Terminal on Windows, macOS and Linux | NVIDIA, OpenRouter, your Claude subscription through Claude Code, and local models through Ollama or LM Studio | Free under its own licence; not open source | Out of auto mode every edit is shown first and commands, deletions and pushes need a typed yes; auto mode asks only before pull requests and merges |

Sources, all read on 25 November 2026: [opencode.ai](https://opencode.ai) with its [providers](https://opencode.ai/docs/providers) and [permissions](https://opencode.ai/docs/permissions) pages, [aider.chat](https://aider.chat) with its [models](https://aider.chat/docs/llms.html) and [git](https://aider.chat/docs/git.html) pages, [docs.cline.bot](https://docs.cline.bot) and the [Cline repository](https://github.com/cline/cline), [goose-docs.ai](https://goose-docs.ai) with its [providers](https://goose-docs.ai/docs/getting-started/providers) page, and the [MinniCode docs](https://minniai.com/minnicode/docs). These tools change often; their own pages are the record.

## How to choose

| If you want | Look at |
| --- | --- |
| Open source code you can read and change | OpenCode, Aider, Cline or Goose |
| To start on free models without setting up a key | OpenCode, which includes some |
| An agent inside VS Code or JetBrains | Cline |
| Every change as its own git commit | Aider |
| A desktop app for more than code | Goose |
| A lean agent for open models, with every edit shown before it lands | MinniCode |
| To use the Claude plan you already pay for, and open models beside it | MinniCode |
| To keep Claude Code and make it cheaper | None of these: see tools that reduce Claude Code token usage |

## Why the agent’s own tokens matter more on an open LLM

Every step an agent takes sends its instructions, its tool list and the conversation again. A smaller open model has less attention to spend on that, and a free key has a daily allowance to spend it from. So what the agent sends before it gets to your code decides a lot of what you get back. Ask three things of any agent here:

- How long are its own instructions, and do its tools load on every turn or only when needed?
- Does your project memory file load whole on every turn, or a short part of it?
- What happens to old tool output: does it stay in the conversation, or drop out?

This is what MinniCode is built around. We measured it against Claude Code: in a warm session MinniCode wrote 5,286 tokens to the model’s cache against 8,273 for Claude Code on the same tasks, 36% less, three sessions each, every task checked correct (21 October 2026, both on Claude Sonnet so the comparison is like for like). It is a comparison with Claude Code only, not with the four agents above. The method is on the [evidence page](https://minniai.com/evidence).

## Getting an open model to run it on

- **NVIDIA** hosts open models behind a key that starts with `nvapi-`: [how to get one](https://minniai.com/learn/free-nvidia-api-key-for-a-coding-agent).
- **OpenRouter** lists models from many labs and marks the free ones with `:free`.
- **Ollama and LM Studio** run a model on your own computer, with no key and nothing leaving the machine.

What a free model does well, and where it stops, is in [How to run a coding agent on free, open models](https://minniai.com/learn/run-a-coding-agent-on-free-open-models). If you are coming from Claude Code, read [Claude Code alternatives that run on open LLMs](https://minniai.com/learn/claude-code-alternatives-open-llm) first.

Try MinniCode

The low-cost, open-model coding agent, in beta. Runs on your own NVIDIA or OpenRouter key, your Claude subscription, or a local model. The [product page](https://minniai.com/minnicode) and the [docs](https://minniai.com/minnicode/docs) cover the rest.

install it (PowerShell on Windows, sh on macOS and Linux)

```
$ irm https://minniai.com/install | iex
$ curl -fsSL https://minniai.com/install | sh
```

## More guides

- [How to reduce Claude Code token usage](https://minniai.com/learn/reduce-claude-code-token-usage) Where the tokens go each turn, and eight ways to spend fewer.

Updated 2026-11-25 · Minni Labs

- [Tools that reduce Claude Code token usage, compared](https://minniai.com/learn/tools-to-reduce-claude-code-token-usage) Output filters, code indexers, memory tools and usage meters: which tokens each one cuts, and which you need.

Updated 2026-11-25 · Minni Labs

- [Low-token coding agents: what makes one cheap to run](https://minniai.com/learn/low-token-coding-agent) Where a coding agent’s tokens go each turn, and the design choices that keep them down.

Updated 2026-11-27 · Minni Labs

- [Token optimization for AI agents: memory, body and brain](https://minniai.com/learn/token-optimization-for-ai-agents) Why agents burn tokens, and the three layers where you can cut them without a worse answer.

Updated 2026-11-27 · Minni Labs

- [An MCP server to reduce token usage in Claude Code and Codex](https://minniai.com/learn/mcp-server-to-reduce-token-usage) How MinniMemoryMCP cuts the memory tokens your agent loads on every turn, and how to install it.

Updated 2026-11-27 · Minni Labs

- [Context engineering for coding agents: what goes in every turn](https://minniai.com/learn/context-engineering-for-coding-agents) Deciding what your coding agent reads on every turn, what it reads on demand, and what it never needs.

Updated 2026-11-27 · Minni Labs

- [Prompt caching for coding agents: cache reads, cache writes and what breaks them](https://minniai.com/learn/prompt-caching-for-coding-agents) How prompt caching works in a coding agent, why cache reads dominate the bill, and how to keep the cache warm.

Updated 2026-11-27 · Minni Labs

- [Claude Code alternatives that run on open LLMs](https://minniai.com/learn/claude-code-alternatives-open-llm) When an open-LLM agent is worth the move, when to keep Claude Code, and what comes across with you.

Updated 2026-11-25 · Minni Labs

- [How to run a coding agent on free, open models](https://minniai.com/learn/run-a-coding-agent-on-free-open-models) What a free key gets you, what a local model can do, and where the tokens go.

Updated 2026-11-25 · Minni Labs

- [Get a free NVIDIA API key for a coding agent](https://minniai.com/learn/free-nvidia-api-key-for-a-coding-agent) Where the key comes from, where to keep it, and how to run a coding agent on it.

Updated 2026-11-07 · Minni Labs

- [Claude Code usage limit reached: what to do, and how to hit it less](https://minniai.com/learn/claude-code-usage-limit-reached) What each limit message means, what to do now, and how to send less every turn.

Updated 2026-11-16 · Minni Labs

- [CLAUDE.md too long: what Claude Code does with it, and how to split it](https://minniai.com/learn/claude-md-too-long) What a long CLAUDE.md costs, the real size limits, and four ways to cut it.

Updated 2026-11-16 · Minni Labs

- [Claude Code context window keeps filling up: why it compacts, and what to do](https://minniai.com/learn/claude-code-context-window-full) What fills the window, what compaction keeps, and how to compact less often.

Updated 2026-11-16 · Minni Labs

- [How to reduce Codex token usage](https://minniai.com/learn/reduce-codex-token-usage) Where Codex spends tokens, and seven ways to spend fewer.

Updated 2026-11-16 · Minni Labs

- [Codex usage limits: why they drain and how to use fewer tokens](https://minniai.com/learn/codex-usage-limits) How the windows work, how to check what is left, and what uses the allowance up.

Updated 2026-11-11 · Minni Labs

- [AGENTS.md too large: what Codex cuts off and how to split it](https://minniai.com/learn/agents-md-too-large) The 32 KiB cap, how to see which files load, and five ways back under it.

Updated 2026-11-11 · Minni Labs

- [How to lower a Claude Code or Codex API bill](https://minniai.com/learn/lower-claude-code-codex-api-bill) What a coding agent bills on an API key, and the levers that move it.

Updated 2026-11-16 · Minni Labs

- [Why Claude Code sessions get expensive](https://minniai.com/learn/why-claude-code-sessions-get-expensive) Every turn re-sends the whole session. What makes that grow.

Updated 2026-11-05 · Minni Labs

- [Claude Code memory: CLAUDE.md vs MinniMemoryMCP](https://minniai.com/learn/claude-code-memory-claude-md-vs-minnimemorymcp) What belongs in CLAUDE.md, and splitting the rest out by hand or with a tool.

Updated 2026-11-16 · Minni Labs

- [MinniMemoryMCP vs Mem0, Zep, supermemory and Letta](https://minniai.com/learn/minnimemorymcp-vs-mem0-zep-supermemory-letta) Four tools add memory to an agent. MinniMemoryMCP cuts what the agent already loads. When each fits.

Updated 2026-11-16 · Minni Labs

- [How Claude Code remembers across sessions](https://minniai.com/learn/claude-code-memory-across-sessions) What carries over between sessions, what does not, and how to keep it small.

Updated 2026-11-16 · Minni Labs

- [Where Claude Code keeps its memory](https://minniai.com/learn/claude-code-memory-directory) Every memory path on your machine, what each file is for, and which ones load every turn.

Updated 2026-11-07 · Minni Labs

- [What a Windows PC optimization agent should and should not touch](https://minniai.com/learn/what-a-pc-optimization-agent-should-touch) The settings worth changing, the ones that are placebo, and the ones that break things.

Updated 2026-10-25 · Minni Labs

---

Index for agents: https://minniai.com/llms.txt. Doing a task: https://minniai.com/agents.md
