Ranking
Best Terminal Coding Agents in 2026
Terminal coding agents read a repository, edit files and run commands from a shell. This ranking weighs agent quality and control first, then model choice, local model support and licensing, because those decide how much of the work can stay on a team's own machines.
The ranking
- Top pick
Claude Code93.0 - Best with a free plan
GitHub Copilot87.0 - Best open source
OpenAI Codex91.5
Scores are editorial, not benchmark results or user ratings; an asterisk marks a publisher connection with a disclosed ranking adjustment. How the order is set.
- 1
Claude Code
Mature terminal agent with MCP servers and subagents. It runs Claude models only, and its source is closed, so the model choice is fixed.
Best for Professional work in a large codebase on Claude
Command lineWebSubscription
- 2
OpenAI Codex
Open source under Apache 2.0, with MCP servers and built-in Ollama and LM Studio providers next to OpenAI models. Other vendors need a custom provider entry.
Best for Open-source terminal agent for OpenAI models
Command lineFree and open sourceOpen source
- 3
OpenCode
MIT-licensed terminal agent with a long provider list, including Ollama and LM Studio, plus MCP servers and built-in subagents. Desktop and IDE front ends are separate from the terminal app.
Best for Open-source agent that switches between many providers
WindowsmacOSLinuxCommand lineFree and open sourceOpen source
- 4
GitHub Copilot
The Copilot CLI adds bring-your-own-key and local model support, MCP and custom agents to a GitHub subscription. It is closed source, and its models come from Copilot unless you bring your own key.
Best for Developers already paying for GitHub Copilot
WebWindowsmacOSLinuxCommand lineFree plan, paid upgrades
- 5
Aider
Apache 2.0 tool that edits a git repository and commits each change, working with almost any cloud or local model. It has no built-in MCP support, so it is narrower than agents with tool servers.
Best for Git-based pair programming in the terminal
Command lineFree and open sourceOpen source
- 6
Cline
Apache 2.0 agent with a CLI, MCP servers and subagents, plus Ollama and LM Studio for local models. It began as an IDE extension, and every edit and command asks for approval unless auto-approve is on.
Best for Approval-first agent in the terminal or editor
WindowsmacOSLinuxCommand lineFree and open sourceOpen source
- 7
goose
Apache 2.0 general-purpose agent with a desktop app, a CLI and an API, more than 15 providers including Ollama, and MCP extensions. Coding is one of several uses, so its terminal workflow is less specialized than Aider or OpenCode.
Best for General-purpose agent with a desktop app and CLI
macOSLinuxWindowsCommand lineFree and open sourceOpen source
- 8
Qwen Code
Apache 2.0 agent from Alibaba Cloud with OpenAI, Anthropic, Gemini and Qwen APIs, plus Ollama and vLLM. It has MCP and subagents, but the terminal is one of several front ends.
Best for Open-source terminal agent with local model support
LinuxmacOSWindowsCommand lineFree and open sourceOpen source
- 9
Factory Droid
Paid, closed-source CLI with custom droids, Missions, MCP tools and bring-your-own-key support for local models. Plans start at $20 a month, and the pricing page lists no free plan.
Best for Teams that pay for a managed coding agent
Command lineSubscription
- 10
Pi
MIT-licensed minimal harness with many providers and local model endpoints. It has no built-in sub-agents, permission system or MCP, so those come from extensions, and it runs with the user's permissions unless you containerize it.
Best for Developers who want to build their own agent
macOSLinuxWindowsCommand lineFree and open sourceOpen source
- 11
Crush
Multi-model terminal agent with LSP context and MCP servers over HTTP, stdio and SSE, free to use. Its source is under a Functional Source License rather than an open source license, and its README describes no sub-agents.
Best for Switching models mid-session in the terminal
macOSLinuxWindowsCommand lineFree
- 12
YunusPi*
MIT-licensed harness derived from Pi, adding persistent project memory, bounded subagents and safety hooks. It targets Linux, with Windows through WSL2 and macOS through a Linux VM, and it has far fewer users than the agents above.
Best for Linux developers who want Pi with memory and subagents
LinuxCommand lineFree and open sourceOpen source
- 13
PocketHarness*
MIT-licensed C++ harness for Linux in one binary, with about 30 hosted providers and local Ollama, LM Studio and llama.cpp servers. It has no MCP and no subagent framework, and it confines commands with Linux Landlock.
Best for Small Linux harness with no SDKs or plugins
LinuxCommand lineFree and open sourceOpen source
At a glance
| Product | Score | Price | Platforms | Model providers | Local models | Built-in MCP support |
|---|---|---|---|---|---|---|
| 93.0 | Subscription | Command lineWeb | Claude models through Anthropic or cloud hosts | No | Yes | |
| 91.5 | Free and open source | Command line | OpenAI models plus custom OpenAI-compatible providers | Yes | Yes | |
| 90.0 | Free and open source | WindowsmacOSLinuxCommand line | Many hosted and local providers, including Ollama | Yes | Yes | |
| 87.0 | Free plan, paid upgrades | WebWindowsmacOSLinuxCommand line | Copilot-hosted models, or your own keys (BYOK) | Yes | Yes | |
| Aider | 85.5 | Free and open source | Command line | Almost any cloud or local model | Yes | No |
| 82.0 | Free and open source | WindowsmacOSLinuxCommand line | Many hosted providers, plus Ollama and LM Studio | Yes | Yes | |
| 80.0 | Free and open source | macOSLinuxWindowsCommand line | 15+ providers, including Anthropic, OpenAI and Ollama | Yes | Yes | |
| 79.0 | Free and open source | LinuxmacOSWindowsCommand line | OpenAI, Anthropic, Gemini, Qwen APIs, Ollama, vLLM | Yes | Yes | |
| 76.5 | Subscription | Command line | Factory-managed models, or your own keys (BYOK) | Yes | Yes | |
| 74.5 | Free and open source | macOSLinuxWindowsCommand line | Many hosted providers, plus local endpoints | Yes | No | |
| 72.5 | Free | macOSLinuxWindowsCommand line | Any OpenAI- or Anthropic-compatible API | Yes | Yes | |
| 65.0 | Free and open source | LinuxCommand line | Models and providers you configure with your own keys | Yes | No | |
| 62.0 | Free and open source | LinuxCommand line | About 30 hosted services, plus local servers | Yes | No |
How to choose terminal coding agents
- Model lock-in
- Claude Code and Codex lean toward one vendor's models, while OpenCode, Cline, Goose and Qwen Code connect to many providers.
- Local models
- Ollama, LM Studio and vLLM work with most agents here. Local models need a capable machine, and speed depends on the hardware.
- Permissions
- Check whether an agent asks before edits and commands, and whether it sandboxes them. Pi leaves that to containers, and Cline asks by default.
- License
- Aider, OpenCode, Cline, Goose and Qwen Code use Apache 2.0 or MIT. Crush uses a Functional Source License, and Claude Code and Factory Droid are closed source.
What the scores weigh
- Agent quality in real codebases
- Model choice and local model support
- Tool and MCP integration
- License and price
- Maintenance in 2026
Scores are editorial, from 0 to 100, and use these criteria. Full method · Disclosure
About terminal coding agents
The agents here fall into three groups. Claude Code and Codex come from the model vendors and center on their own models. Aider, OpenCode, Cline, Goose, Qwen Code and Pi are open source, and they connect to many providers, including local model servers. Crush is source-available, and Factory Droid and GitHub Copilot's CLI are commercial services that bring their own model access.
Permissions differ more than the feature lists suggest. Cline asks before each edit and command unless auto-approve is on. Pi has no built-in permission system, PocketHarness* confines shell commands with Linux Landlock, and YunusPi* uses safety hooks. MCP support is common, but Aider and Pi do not include it.
Scores are editorial judgments against the criteria. Model pricing is separate from the agent, so a free agent can still cost money through its model provider.
Frequently asked questions
- What is the best free terminal coding agent?
- OpenCode, Cline, Goose and Qwen Code are free software that you pair with your own model access. OpenCode and Aider also run with local models, while Claude Code and Factory Droid are paid products.
- Can these agents run local models?
- Yes for Aider, OpenCode, Cline, Goose, Qwen Code, Pi, Crush, Codex, GitHub Copilot CLI, Factory Droid, PocketHarness and YunusPi. Claude Code runs Claude models only.
- Which agents support MCP servers?
- Claude Code, Codex, OpenCode, GitHub Copilot CLI, Cline, Goose, Qwen Code, Crush and Factory Droid support MCP servers. Aider, Pi, PocketHarness and YunusPi have no built-in MCP support, though Pi can add it through extensions.
Tools for choosing terminal coding agents
All tools- FinderAlternatives finderType the name of a product you already use, and the finder lists the other products from the same rankings in ranked order. Free-only and open-source-only filters narrow the list, and links lead to the product's full alternatives page and to comparison pages.
- FinderSoftware finderThe software finder searches the products in the rankings on this site. Choose a kind, category, platform and price rule, and each result shows its best rank. The results are server-rendered, so the form works without JavaScript.
Made by, or connected to, the publisher of this site or people the publisher works with. Listed on the same criteria as everything else, with the lift described in How we rank and Disclosure.








