Best AI coding agents in 2026, compared

The best AI coding agents of November 2026, ranked on autonomy, models, sandboxing, MCP, team controls, and price, plus Claude Code and Cursor alternatives.

Published
Reading time
15 min read
Level
Intermediate
By
AI for Devs
TL;DR
  • Claude Code is the best AI coding agent overall as of November 16, 2026. It covers the terminal, IDEs, desktop, web, and Slack, offers an OS-level sandbox for shell commands, and supports MCP, but it runs only Claude models.
  • Codex is the best value. Its Apache-2.0 CLI sandboxes commands by default on macOS, Linux, and Windows, and every ChatGPT plan includes Codex, from Free and the $8 Go plan up.
  • GitHub Copilot has the widest model choice for one fee. The $10 Pro plan lists the same Anthropic, OpenAI, Google, and xAI models as the $100 Max plan.
  • Cursor's plans since October 12, 2026 include only Grok and Cursor's own models. Claude, GPT, and Gemini cost API list price on Premium and above, which makes Devin Desktop, Copilot, and Cline the main Cursor alternatives.
  • Gemini CLI stopped serving individual users on June 18, 2026. Google's replacement, Antigravity CLI, is free to start but closed source.

AI coding agents are tools that read a repository, edit files, run commands, and repeat until a task passes, with a person approving some, all, or none of the steps. Three widely used ones changed this year: Google replaced Gemini CLI with Antigravity CLI, Windsurf became Devin Desktop, and Cursor moved Claude and GPT out of its new plans. This ranking scores ten agents on seven criteria, with prices and defaults checked on November 16, 2026, and gives each a "best for" line. To pick the model inside the agent, read best LLM for coding; this article ranks the tools.

#Ranking criteria for AI coding agents

Each agent was scored on seven criteria, weighted toward autonomy and safety because those are the hardest to change after a rollout. Every fact comes from the vendor's own docs, pricing page, changelog, or repository.

  • Autonomy: planning, subagents, and cloud machines that open pull requests while your laptop is closed.
  • Interface: terminal, IDE, desktop, web, or several.
  • Model choice: one vendor, several vendors in the plan, or any provider through your own key.
  • Sandboxing: an OS-enforced boundary around shell commands, and whether it is on by default.
  • MCP: support for Model Context Protocol servers that reach tickets, databases, and docs.
  • Team controls: SSO, admin settings a developer cannot override, and spending limits.
  • Price: the cheapest plan with frontier models, and how usage is metered.

No benchmark was run for this article. Benchmarks score a model and an agent together, and the agent moves the result. On Vals AI's archived SWE-bench Verified run, GPT 5.5 scored 82.6% in mini-SWE-agent and 76.4% in Codex.

#AI coding agents compared at a glance

Claude Code, Codex, and GitHub Copilot cover the most surfaces. Cline, OpenCode, and Aider are the open-source options that take any provider's key. Every agent except Aider documents MCP support.

RankAgentRuns inModelsOpen sourceCheapest paid plan
1Claude CodeTerminal, IDEs, desktop, web, SlackClaude onlyNoPro, $20
2CodexTerminal, IDE, ChatGPT apps, cloudOpenAICLI, Apache-2.0Go, $8
3GitHub CopilotIDEs, Xcode preview, CLI, app, github.comAnthropic, OpenAI, Google, xAI, moreNoPro, $10
4CursorEditor, CLI, cloudGrok, Composer; others at API priceNoPlus, $8, Grok only
5Devin DesktopEditor, local and cloud agentsClaude, GPT, Cognition SWENoPro, $20
6ClineVS Code, JetBrains, CLIAny, own keyApache-2.0Free
7OpenCodeTerminal, desktop betaAny, including localMITFree; Go, $10
8KiroEditor, CLI, webClaude, GPT, open-weightNoPro, $20
9Antigravity CLITerminalGemini; third-party on UltraNoNo charge
10AiderTerminalAny, own keyApache-2.0Free

#The 10 best AI coding agents, ranked

The top three differ mostly on model choice: Claude Code for capability, Codex for safe defaults and price, and Copilot for vendor breadth.

#1. Claude Code

Claude Code is Anthropic's agent, and it ranks first because it scores well on six of the seven criteria. It runs in the terminal, VS Code, JetBrains IDEs, a desktop app, the browser, and Slack, and every surface shares the same CLAUDE.md files, settings, and MCP servers. Subagents, cloud sessions, and scheduled tasks keep work going after you close the laptop.

Interactive sessions start in auto mode from v2.1.283, where a separate classifier model reviews each action before it runs. The Bash sandbox uses Seatbelt on macOS and bubblewrap on Linux and WSL2, but it is off by default and absent on native Windows. Admins push managed settings that local config cannot override.

Model choice is the weak point. Claude Code runs Claude models through Anthropic, Bedrock, Google Cloud, or Microsoft Foundry, and Anthropic does not support other models. Pro costs $20 a month, Max $100, and Ultra $200.

Best for: teams that want the most complete agent on every surface and are content with Claude models.

#2. Codex

Codex is OpenAI's agent, available as a CLI, an IDE extension, the ChatGPT desktop and mobile apps, and Codex Cloud. The CLI is open source under Apache 2.0, written in Rust, with about 135,000 GitHub stars and release 0.169.0 on November 13, 2026.

Codex turns its sandbox on by default and enforces it natively with Seatbelt on macOS, bubblewrap on Linux and WSL2, and a Windows sandbox. The default workspace-write mode edits inside the workspace and asks before going further. On Business and Enterprise, admins push a requirements.toml that locks approval policy, sandbox mode, and allowed MCP servers.

Every ChatGPT plan includes Codex: Free, Go at $8, Plus at $20, Pro from $100, and Business at $20 per user billed annually. Plus covers an estimated 15 to 160 local GPT-6.1 Sol messages per five hours. The plans cover OpenAI models only.

Best for: developers who want a sandboxed agent by default at the lowest price, on OpenAI models.

#3. GitHub Copilot

GitHub Copilot is the broadest product here: completions, an agent in VS Code, JetBrains, and Xcode, a CLI, a desktop app, and a cloud agent that opens pull requests from github.com. Copilot CLI reached general availability on February 25, 2026, and on November 4 Copilot joined Xcode's built-in coding assistant in public preview.

Every plan lists the same models, including Claude Opus 5.5 and Sonnet 5.5, GPT-6 variants, Gemini, Grok, and Kimi K3, and the CLI also takes your own OpenAI-compatible or Anthropic endpoint. The CLI asks before each tool call by default, /sandbox enable isolates it, and --cloud moves a session to GitHub. Cloud agent sessions on Actions stop at 59 minutes.

Pro costs $10 a month, Pro+ $39, and Max $100, metered in AI credits. Business is $19 and Enterprise $39 per seat, with pooled credits under admin limits. Since November 6, admins can manage code review settings through the REST and GraphQL APIs.

Best for: teams on GitHub that want several vendors' models under one bill and agents that turn issues into pull requests.

#4. Cursor

Cursor is still the most complete AI editor, with an agent, a CLI that shares the editor's MCP setup, cloud agents on their own virtual machines, and Bugbot code review. Its default Auto-review mode runs allowlisted calls, sandboxes shell commands where possible, and sends the rest to a classifier. Teams adds SAML or OIDC SSO, and Enterprise adds SCIM and audit logs.

It drops to fourth on model choice and price. SpaceX completed its purchase of Cursor on August 14, 2026, and the plans launched October 12 include only Grok and Cursor's Composer models in their usage pools. From Premium at $30 a month, Claude, GPT, and Gemini bill at API list price from prepaid credit. The $8 Plus plan excludes them, cloud agents, and your own keys.

Best for: developers who want the best editor and either work in Grok or accept API rates for other models.

#5. Devin Desktop

Devin Desktop is Windsurf under a new name. Cognition renamed it on June 2, 2026, kept existing plans unchanged, and made the Agent Command Center the main view, so one window runs local agents and Devin Cloud agents. It also manages third-party agents through the Agent Client Protocol.

Devin Local, the default agent, uses allow, ask, and deny rules that cover MCP tools, with optional OS-level sandboxing. The picker lists Claude and GPT models next to Cognition's SWE models. Pro costs $20 a month and Max $200, Teams is $80 a month plus $40 per full seat, and Devin Cloud is sold separately.

Best for: Windsurf users, and teams that want local and cloud agents run from one editor.

#6. Cline

Cline is the strongest open-source agent for developers who work in an editor. It is Apache-2.0 licensed with about 71,700 GitHub stars and runs in VS Code, JetBrains, a CLI, and a desktop app. You bring keys for Anthropic, OpenAI, Google, OpenRouter, Bedrock, local Ollama, or any OpenAI-compatible API, and pay the provider directly.

In the extension, Act mode asks before every file edit and terminal command. The CLI defaults the other way, and a command-line prompt runs in YOLO mode unless you add --auto-approve false. Both support MCP. Enterprise adds SSO, SCIM, role-based access, provider limits, and audit logs at a custom price.

Best for: teams that want approval on every step and full control over which provider sees their code.

#7. OpenCode

OpenCode is the open-source terminal agent with the widest provider support. It is MIT licensed with about 227,000 GitHub stars, and v1.19.5 shipped on October 28, 2026. It finds local Ollama, LM Studio, and vLLM servers on its own, and it can sign in with a GitHub Copilot or ChatGPT Plus plan in place of an API key.

It ships a full-access build agent, a read-only plan agent, and MCP support. The base permission policy allows edits and shell commands, and the shell runs with your user's full authority, so add ask rules or use a container. The tool is free, and the optional Go plan costs $10 a month.

Best for: developers who want a terminal agent like Claude Code with any model, including local ones.

#8. Kiro

Kiro is built around specs: a feature starts as requirements, a design, and a task list before the agent writes code. The same agent runs in an editor, a CLI with a headless mode for CI, and a web agent that opens pull requests, with hooks and MCP throughout. Its docs cover AWS IAM Identity Center and GovCloud.

Models include Claude Opus 5 and Sonnet 5, GPT-5.6, and open-weight models such as GLM-5, but not Claude Opus 5.5 or any GPT-6 model. Plans are credit-based: Pro is $20 for 1,000 credits, Pro+ $40, Pro Max $100, and Power $200, and teams pay $20 per seat for 500 pooled credits.

Best for: teams that want a written spec before any code changes, especially teams already on AWS.

#9. Antigravity CLI

Antigravity CLI is Google's replacement for Gemini CLI. On June 18, 2026, Gemini CLI stopped serving individual Google AI Pro and Ultra users and free Code Assist users. Code Assist Standard and Enterprise licenses keep access, and the Apache-2.0 Gemini CLI repository is still maintained, at v0.68.0 on November 10.

Antigravity CLI supports MCP servers, and its Default preset runs terminal commands in a sandbox limited to the workspace and temp directories, with no network access. It costs nothing to start, Google AI Pro and Ultra raise quotas, and only Ultra lists third-party models. The CLI is closed source, a shift developers criticized in The Register's coverage.

Best for: developers who want Gemini models in a free terminal agent.

#10. Aider

Aider bills itself as AI pair programming in your terminal. It commits each change to git with a generated message, so any step is one git revert away, and it works with most providers and local models through your own key.

It ranks last on maintenance. The latest GitHub release is v0.86.0 from August 9, 2025, and the last commit landed on May 22, 2026. Its README and release notes do not mention MCP, a sandbox, or cloud sessions.

Best for: developers who want a small, git-first tool and accept slow updates.

#AI coding agent pricing compared

Paid plans for every commercial agent start between $8 and $20 a month, so the entry price rarely decides. The metering differs: Claude Code and Codex use usage windows, Copilot and Kiro use credits, Cursor uses a weekly pool, and Cline, OpenCode, and Aider pass the provider's token price through.

AgentIndividual plans per monthTeam plansMetering
Claude CodePro $20, Max $100, Ultra $200Team $25 or $125 per seat; Enterprise $20 per seat plus API-rate usageUsage limits
CodexFree, Go $8, Plus $20, Pro $100 to $500Business $20 per user, annualFive-hour and weekly limits
GitHub CopilotFree, Pro $10, Pro+ $39, Max $100Business $19, Enterprise $39 per seatAI credits, pooled for orgs
CursorFree, Plus $8, Premium $30, Super $100, Ultra $200Teams from $30 per userWeekly Grok pool; others at API price
Devin DesktopFree, Pro $20, Max $200$80 plus $40 per full seatPlan usage
KiroFree, Pro $20, Pro+ $40, Pro Max $100, Power $200$20 per seatCredits, $0.04 each extra
Antigravity CLINo charge; Google AI plans raise quotasSeparate enterprise pricingFive-hour and weekly quotas
Cline, OpenCode, AiderFree; OpenCode Go $10Cline Enterprise, customProvider's token price
Monthly prices of individual plans for ten coding agents on a $0 to $200 scale. Paid plans start at $8 to $20 and top out at $100 to $200, with Codex Pro also at $500.US dollars per month, individual plans, read November 16, 2026$0$50$100$150$200Claude CodeFree plan excludes it$20$100$200CodexPro tiers $100, $200, $500$8$20$100$200GitHub CopilotAI credits metered$10$39$100CursorClaude, GPT at API price$8$30$100$200Devin Desktopformerly Windsurf$20$200Kirocredits per plan$20$40$100$200OpenCodeGo plan, or your own key$10Antigravity CLIno charge, quotas varyCline, Aiderpay the model providerfree tierpaid plancheapest paid plan
Fig. 1Paid plans start at $8 to $20 a month and stop at $100 to $200, apart from Codex Pro at $500, so compare what each tier includes rather than the entry price.

For the agents that pass token prices through, the LLM pricing dataset lists what each provider charges per million tokens.

#Sandboxing and approval defaults

Approval defaults differ more than any other criterion. Claude Code, Codex, Cursor, and Antigravity CLI let a sandbox or a classifier approve routine commands out of the box. Copilot CLI and the Cline extension ask first, and OpenCode and the Cline CLI run everything until you add rules.

Default approval behavior of eight coding agents: two start by asking, four let a sandbox or classifier approve routine commands, and two run everything unless you add rulesAsks you firstSandbox or classifierRuns everythingClaude CodeManualAuto modeBypassCodexRead-onlyWorkspace-writeFull accessCopilot CLIManualSandbox, assistedAllow all toolsCursorEmpty allowlistAuto-reviewRun EverythingCline in VS CodeApprove eachSafe commandsYOLOCline CLIApproval onYOLOOpenCodeAsk rulesBuild agentAntigravity CLIAsk rulesDefault presetdefaultother documented modenot documented
Fig. 2Out of the box, four agents let a sandbox or a classifier approve routine commands, two ask first, and two run everything, so set the mode you want before the first session.
AgentOS sandbox for shell commandsOn by defaultCloud execution
Claude CodeSeatbelt, bubblewrap; none on native WindowsNoCloud sessions
CodexSeatbelt, bubblewrap, Windows sandboxYesCodex Cloud
Copilot CLI/sandbox enableNo--cloud and the cloud agent
CursorSeatbelt; Landlock and seccomp on Linux 6.2+Yes, in Auto-reviewCloud agents
Devin DesktopOptional, in Devin LocalNoDevin Cloud, sold separately
Antigravity CLIWorkspace and temp only, no networkYes, Default presetNot documented
OpenCodeNoneNot applicableNot documented

A sandbox limits damage from a bad command, and it has gaps. Claude Code's sandbox can read the whole disk by default, including ~/.ssh, so deny credential paths yourself. No sandbox stops an agent from sending code to a model provider or an MCP server; that is a network question.

#Claude Code alternatives

The best Claude Code alternative is Codex for the same terminal-first workflow with a sandbox on by default, OpenCode for that workflow with any model, and Copilot CLI for Claude and GPT under one subscription. Most teams look because Claude Code runs only Claude models.

  • Codex is the closest match: a CLI, IDE extension, desktop app, and cloud agent, with plans from $8.
  • OpenCode mirrors Claude Code's build and plan modes and runs any provider, including local models.
  • Copilot CLI includes Claude Opus 5.5 and Sonnet 5.5 next to GPT and Gemini for $10 a month, with plan mode, custom agents, hooks, and MCP plugins.
  • Cline CLI is open source and takes any key, but set --auto-approve false before pointing it at a real repository.

If cost is the problem rather than models, compare plans first. Claude Code Pro and Codex Plus both cost $20, and a Claude Team premium seat gives five times the usage of a standard seat.

#Cursor alternatives

The best Cursor alternative is Devin Desktop for a full AI editor with local and cloud agents, GitHub Copilot in VS Code for the cheapest multi-vendor models, and Cline for an open-source agent in VS Code or JetBrains. The usual reason to switch is that Cursor's October 12 plans no longer include Claude, GPT, or Gemini.

  • Devin Desktop is the closest editor, from $20 a month, with Claude and GPT in its picker.
  • GitHub Copilot in VS Code keeps the editor Cursor was built from, and Pro at $10 includes Claude, GPT, Gemini, and Grok.
  • Cline runs in VS Code or JetBrains with your own keys and asks before every edit.
  • Kiro suits teams that want a spec before code, from $20 a month.

Before moving, check your plan. Cursor's docs say legacy Pro, Pro+, Ultra, and Teams plans continue unless you change or cancel them, and they still include third-party models through an Other Models pool. Switching to the new plans is permanent.

#Run every coding agent through one gateway

An AI gateway lets a team run several coding agents under one set of budgets, routing rules, and logs, instead of a key and a bill per tool. Bifrost, an open-source AI gateway, documents setup for Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenCode, GitHub Copilot, Cursor, Zed, and Roo Code.

Each agent connects on the API path it already speaks: /anthropic for Claude Code, /openai/v1 for Codex CLI, /openai for OpenCode, and /genai for Gemini CLI. Copilot connects through its bring-your-own-key settings, and Cursor through its OpenAI base URL override, which needs a gateway reachable from the internet.

  • Each developer gets a virtual key, deny-by-default for providers, with its own budget and token or request limits.
  • Budgets also apply per team and customer, reset hourly to yearly, and any single failing budget blocks the request.
  • Routing rules in CEL match on model, headers, key, team, or budget use, then override the provider and model or define fallbacks.
  • Every agent request is logged in the dashboard, and configured MCP tools are served at one /mcp endpoint, filtered per key.
Six coding agents reach Bifrost on their own API paths. Each request passes a virtual key, budget and rate-limit checks, and routing rules, and is logged before it reaches a provider. Bifrost Edge sends laptop traffic to the same gateway.Coding agent, API pathBifrost gatewayProviderClaude Code/anthropicCodex CLI/openai/v1OpenCode/openaiGemini CLI/genaiCopilot CLIBYOK variablesCursorbase URL override1. Virtual keyallowed providers, models2. Budgets, rate limitsany failing budget blocks3. Routing rulesCEL match, fallbacks4. Logsevery request recordedMCP tools also served at /mcpAnthropicOpenAIGoogle GeminiBedrock, VertexvLLM, OllamaBifrost Edge on each laptopClaude Code, Codex CLI, OpenCode, Antigravity CLIEnterprise; no per-app setupclient or providercheck that can blockBifrost gateway and Edge
Fig. 3Each agent reaches the gateway on its own API path, and every request passes the same key, budget, and routing checks before a provider sees it, which gives one log and one budget across tools.

The Bifrost CLI starts Claude Code, Codex CLI, OpenCode, or Gemini CLI with the gateway URL, credential, and model already set. These commands were not run for this article:

not run here
Shell
bifrost claude --model anthropic/claude-opus-5-5
bifrost codex --model openai/gpt-6.1-sol

Routing has limits per agent. Anthropic does not support Claude Code on non-Claude models, and Bifrost's automated Codex tests cover only the OpenAI path. The dependable setup is one vendor's models per agent, spread across providers such as Anthropic and Bedrock, with budgets and logs shared by every agent.

These agents run on employee laptops, where a shared config file does not reach every machine. Bifrost Edge extends the gateway's governance to those machines. It requires the Enterprise gateway and sends traffic from Claude Code, Codex CLI, OpenCode, and Antigravity CLI through Bifrost with no base URL changes, so the same virtual keys, budgets, guardrails, and audit logs apply. It also inventories the MCP servers configured in those tools, and the supported applications page lists current coverage.

#How to choose an AI coding agent

Choose on three questions in order: which models you need, how much autonomy your security team accepts, and whether developers work in a terminal or an editor. Then pilot two finalists for a week on real tickets.

  1. Models. Claude only points to Claude Code, OpenAI to Codex, and several vendors to Copilot, Cline, or OpenCode.
  2. Autonomy. Pick the approval default you want from Figure 2 and confirm it on every operating system your team uses.
  3. Interface. Terminal users fit Claude Code, Codex, or OpenCode; editor users fit Cursor, Devin Desktop, Copilot, or Cline.
  4. Pilot. Give both finalists the same ten tickets and compare cost per merged pull request, with both routed through one gateway so the spend lands in one log.
  5. Recheck each quarter. Three of these ten changed name, owner, or plan terms between June and October 2026.

The AI agent explainer covers the loop every tool here runs, and the coding agents hub and news feed track the next change.

#Questions

What is the best AI coding agent in 2026?

As of November 16, 2026, Claude Code is the best AI coding agent overall. It runs in the terminal, IDEs, a desktop app, the browser, and Slack, with an OS-enforced sandbox, MCP support, and admin-managed settings. Its weakness is model choice, since it runs only Claude models. Codex is the best value, and GitHub Copilot offers the most vendors' models in one plan.

What is the best free AI coding agent?

Codex is the best free option, because ChatGPT Free includes it with GPT-6 Luna in the desktop app, subject to rollout. Among open-source tools, Cline and OpenCode cost nothing and accept any provider's API key or a local model, so you pay only for tokens. Antigravity CLI is also free, with quotas that refresh weekly on Gemini models.

What are the best Claude Code alternatives?

Codex is the closest Claude Code alternative: a terminal-first agent whose sandbox is on by default, with plans from $8 a month. OpenCode gives a similar terminal workflow with any model, including local ones. GitHub Copilot CLI covers Claude, GPT, and Gemini models from $10 a month. All three support MCP servers, and all three can also run behind an AI gateway.

What are the best Cursor alternatives?

Devin Desktop, formerly Windsurf, is the closest Cursor alternative: a full AI editor with local and cloud agents from $20 a month. GitHub Copilot in VS Code costs $10 a month and includes Claude, GPT, and Gemini models. Cline is free and open source inside VS Code or JetBrains with your own keys. Cursor's current plans bill Claude and GPT at API list price.

Is Gemini CLI still available?

Only for some users. On June 18, 2026, Gemini CLI stopped serving individual Google AI Pro and Ultra users and free Gemini Code Assist users. Gemini Code Assist Standard and Enterprise licenses keep access, as do paid Gemini API keys, and the Apache-2.0 repository is still maintained. Google's replacement for everyone else is Antigravity CLI, which is closed source.

What is the difference between an AI coding agent and a coding assistant?

A coding assistant suggests code while you type, and you accept or reject each suggestion. A coding agent takes a task, then reads files, edits them, runs commands and tests, and repeats until the task passes, asking for approval at the points you configure. Most products in this ranking do both, such as Copilot's completions alongside its CLI and cloud agent.

Can one coding agent use models from several providers?

Yes. GitHub Copilot, Cline, OpenCode, Kiro, and Devin Desktop all offer models from several vendors, and Cursor does at API list price on Premium and above. Claude Code runs only Claude models, and Codex plans cover OpenAI models. An AI gateway such as Bifrost can also give several agents one set of keys, budgets, and logs across providers.