A guide to AI coding agents and terminal tools in 2026
This page lists the terminal tools we track, grouped by type. AI coding agents come first, followed by the command-line utilities, text interfaces, terminal emulators, multiplexers, shells and prompts that developers pair with them. Each entry links to the official site or repository and says whether the tool is open source.
The guide below covers how terminal agents differ from editor-based assistants, how to choose one, what they cost, and how to set them up so a mistake costs you minutes instead of a day's work.
What a terminal AI agent does
An editor assistant such as GitHub Copilot or Cursor suggests code inside a file you have open. A terminal agent works one level up. You describe a task in plain language, and the agent searches the repository, reads the files it needs, runs commands such as tests, linters and package installs, edits files, and reports back. Most agents show each command before running it and ask for approval, unless you switch to a more permissive mode.
Working from the terminal has two practical advantages. The agent can use the same tools you use, from git and grep to your test runner and build scripts, so it can check its own work by running the tests. And because the interface is plain text, it works over SSH, inside containers and on remote servers where a graphical editor is awkward.
The 2025 Stack Overflow Developer Survey, with more than 49,000 respondents, found 31% of developers were using AI agents at work and another 17% planned to. Among those using agents, 69% agreed they had seen a productivity increase. The same survey recorded Claude Code at 10% usage among developers in its first year on the list.
The main AI coding agents
Claude Code is Anthropic's agent. It is included with Claude Pro at $20 a month and the higher Max plans, or billed through the API. It reads project instructions from a CLAUDE.md file, supports MCP servers for outside tools, and can run sub-agents for parallel work. In February 2026, Anthropic said Claude Code's run-rate revenue had passed $2.5 billion. See our Claude Code guide.
Codex CLI is OpenAI's agent, open source under the Apache 2.0 license. OpenAI says Codex is included across ChatGPT plans, including Free and Go, with usage limits that rise on paid plans. Its sandbox blocks network access and limits writes to the current workspace by default, and approval policies control when it must stop and ask.
Gemini CLI is Google's open-source agent, also Apache 2.0. Until June 2026 it offered 1,000 free requests a day with a personal Google account. On June 18, 2026, Google stopped serving Gemini CLI requests for free users and Google AI Pro and Ultra subscribers, and moved them to Antigravity CLI, a new Go-based agent that shares a backend with the Antigravity desktop app. Gemini CLI still works with paid Gemini API keys, Vertex AI and Gemini Code Assist Standard and Enterprise licenses, and Google keeps updating the open-source repository. Antigravity CLI has a free plan with a weekly quota and higher limits on Google AI plans.
Aider is an open-source pair programmer that works with your own API keys for Anthropic, OpenAI, Google, DeepSeek and other providers, or with local models. It commits each change to Git with a descriptive message, which makes every edit easy to review or undo.
OpenCode, OpenHands CLI, Qwen Code and Pi are newer open-source agents. OpenCode works with more than 75 providers and can reuse a Copilot or ChatGPT subscription. OpenHands CLI adds an LLM security analyzer that decides which actions need your approval. Qwen Code is adapted from Gemini CLI and tuned for Alibaba's Qwen coding models, and its free tier ended in April 2026. Pi ships only four tools and a prompt under 1,000 tokens, and you extend it yourself. These suit developers who want to switch models freely or keep the full agent loop under their own control.
How to choose
Start with the model you trust most for your language and codebase, since the model does more of the work than the agent wrapped around it. Then weigh these points.
| Question | What it points to |
|---|---|
| Already pay for ChatGPT or Claude? | Codex CLI or Claude Code cost nothing extra on those plans |
| Want a free plan from a major vendor? | Codex CLI on ChatGPT Free, or Antigravity CLI |
| Need to switch models or use local ones? | Aider or OpenCode |
| Code cannot leave your machine? | An open-source agent with Ollama and a local model |
| Working on a large monorepo? | An agent with project instruction files and good search, then test it on a real ticket |
Benchmarks help narrow the field. Terminal-Bench, built by researchers at Stanford, the Laude Institute and dozens of other groups and presented at ICLR 2026, tests agents on 89 hard tasks in real terminal environments, such as building software from source or reverse engineering a binary. When version 2.0 launched, the best frontier models and agents solved under 65% of tasks, and smaller models scored around 15%. The public leaderboard pairs each model with the agent that ran it, which shows how much the agent design matters for the same model.
Leaderboards still miss your codebase, conventions and test suite. The most reliable test is to give two agents the same small ticket from your backlog and compare the diffs.
What it costs
There are three ways to pay:
- Subscription. Claude Code comes with Claude Pro ($20 a month, or $17 on annual billing) and Max (from $100 a month). Codex CLI comes with ChatGPT plans, from Free up to Pro at $200 a month. Usage limits reset on a rolling window, and heavy agent sessions hit them faster than chat does.
- API billing. Claude Code, Codex CLI, Gemini CLI, Aider and OpenCode can all use an API key and charge per token. Long agent sessions read many files, so a single large task can use hundreds of thousands of tokens. Set a monthly spending limit in the provider console before you start.
- Local models. Ollama serves open-weight models such as Qwen, Llama and DeepSeek on your own machine. The cost is hardware and electricity. Expect slower and weaker results than frontier models on multi-file work, with a fair showing on small, well-scoped tasks.
Running agents safely
Terminal agents can run any command you approve, and some modes let them run commands without asking. That power has caused real damage. In July 2025, Ars Technica reported that Gemini CLI destroyed a user's files while trying to reorganize them, and that Replit's agent deleted a production database despite an explicit instruction to make no changes.
These habits keep the risk small:
- Work inside a Git repository and commit before each agent session, so
git diffshows every change andgit restoreundoes it. - Keep approval prompts on for commands that delete files, touch the network or run outside the project folder.
- Use the sandbox or read-only mode your agent provides when you only want analysis or a plan.
- Never give an agent production credentials. Use separate development databases and API keys with tight permissions.
- Treat content the agent reads from the web, issues or third-party files as untrusted, since hidden instructions in that text can steer the agent.
- Review the final diff yourself before merging, and run the full test suite.
The rest of the terminal toolkit
Agents work best in a terminal that is pleasant to use for hours. The other sections of this page cover tools that make that true.
Multiplexers such as tmux keep sessions running after you disconnect and split one window into panes. You can run an agent in one pane, your tests in another and logs in a third. Terminal emulators such as Alacritty and Warp control rendering speed, fonts and features. Alacritty is a fast, minimal, GPU-accelerated emulator, while Warp adds command blocks, built-in agents and support for running Claude Code or Codex inside it, and open-sourced its client under the AGPL in April 2026. Shells and prompts such as fish and Starship add autosuggestions, syntax highlighting and a status line that shows your Git branch and tool versions.
Command-line utilities fill specific jobs. fzf adds fuzzy search to history, files and Git branches. lazygit gives Git a keyboard-driven text interface, which helps when reviewing a long agent diff. mise manages language runtimes per project. rclone syncs files with cloud storage, and yt-dlp downloads audio and video for transcription workflows. Ollama sits in this group because it is a CLI, though most people use it as the local model server for the agents above.
How we pick terminal tools
We list tools that are actively maintained, have official documentation or a public repository, and solve a daily problem for developers who work in the terminal. For AI agents we check pricing, free allowances, sandbox and approval options, supported models and license, using the vendor's own documentation, and we recheck them when vendors ship major releases. Our testing methods page explains the process. For editor-based assistants, see the coding category and the Cursor alternatives guide.
Frequently asked questions
What is the best free AI coding agent for the terminal?
Codex CLI is included with the free ChatGPT plan, with lower usage limits than paid plans. Google's Antigravity CLI, which replaced Gemini CLI for personal accounts in June 2026, has a free plan with a weekly quota. Gemini CLI itself no longer accepts free Google sign-ins. For no account at all, Aider or OpenCode connected to a local model through Ollama costs nothing beyond your own hardware, though local models are weaker on large codebases.
Is Claude Code better than Codex CLI?
They are close and trade places as new models ship. Claude Code runs Anthropic's models and is included with Claude Pro at $20 a month. Codex CLI runs OpenAI's models, is open source under Apache 2.0, and is included with every ChatGPT plan. Menlo Ventures estimated Anthropic held 54% of enterprise coding model spend in late 2025. Try both on the same real task in your own repository before you pay for either.
Can a terminal AI agent delete my files?
Yes, if you give it permission. In July 2025 Ars Technica reported a case where Gemini CLI destroyed user files while trying to reorganize them. Work inside a Git repository with uncommitted changes saved, keep approval prompts on, and use the sandbox or read-only mode your agent offers. Codex CLI, for example, blocks network access and limits writes to the current workspace by default.
Do terminal AI agents send my code to the cloud?
Hosted agents such as Claude Code, Codex CLI and Antigravity CLI send the files and command output they read to the vendor's model servers. Business plans from these vendors generally exclude your data from training, and consumer plans have opt-out settings. If code must stay on your machine, pair Aider, OpenCode or another open-source agent with a local model served by Ollama, and confirm no telemetry is enabled.
Do I need to know the command line to use these tools?
You need the basics: opening a terminal, moving between folders, and running Git commands such as status, diff and commit. The agent handles most other commands, but you still need to read what it proposes before approving it. Warp and similar terminals add a graphical layer that helps beginners, and fish shell offers autosuggestions that make the command line easier to learn.
Can I use these agents for commercial projects?
Yes. Code an agent writes for you on a paid plan is yours to use commercially under the main vendors' terms, and the open-source agents carry permissive licenses such as Apache 2.0. Check two things: your employer's policy on AI tools and source code, and the license of any code the agent pulls in from third-party packages or examples, since the agent does not check license compatibility for you.
Sources
- Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces (arXiv)
- Terminal-Bench 2.0 leaderboard
- Stack Overflow 2025 Developer Survey, AI section
- Stack Overflow 2025 Developer Survey press release
- Gemini CLI on GitHub
- Google Developers Blog, Transitioning Gemini CLI to Antigravity CLI
- Google Antigravity plans
- OpenAI Help Center, Using Codex with your ChatGPT plan
- OpenAI Codex manual, approvals and security
- Menlo Ventures, 2025 State of Generative AI in the Enterprise
- Ars Technica, Two major AI coding tools wiped out user data (July 2025)
- Claude pricing