Skip to main content

Best AI Coding Agents: Open Source and Vendor CLIs

Vendor agents run their own vendor's models, and open source agents run almost any model. After that, they differ most in price and safety defaults.

As of November 2026, the best coding agent CLI depends on the models you want. Use Claude Code for Claude, Codex CLI for OpenAI models and Antigravity CLI for Gemini. To switch providers or run local models, use OpenCode, Aider or Goose, which are free with your own provider. Codex CLI has the safest defaults: it sandboxes commands with network off on macOS, Linux and Windows, and every ChatGPT plan includes it, Free included.

A coding agent CLI is a terminal program that drives a language model to read your repository, edit files and run commands until a task is done. This page compares the ones that are current in November 2026. Facts were checked against each tool's own docs, pricing page or repository in November 2026. Model lists and the Cursor rename were rechecked on December 4, 2026. For what a coding agent is and how its loop works, start there.

What Changed in 2026​

Three changes affect which tools belong on this list.

Gemini CLI moved to Antigravity CLI for individuals. On June 18, 2026, Google stopped serving free and Google AI Pro and Ultra users in Gemini CLI. Those users now use Antigravity CLI, agy. Gemini CLI remains open source and still serves Gemini Code Assist Standard and Enterprise customers and paid API keys.

Kiro CLI is the successor to Amazon Q Developer CLI. The old Q Developer CLI repository stays available as open source.

Cursor joined SpaceX in August 2026 and was renamed Grok Build on November 30, 2026. Its cheapest paid plan uses only its own Grok and Composer models. Its terminal agent is now the Grok Build TUI, which runs as grok, and scripts that call the old agent command keep working.

Price and Models​

ToolLicensePricing modelModels
Claude CodeProprietaryClaude Pro, Max, Ultra, Team or Enterprise plan, or pay per tokenClaude, Opus 5.5 by default, through Anthropic, Bedrock, Google Cloud or Microsoft Foundry
Codex CLIApache 2.0Any ChatGPT plan including Free, or an API key at API pricesOpenAI models, GPT-6.2 Astra and Sol recommended, local models through Ollama or LM Studio, custom providers
Antigravity CLINo source publishedGoogle account on Free, Pro or Ultra, Gemini Enterprise, or a Gemini API keyGemini 4 models, plus Claude Sonnet 5.5 and Opus 5.5 on paid plans
Gemini CLIApache 2.0Gemini Code Assist Standard or Enterprise, paid Gemini API key, or Vertex AIGemini
OpenCodeMITFree with your own provider. Optional OpenCode Go from $10 per monthAny models.dev provider, ChatGPT and Copilot sign-in, local models
AiderApache 2.0Free with your own providerAlmost any model, including local models
AmpProprietaryFree Hobby tier with your own keys or subscriptions. $20 per month tier adds hosted cloud machine minutesAmp routes work across several vendors' models. You can also choose per thread
Grok Build TUI, formerly Cursor CLIProprietaryCursor plan, from Free to Ultra at $200 per monthGrok 4.7, 4.6, 4.5 and Composer 2.5. Claude, GPT and Gemini models at API list price on Premium and above
GitHub Copilot CLIProprietaryIncluded in every Copilot plan, including Free. Pro is $10 per monthSeveral vendors' models, or your own OpenAI-compatible, Azure OpenAI or Anthropic provider
Kiro CLINo source publishedKiro plans, from Free to Power at $200 per monthClaude models, or an Auto agent that picks models
GooseApache 2.0Free with your own provider15+ providers, local models through Ollama

Safety, Extensions and Automation​

ToolDefault permissionsOS sandboxMCPSkills and extensionsHeadlessPlatforms
Claude CodeAsks before edits and shell commandsOptional, macOS, Linux, WSL2YesSkills, plugins, hooks, subagentsclaude -p, GitHub ActionsmacOS, Windows, Linux
Codex CLIWrites in the workspace, asks for moreOn by default, macOS, Linux, WindowsYesSkills, plugins, hooks, subagentscodex exec, GitHub ActionmacOS, Windows, Linux
Antigravity CLIAsks before edits and commandsOptional, needed for auto modeYesSkills, plugins, hooks, subagentsagy -pmacOS, Windows, Linux
Gemini CLIAsks before toolsOptional, Seatbelt or containers and moreYesSkills, extensions, hooksgemini -p, GitHub ActionmacOS, Windows, Linux
OpenCodeAllows everything except .env readsNoneYesSkills, plugins, custom agentsopencode runmacOS, Windows, Linux
AiderAsks for confirmation, commits each change to gitNot documentedNot documentedNot documentedaider --messagemacOS, Windows, Linux
AmpRuns tools without askingNone locally. Threads can run in cloud sandboxes called orbsYesSkills, pluginsamp -xmacOS, Linux, Windows through WSL
Grok Build TUISet by Run ModemacOS and LinuxYesSkills, rulesgrok -p, or the old agent -pmacOS, Windows, Linux
GitHub Copilot CLIAsks before tools that are not allowedOptional local or cloud sandboxYes, GitHub's server built inSkills, custom agents, hookscopilot -pmacOS, Windows, Linux
Kiro CLIAllow, ask and deny rules with promptsOptional, macOS, Linux, WindowsYesSkills, steering files, custom agentsHeadless modemacOS, Windows, Linux
GooseAutonomous by defaultNot documentedYesSkills, recipesgoose runmacOS, Windows, Linux

"Not documented" means we did not find the feature in the tool's own docs. It does not prove the feature is missing.

How to Choose​

Start from the models you want, then check the safety defaults.

  • You want one vendor's models. Claude Code for Claude, Codex CLI for OpenAI, Antigravity CLI for Gemini.
  • You want to switch models. OpenCode, Aider and Goose run nearly any provider, including local models.
  • You are leaving Claude Code or Codex. See Claude Code Alternatives or Codex Alternatives.
  • You already pay for a tool. A ChatGPT plan includes Codex. Every Copilot plan includes Copilot CLI. A Cursor plan, now sold as Grok Build, includes its terminal agent.
  • You run agents unattended. Prefer a tool with an OS sandbox, or run the agent in a container or a cloud sandbox. OpenCode, Amp and Goose run actions without asking by default.

Claude Code​

Anthropic's agent runs in the terminal, VS Code, JetBrains, a desktop app and the browser. Its permission system has six modes and allow and deny rules your team can commit. The OS sandbox is optional. It suits teams that standardize on Claude. See Claude Code vs Codex CLI and Setting Up Claude Code.

Codex CLI​

OpenAI's Apache 2.0 agent sandboxes commands by default on macOS, Linux and Windows, with network off. Every ChatGPT plan includes it, Free included. It suits people who want open source code and safe defaults.

Antigravity CLI and Gemini CLI​

Antigravity CLI is Google's agent for individuals, built on the same core as the Antigravity desktop app. Gemini CLI remains for enterprise Code Assist and API customers. See Claude Code vs Gemini CLI and Antigravity CLI for the details of the move, and Gemini CLI vs OpenCode for an open source agent that runs Gemini and other models.

OpenCode​

OpenCode is an MIT-licensed agent with a terminal UI, a desktop app and a web app. It connects to almost any provider and loads skills from .claude/skills. It allows every action by default and has no OS sandbox, so set deny rules or isolate it. See OpenCode vs Claude Code and Codex vs OpenCode. Kilo Code's CLI is a fork of OpenCode, compared in OpenCode vs Kilo Code.

Aider​

Aider is an Apache 2.0 terminal agent that works with almost any model. It commits each change to git with a generated message, which makes every edit easy to undo. Aider vs Cline compares those commits with Cline's checkpoints. Its most recent release, 0.86.2, came out in February 2026.

Amp​

Amp runs threads on your machine, in cloud machines it calls orbs, or on runners you connect. It picks models for you across vendors. Its free tier charges no token fees when you bring your own keys or subscriptions. Amp Code pricing covers the paid tiers and Orb minutes. It runs tools without asking unless a plugin adds checks.

Grok Build TUI, Formerly Cursor CLI​

Cursor's site now reads "Cursor is now Grok Build". Its terminal agent is the Grok Build TUI, which runs as grok with grok -p for headless use. It now runs Cursor's agent, and command-line automations that call agent keep working.

Cursor's November docs said the CLI shared rules, skills and MCP configuration with the editor and read AGENTS.md and CLAUDE.md. See Cursor vs Claude Code and Codex vs Cursor.

GitHub Copilot CLI​

Copilot CLI comes with every Copilot plan. It ships with GitHub's MCP server, so it can work with GitHub issues and pull requests. You can also connect your own model provider, including local models through Ollama. GitHub Copilot Alternatives compares it with editors and agents outside GitHub.

Kiro CLI​

Kiro CLI replaced the Amazon Q Developer CLI. It uses Claude models, reads MCP configuration from the project's .kiro/ folder, and supports custom agents with fixed tool permissions. Its optional command sandbox is off by default.

Goose​

Goose is an Apache 2.0 agent with a desktop app, a CLI and an API. It is part of the Agentic AI Foundation at the Linux Foundation. It runs in Autonomous mode by default, so switch to Manual or Smart Approval with /mode if you want prompts. See OpenCode vs Goose.

Running Several Agents at Once​

Running several of these agents at once needs one checkout per agent, so their edits do not collide. Run Coding Agents in Git Worktrees covers the manual setup, and How to Run Multiple Claude Code Sessions applies it to Claude Code. Treq runs several of these agents in isolated workspaces and stacks dependent tasks for review.

Sources​

Model facts checked December 4, 2026:

Next Steps​