AI coding agents for the terminal (CLI) (2026)
Coding agents that run in your terminal: they read files, run commands and propose changes from a prompt. Here are the top 25 of 128 from the AgentScout directory.
Quick answer: the top picks on this list, ranked by GitHub stars and listing maturity, are opencode, CC Switch and Claude Code, out of 25 tools listed below. At a glance: 23 open-source, 23 free or freemium and 22 local or self-hosted across 25 link-checked tools (last verified ).
Verified on : every tool link on this page was checked by our daily link check. No paid placements.
Ranked comparison (top 10)
| # | Tool | Pricing | Best for | Open source | Runs locally | GitHub stars |
|---|---|---|---|---|---|---|
| 1 | Open source | write code, control a computer | Yes | Self-hosted | 230,681 | |
| 2 | Open source | write code, control a computer | Yes | 158,760 | ||
| 3 | Paid | write code, automate workflows | No | 157,912 | ||
| 4 | Open source | write code, give agents memory | Yes | Self-hosted | 156,297 | |
| 5 | Open source | write code, automate the browser | Yes | Self-hosted | 151,538 | |
| 6 | Open source | write code, control a computer | Yes | Offline | 137,128 | |
| 7 | Open source | write code, build an agent | Yes | Self-hosted | 125,292 | |
| 8 | Open source | write code | Yes | Self-hosted | 120,953 | |
| 9 | Open source | write code | Yes | Self-hosted | 109,529 | |
| 10 | Open source | write code | Yes | Self-hosted | 95,202 |
Updated
How we picked and ranked: tools are matched by category, the pricing each maker states and what each tool says it does. They are ranked by GitHub stars as recorded on each listing (link checks 2026-12-04); tools without a tracked repo follow, by listing maturity. No paid placements.

1. opencode
OpenCode is an MIT-licensed open-source AI coding agent for the terminal, with a beta desktop app, that works with many model providers instead of locking you to one. Install it with a one-line script, npm, Homebrew, pacman, mise or Nix, then let it read your repository, edit files and run commands from a keyboard-driven TUI.
Pricing (as stated): Free and open source (MIT); bring your own model provider. · Active

2. CC Switch
CC Switch is a free, MIT-licensed desktop app for Windows, macOS and Linux that manages Claude Code, Claude Desktop, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes Agent, Pi, Kimi Code and other coding agents from one window. You can switch each agent's API provider in one click, keep MCP servers, skills and system prompts in sync across tools, and stop hand-editing JSON, TOML or YAML config files. Built with Tauri, with frequent releases.
Pricing (as stated): Open source · Mature

3. Claude Code
Claude Code is Anthropic's agentic coding tool that lives in your terminal, understands your codebase and carries out routine tasks, explains complex code and handles git workflows through natural-language commands. It also runs in IDEs and on GitHub when you tag @claude, and installs via a native script, Homebrew or WinGet (the npm install is deprecated).
Pricing (as stated): Requires a paid Claude plan or Anthropic API usage. · Mature

4. Graphify
Graphify is an Apache-2.0 /graphify skill for Claude Code, Cursor, Codex and Gemini CLI that maps a whole project, including code, docs, SQL schemas, configs and PDFs, into a knowledge graph the agent can query instead of grepping through files. Code is parsed locally with tree-sitter, so the map is deterministic, needs no LLM or vector store, and nothing leaves your machine, and every edge in the graph says why it exists. A separate paid Graphify Cloud adds always-on team memory with a 14-day trial.
Pricing (as stated): Free and open source (Apache-2.0); optional paid Graphify Cloud with a 14-day free trial. · Mature

5. Orca
Orca is an MIT-licensed desktop app for running a fleet of coding agents such as Claude Code and Codex in parallel on your own subscriptions, each in its own git worktree, with diffs, a built-in browser and a CLI in one place. You can drive an agent in a chat view or its raw terminal and switch between them without losing context, hand a big task to one agent that splits it across worker agents, and keep agents running on a remote Orca server, any SSH host or a cloud VM after you close your laptop; there are mobile apps too.
Pricing (as stated): Free and open source (MIT); you use your own Claude, Codex or other agent subscriptions. · Mature

6. OpenAI Codex CLI
Codex CLI is OpenAI's Apache-2.0 coding agent that runs locally in your terminal, reading your repository, editing files and running commands, with standalone installers for macOS, Linux and Windows plus npm and Homebrew. The same agent is available as IDE extensions for VS Code, Cursor and Windsurf, a desktop app via codex app, and the cloud-based Codex Web in ChatGPT.
Pricing (as stated): Open source CLI; usage through a ChatGPT plan or OpenAI API key. · Mature

7. Pi
Pi is a minimal, MIT-licensed agent harness from Earendil that runs as a terminal coding agent and doubles as a toolkit for building your own agents. It ships a unified multi-provider LLM API, an agent loop, a TUI, print/JSON and RPC modes and a TypeScript SDK, and deliberately leaves out built-in sub-agents and plan mode: you add behaviour through extensions, skills, prompt templates and themes, bundled as Pi packages shared over npm or git.
Pricing (as stated): Open source (MIT); bring your own model provider or subscription · Mature

8. Impeccable
Impeccable gives coding agents a design vocabulary: install it into a project and steer with commands such as polish and bolder, review with critique and audit, and catch typical AI-generated design clichés before they ship; works with Claude Code, Cursor, Codex CLI, Copilot, Gemini CLI and more.
Pricing (as stated): Open source · Mature

9. Gemini CLI
Gemini CLI is Google's Apache-2.0 open-source terminal agent that brings Gemini models into your shell to read code, edit files and run commands. As of June 18, 2026 it is aimed at Gemini Code Assist Standard/Enterprise and Code Assist for GitHub users; free individual access and Google AI Pro/Ultra plans moved to Antigravity CLI, and the project says it is not tuned for the Gemini 4 series.
Pricing (as stated): Open source; access through Gemini Code Assist Standard/Enterprise licences. · Mature

10. Understand-Anything
Turns any codebase, knowledge base or docs folder into an interactive knowledge graph you can explore and question, working inside Claude Code, Codex, Cursor, Copilot and Gemini CLI.
Pricing (as stated): Open source · Mature

11. OpenHands
OpenHands is an MIT-licensed platform for autonomous coding agents whose Agent Canvas acts as a self-hosted control center: start conversations and automations such as Slack reports or splitting GitHub issues into tasks, and run the OpenHands agent or ACP-compatible agents like Claude Code, Codex, Gemini CLI and OpenCode on local, Docker, VM or company backends, with optional OpenHands Cloud and Enterprise.
Pricing (as stated): Free and open source to self-host; OpenHands Cloud and Enterprise are paid. · Mature

12. rtk
A CLI proxy that sits between coding agents and your shell and trims noisy command output before it reaches the model, cutting token use on everyday commands like tests, builds and git. Free and open source, with an RTK Pro tier for teams.
Pricing (as stated): Free and open source (Apache-2.0); RTK Pro adds team features. · Mature

13. Cline
Cline is an Apache-2.0 open-source coding agent that runs as a VS Code extension, a JetBrains plugin, a macOS and Windows desktop app, a CLI (npm i -g cline, interactive or headless for CI) and an SDK for building your own agents. It creates and edits files, runs commands, browses the web and uses MCP tools with human-in-the-loop approval for each step, and works with the model provider of your choice.
Pricing (as stated): Open source · Mature

14. Open Interpreter
Terminal coding agent forked from OpenAI's Codex and tuned for low-cost and open-weight models, with switchable harness modes that imitate tools like Claude Code.
Pricing (as stated): Open source · Mature

15. Warp
Warp is an agentic development environment born out of the terminal, and the project is now open source under AGPL-3.0. You can use Warp's built-in coding agent or bring your own CLI agent such as Claude Code, Codex or Gemini CLI, and the repo also describes Warp Factories, infrastructure for teams to run cloud software factories defined in code. The desktop app is available from warp.dev.
Pricing (as stated): The source repository is free and open source (AGPL-3.0); Warp also offers a hosted product at warp.dev (no price listed in this update). · Mature

16. Open Code Review
Open Code Review is Alibaba's Apache-2.0 AI code review CLI (ocr), used internally by tens of thousands of Alibaba developers before it was open-sourced. It reads Git diffs and sends changed files to an agent that can read whole files, search the codebase and inspect related changes, then posts structured line-level comments; deterministic pipelines and a built-in multi-language ruleset catch issues like null-pointer risks, thread safety, XSS and SQL injection, and ocr scan reviews whole files or folders without a diff. It works with any OpenAI- or Anthropic-compatible model endpoint.
Pricing (as stated): Open source · Mature

17. Goose
goose is an Apache-2.0, general-purpose AI agent that runs on your own machine as a desktop app (macOS, Linux, Windows), a CLI and an embeddable API, built in Rust. It installs, runs, edits and tests code, and also handles research, writing, automation and data analysis. It works with 15+ model providers including Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure and Bedrock, can reuse existing Claude, ChatGPT or Gemini subscriptions through ACP, and connects to 70+ MCP extensions. goose is part of the Agentic AI Foundation at the Linux Foundation.
Pricing (as stated): Open source · Mature

18. Agentic Awesome Skills
Agentic Awesome Skills, formerly Antigravity Awesome Skills, is a library of more than 2,900 installable SKILL.md playbooks for Claude Code, Codex, Cursor, Gemini CLI and other coding agents, with AAS Core, a tool that lets Codex or Claude search the full local catalog, record the skills it picks and preview a plan before changing your project; the code is MIT and imported skills keep their own licences.
Pricing (as stated): Open source · Mature

19. Aider
Aider is an Apache-2.0 AI pair programmer in your terminal: you start a new project or work in an existing repo, and it edits files across 100+ languages using a map of your whole codebase, then commits each change to git with a sensible message. It works with Claude, DeepSeek, OpenAI models and almost any other LLM, including local models, and also supports voice input, images and web pages as context and linting and testing after each edit.
Pricing (as stated): Open source · Mature

20. Codewhale
Rust agent engine and terminal coding client with model choice, tool approvals and review flows.
Pricing (as stated): Open source · Mature

21. Oh My Pi
Terminal coding agent with IDE features wired in, from Stencil Labs.
Pricing (as stated): Open source · Mature

22. Claude Code Templates
Claude Code Templates is an open catalog and command-line installer of more than 1,980 Claude Code components, including skills, subagents, slash commands, hooks, MCP servers and settings. You can preview each file a component writes, then combine components into one install that merges with the configuration you already have.
Pricing (as stated): Open source · Mature

23. Qwen Code
Open-source terminal coding agent from the Qwen team.
Pricing (as stated): Open source · Mature

24. Repomix
Repomix is an MIT-licensed CLI and web tool that packs a whole repository, local or remote, into one AI-friendly file in XML, Markdown or plain text, so you can hand a codebase to Claude, ChatGPT, Gemini or a coding agent in one go. It respects .gitignore, shows token counts per file, can compress code to signatures, and scans the output with Secretlint so secrets are not shared. It also runs as an MCP server. A release shipped in November 2026.
Pricing (as stated): Open source · Mature

25. Crush
Charm's terminal coding agent with a polished TUI, multiple models and MCP support.
Pricing (as stated): Source-available · Mature
FAQ
What are the best terminal AI coding agents?
Ranked by tracked GitHub stars, the top terminal AI coding agents in our directory are opencode, CC Switch, Claude Code, Graphify, Orca. Stars measure popularity, not fit, so compare a few against your own task.
How many terminal AI coding agents does AgentScout list?
128 tools match. This page shows the top 25. Pricing mix on this page: Open source (20), Open source + cloud (3), Paid (1), Source-available (1).
How much do these tools cost?
Pricing is what each maker states on their site. Open-source tools are free to self-host but may need a paid model API key or offer paid cloud plans; freemium tools have a free plan with limits. Check each official site.
Where can I see every tool for coding in the terminal?
Our task page lists all 349 tools we match to coding in the terminal.
Related
Similar searches: Free AI coding agents with a free plan · Open-source AI coding agents
By role: For developers
Related categories
Facts come from our directory listings; pricing is as each maker states it and can change. Check official sites before you choose.