Guides · September 2026

The best AI coding agents of 2026

The ten worth knowing, scoped to the ones that run in a terminal — what each is, who makes it, what it costs, and who it fits — without a ranking nobody can defend.

The scope, and why it’s terminal-first.

A coding agent, as distinct from autocomplete or a chat panel, is a program you hand a task to: it reads your repository, edits files, runs commands and tests, and comes back with a result or a question. In 2026 the category has a clear centre of gravity, and it is the terminal. Every major vendor ships its agent as a CLI first — Anthropic’s Claude Code, OpenAI’s Codex, Google’s Gemini CLI — and the open-source field grew up there. The IDE plug-ins and web versions wrap the same engines.

So this list is terminal-first on purpose. It leaves out editor-only tools and cloud-only ones except where the same product also runs as a CLI. It also refuses to rank them one to ten: the honest ordering depends on which model subscription you already pay for, whether the code must be open, and whether you want a vendor’s polish or a community’s flexibility. Instead the agents are grouped by who they’re for. Every fact below was checked against the vendor’s site or repository on 2026-09-03; the field moves monthly, and this page moves with it.

The ten, side by side.

AgentMakerLicenceModelsHow you payStandout
Claude CodeAnthropicProprietaryClaude; Bedrock and Vertex from the CLIClaude Pro/Max or Team plan, or the APISubagents, hooks, skills, Remote Control
Codex CLIOpenAIApache-2.0OpenAI modelsChatGPT Plus/Pro/Business/Edu/Enterprise, or an API keyOne agent across CLI, IDE, desktop and cloud; codex cloud handoff
Gemini CLIGoogleApache-2.0GeminiFree with a Google account (60/min, 1,000/day); API key; Vertex1M-token context, checkpointing, GitHub Action
OpenCodeAnomalyMITAny provider via your keys, or OpenCode ZenFree; pay your provider, or Zen per token at costBuild and plan agents, TUI plus desktop app, shareable sessions
AiderAider-AIApache-2.0Almost any LLM, including localFree; pay your providerGit auto-commits, repo map, voice-to-code
Cursor CLICursorProprietaryAnthropic, OpenAI, Gemini, Cursor’s ownCursor plans: Hobby free, Pro $20/mo, on-demand usage afterHeadless mode, shell mode, GitHub Actions
Copilot CLIGitHubProprietaryGitHub’s model rosterCopilot plans: Free $0, Pro $10/mo, Pro+ $39/mo, with AI creditsBuilt-in agents; GitHub MCP server preconfigured
AmpAmp Frontier Corporation (spun out of Sourcegraph)ProprietaryOpenAI and Anthropic frontier models, plus fast onesMegawatt $20/mo, Gigawatt $200/mo, or pay-as-you-go; bring your own keysOrbs (cloud sandboxes), Mac and iOS apps, linked ChatGPT subscription
GooseBlock; now the Agentic AI Foundation (Linux Foundation)Apache-2.015+ providers, including OllamaFree; pay your providerDesktop app and CLI, MCP extensions, recipes
ClineCline Bot Inc.Apache-2.0Any provider, including Ollama and LM StudioFree; bring your own keyPlan/Act modes, checkpoints, VS Code + JetBrains + CLI

“Proprietary” means the vendor publishes no source licence; Claude Code’s package is under Anthropic’s Commercial Terms of Service. Copilot Free includes the CLI with limited usage. Prices are US, as of 2026-09-03.

Who each one is for.

Grouped, not ranked: first the vendor agents that ride a subscription you may already have, then the open ones that take any model.

Claude Code — the one to beat, if you’re on a Claude plan

Anthropic’s agent set the register for the category: a CLI that reads the repo, edits, runs tests and commits, and now spawns subagents, runs hooks around its own actions, packages workflows as skills, and hands a session between terminal, desktop app, web and phone. It is not open source — the package is under Anthropic’s Commercial Terms — and it is Claude-only unless you route through Bedrock or Vertex. If you already pay for Pro or Max it is the obvious first agent; the plan’s usage window is the practical constraint, and the Claude Code hub covers what each plan gets you.

Codex CLI — the same, for ChatGPT subscribers

OpenAI’s terminal agent, Apache-2.0 on GitHub, signs in with a ChatGPT plan or an API key and runs the same agent across the CLI, an IDE extension, a desktop app and the cloud — codex cloud hands a task to a hosted environment and brings the result back. /permissions sets how much it may do unasked, codex resume picks up old threads, and codex mcp wires in tools. The trade is the mirror of Claude Code’s: an open client tied to one vendor’s models. The Codex CLI hub goes deeper.

Gemini CLI — the free one

Google’s, Apache-2.0, and the only vendor agent with a real free tier: sign in with a Google account for 60 requests a minute and 1,000 a day, with a million-token context. Checkpointing, MCP, a GEMINI.md context file and a GitHub Action round it out. For a student, a side project, or a first agent it is the cheapest serious option; for heavy daily use you’ll graduate to an API key or Vertex.

Cursor CLI — for Cursor’s subscribers, outside the editor

Cursor’s agent without Cursor’s IDE: one install command, then run it interactively, in a shell mode with safety checks, or headless in scripts and GitHub Actions. It picks from Anthropic, OpenAI, Gemini and Cursor’s own models on the same Hobby, Pro ($20 a month) and higher plans the editor uses, with on-demand usage billed after the included amount. Proprietary. It makes most sense if you already live in Cursor and want the same agent in CI.

Copilot CLI — the GitHub-native one

GitHub’s terminal agent installs with npm install -g @github/copilot, comes with built-in agents for exploring, tasks, code review and research, and ships with GitHub’s own MCP server preconfigured, so merging a pull request from the prompt is a sentence. It’s in every Copilot plan, including Free ($0, limited usage); Pro is $10 a month. Proprietary, and its model roster is GitHub’s to choose. The pick for anyone whose workflow is GitHub end to end.

Amp — for people who want a lab’s opinion

Amp spun out of Sourcegraph in December 2025 as Amp Frontier Corporation. It is multi-model by conviction — OpenAI and Anthropic frontier models plus fast ones, each used where it’s best — and runs on the web, in the CLI, and in Mac and iOS apps, with “orbs” as cloud sandboxes for parallel agents. Subscriptions are $20 (Megawatt) and $200 (Gigawatt) a month with included usage, or pay-as-you-go at API rates; a linked ChatGPT subscription can carry the tokens. Proprietary and opinionated; if you want a vendor that changes its mind fast, this is the one.

OpenCode — the open field’s default

Anomaly’s MIT-licensed agent is the one most people mean by “open Claude Code”: a fast terminal UI with a build agent and a read-only plan agent a Tab apart, LSP awareness, shareable sessions, and now a desktop app and an IDE extension. It takes any provider through your own keys, or OpenCode Zen, a gateway that sells tested models per token at cost plus card fees. OpenCode vs Aider compares the two open leaders directly.

Aider — the veteran

The oldest agent on this list and still one of the most disciplined: Apache-2.0, installed with pip, model-agnostic down to local weights, and known for its repository map and for committing every change to git with a sensible message so you can always step back. Voice-to-code and a watch mode for editor comments are there too. It is less a chat than a pair programmer with a strong opinion about small diffs. Choose it when git hygiene matters more than a pretty TUI.

Goose — the foundation’s agent

Built by Block and contributed to the new Agentic AI Foundation at the Linux Foundation alongside MCP, announced December 2025. Apache-2.0, written in Rust, with a native desktop app and a CLI, fifteen-plus providers including Ollama for local models, seventy-odd MCP extensions and “recipes” for repeatable workflows. Less code-specialised than the others — it wants to be a general agent — which is a strength if your tasks reach past the repo.

Cline — the extension that grew a terminal

Cline began as the open-source VS Code agent and kept the name as it added a JetBrains plugin, a CLI with interactive and headless modes, and an SDK. Apache-2.0 and bring-your-own-key across Anthropic, OpenAI, Gemini, OpenRouter, Bedrock, Ollama and any OpenAI-compatible endpoint. Its Plan/Act split, checkpoints and diff review are the safest defaults on the list for someone new to agents. Choose it if you want one agent in the editor and the terminal with the same configuration.

How to pick.

Start from the subscription you already pay for. A Claude plan makes Claude Code nearly free at the margin; a ChatGPT plan does the same for Codex; a Copilot or Cursor seat does it for their CLIs. Paying twice for models is the most common mistake on this list, and the vendor agents exist precisely so you don’t.

If you don’t want to be tied to one vendor’s models — because you switch as the leaderboard moves, because some work must stay on a local model, or because the code must be auditable — pick from the open four. OpenCode for the best terminal experience, Aider for git discipline, Goose for tasks beyond code, Cline for editor and terminal in one. All four are free; you pay your provider.

Then run two. Nothing stops you, the agents don’t conflict, and the fastest way to learn which one suits a codebase is to give the same task to both in separate worktrees and read the diffs.

The one thing they share.

Every agent on this list runs in a terminal, on a machine, for a long time. That is the category’s unspoken requirement: a real checkout, a real toolchain, credentials that already live somewhere, and hours of uninterrupted runtime. It is why the phone versions are companions rather than replacements, and why the moment you have two agents on two machines the problem stops being which agent and starts being where you watch them.

That is the problem spawnd solves, and it is agent-agnostic on purpose. One daemon on each host you own dials out — no open ports, no VPN. A worker process on the host owns each session’s PTY, so an agent’s session survives the closed tab, the dropped connection, the laptop lid and a daemon restart, scrollback intact. Any browser is the console; on a phone it installs to the home screen as a web app, with attention cues when an agent waits on a yes and notifications on the phone. Claude Code, Codex, OpenCode and Aider are built-in shortcuts; any of the others is a named command in a real shell. Agents authenticate on the host as they always did — spawnd holds no provider credentials and adds no API-key markup, so a Claude or ChatGPT plan is used exactly as the vendor’s CLI uses it. Your browser talks to each daemon peer-to-peer, end-to-end encrypted, and the server that introduces them never sees session content. Open source, MIT/Apache-2.0.

Start

Give whichever agent wins a machine, and one console.

$curl -fsSL https://spawnd.dev/install.sh | sh
Sign up free
Install the daemon

Questions

Which AI coding agent is best?
There is no defensible single answer. On a Claude plan, Claude Code; on ChatGPT, Codex CLI; for free, Gemini CLI; for open source and any model, OpenCode or Aider. The best one is the one whose models you already pay for and whose licence you can live with.
Which coding agents are open source?
Codex CLI, Gemini CLI, OpenCode, Aider, Goose and Cline are, under Apache-2.0 or MIT. Claude Code, Cursor CLI, Copilot CLI and Amp are proprietary.
Can I run several agents at once?
Yes, and it’s common: separate worktrees or separate machines, one agent each. The overhead is watching them — which is what a persistent terminal console across hosts is for.