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.

13 products ranked Updated November 2026 How we rank Share

The ranking

  1. Claude Code93.0
  2. OpenAI Codex91.5
  3. OpenCode90.0

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

ProductScorePricePlatformsModel providersLocal modelsBuilt-in MCP support
Claude Code93.0SubscriptionCommand lineWebClaude models through Anthropic or cloud hostsNoYes
OpenAI Codex91.5Free and open sourceCommand lineOpenAI models plus custom OpenAI-compatible providersYesYes
OpenCode90.0Free and open sourceWindowsmacOSLinuxCommand lineMany hosted and local providers, including OllamaYesYes
GitHub Copilot87.0Free plan, paid upgradesWebWindowsmacOSLinuxCommand lineCopilot-hosted models, or your own keys (BYOK)YesYes
Aider85.5Free and open sourceCommand lineAlmost any cloud or local modelYesNo
Cline82.0Free and open sourceWindowsmacOSLinuxCommand lineMany hosted providers, plus Ollama and LM StudioYesYes
goose80.0Free and open sourcemacOSLinuxWindowsCommand line15+ providers, including Anthropic, OpenAI and OllamaYesYes
Qwen Code79.0Free and open sourceLinuxmacOSWindowsCommand lineOpenAI, Anthropic, Gemini, Qwen APIs, Ollama, vLLMYesYes
Factory Droid76.5SubscriptionCommand lineFactory-managed models, or your own keys (BYOK)YesYes
Pi74.5Free and open sourcemacOSLinuxWindowsCommand lineMany hosted providers, plus local endpointsYesNo
Crush72.5FreemacOSLinuxWindowsCommand lineAny OpenAI- or Anthropic-compatible APIYesYes
YunusPi*65.0Free and open sourceLinuxCommand lineModels and providers you configure with your own keysYesNo
PocketHarness*62.0Free and open sourceLinuxCommand lineAbout 30 hosted services, plus local serversYesNo

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.

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.