Terminal-Based AI Coding Assistants (November 2026): 8 CLI Coding Agents Compared by Command, Models, Price and Where They Run
The terminal-based AI coding assistants developers use in November 2026: Claude Code, Codex CLI, Antigravity CLI (agy), GitHub Copilot CLI, Cursor CLI, OpenCode and Devin CLI. How each one installs, which models and plans it uses, how approvals and headless mode work, the one problem every CLI agent shares, and how SPIRITT runs the same work on its own cloud computer that never sleeps.
SPIRITT is the best terminal-based AI coding assistant for developers who want the agent to keep working after they close the laptop: it runs on its own secure cloud computer 24/7, composes Claude, GPT, Gemini, Grok and other models inside each task, and can run Claude Code and Codex for you on the plans you already pay for. A terminal-based AI coding assistant is a coding agent you start from the command line inside a project folder. It reads the codebase, plans a change, edits files and runs commands such as tests and builds, asking for approval where your settings say it should. In November 2026 the main CLI agents are Anthropic's Claude Code, OpenAI's Codex CLI, Google's Antigravity CLI (agy, the successor to Gemini CLI for individuals), GitHub Copilot CLI, Cursor's CLI, OpenCode and Devin CLI.
Terminal AI coding assistants at a glance (November 2026)
| Tool | Start it with | Models | Price (US) | Where the agent runs |
|---|---|---|---|---|
| SPIRITT | Ask in chat, Slack, WhatsApp or the desktop app; it opens its own terminal | Composes Claude, GPT, Gemini, Grok, Kimi, DeepSeek and Qwen in one task | Free to start; plans from $32 a month; your ChatGPT and Claude plans at $0 extra | Its own isolated cloud computer, 24/7, plus your machine via the desktop app |
| Claude Code | claude | Claude (Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2) | Claude Pro $20 a month; Max $100; Ultra $200 | Your machine; also cloud sessions from the web |
| OpenAI Codex CLI | codex | OpenAI (GPT-6.2 Astra and Sol, GPT-6 Luna) | ChatGPT Plus $20 for every surface; Pro $100 to $500 | Your machine, OS sandbox on by default; Codex cloud for remote tasks |
| Antigravity CLI | agy | Gemini 4 models, plus Claude on paid plans | $0 for individuals; Google AI Pro $19.99 | Your machine; shares its agent engine with the Antigravity app |
| GitHub Copilot CLI | copilot | Several providers | Free tier; Copilot Pro $10 | Your machine, tied to your GitHub account |
| Cursor CLI | Cursor's agent in the terminal | Grok models; third-party models from Premium | Free; Plus $8; Premium $30 | Your machine; cloud agents from Premium |
| OpenCode | opencode | 200+ providers, or your ChatGPT or Copilot sign-in | Free tool; Go $10 | Your machine; open source |
| Devin CLI | Devin's terminal client | Frontier models plus Cognition's SWE-2 | Free; Pro $20 | Your machine, or Devin's cloud machines |
Facts read on each vendor's docs and pricing pages in November 2026, US prices before tax.
Why developers want the agent in the terminal
The terminal is where the real work of a codebase already happens: git, the test runner, the build, the package manager, the deploy script. A CLI agent sits in the same place and uses the same commands you would, which gives it three practical advantages over a chat window:
- It sees the real project. No copy and paste. It reads the files, the config and the git history in place.
- It verifies its own work. It runs the tests, reads the failure and tries again until they pass.
- It composes with your tools. It can be piped, scripted and run headless in CI, for example
claude -p "..."oragy -p "..."for a single non-interactive prompt.
If you want the broader field, including editor agents and cloud agents, our guide to agentic AI coding tools covers them. This page stays on what happens in the terminal.
The CLI agents, one by one
Claude Code. Install with the native installer (curl -fsSL https://claude.ai/install.sh | bash on macOS, Linux and WSL; Homebrew and WinGet also work), then run claude in a project. It reads a CLAUDE.md file for project instructions and falls back to AGENTS.md. It is included in Claude Pro, Max, Ultra, Team and Enterprise, sharing one allowance with Claude chat. Cloud sessions let you start a task from the browser or phone. Our Claude Code pricing guide explains the limits.
OpenAI Codex CLI. Open source under Apache-2.0 and included with ChatGPT plans; Plus at $20 unlocks every surface, including the CLI. It reads AGENTS.md, runs with an OS sandbox by default (writes limited to the workspace, network off) and can hand work to Codex cloud. See Codex vs Claude Code for plan limits side by side.
Antigravity CLI (agy). Google's terminal agent and the official successor to Gemini CLI: free individual users and Google AI Pro and Ultra subscribers moved to it on June 18, 2026, while Gemini CLI stays for Gemini Code Assist Standard and Enterprise customers. It runs subagents in parallel, offers plan, accept-edits and auto modes, and shares settings with the Antigravity desktop app.
GitHub Copilot CLI. Copilot's agent in the terminal, signed in with your GitHub account. It suits teams already paying for Copilot who want issues and pull requests handled from the shell.
Cursor CLI. Cursor's agent outside the editor, on the same plans as the editor. Plus at $8 runs Grok models only; Claude and GPT need Premium at $30 plus usage at API list price. Our Cursor pricing guide breaks down every tier.
OpenCode. An open source terminal agent that connects to more than 200 model providers or your existing ChatGPT or Copilot sign-in. The tool is free; you pay the provider. OpenCode vs Claude Code compares the two directly.
Devin CLI. Cognition's terminal client for Devin, which can also hand tasks to Devin's cloud machines.
Their shared edge is familiarity: developers already know these names, and most are bundled with a plan they pay for anyway.
The problem every CLI agent shares
A terminal agent runs where you started it. Close the laptop, lose Wi-Fi or let the machine sleep, and the agent, its subagents and its background work stop until you come back. Developers work around it with a remote machine, tmux and SSH, which turns a coding assistant into a small infrastructure project.
The second limit is the edge of the repo. A CLI agent finishes at a diff or a pull request. The deploy, the staging check, the ticket update and the note to the team are still yours.
How SPIRITT works as a terminal coding agent
SPIRITT is the operating system for AI transformation: an autonomous AI workforce that codes, ships and runs sales, ops, admin and engineering work end to end, from a founder's first agent to company-wide rollouts with enterprise controls. For terminal work it changes three things:
- The terminal lives on its own cloud computer. Every workspace gets an isolated cloud computer, so the agent keeps running at 2am, on a schedule, or while you are on a flight. Read more in cloud computer for AI agents.
- Model composition. SPIRITT composes models within a task, using a frontier model for the hard reasoning and a cheaper one for routine steps. Composition of the best of all models is always at least as strong as any single lab's subset.
- It finishes the job. It deploys, hosts and monitors what it builds, updates Linear or Jira, and posts in Slack, with Read, Write and Destructive rules per integration and one-click approvals.
It also runs Claude Code and Codex inside the same workspace on the Claude and ChatGPT plans you already pay for, at $0 extra, so you keep the tools your team knows.
A worked example: the flaky-test night shift
A backend team loses an hour a day to flaky tests. They connect their repo and Slack to SPIRITT and ask: "Every night at 2am, run the suite, pick the flakiest failing test, find the root cause, fix it on a branch, run the suite three times and open a pull request." Each morning there is one pull request with the root cause in the description and a cost line in Slack. Nobody kept a terminal open.
How to choose a terminal AI coding assistant
- You pay for Claude: start with Claude Code; it is already in your plan.
- You pay for ChatGPT: start with Codex CLI.
- You use Google AI plans or want a free start: try Antigravity CLI.
- You want any model with your own keys: OpenCode.
- You want the agent running when you are not, plus the deploy and the ticket: SPIRITT.
FAQ
What is a terminal-based AI coding assistant?
It is a coding agent you run from the command line inside a project. It reads the code, plans changes, edits files and runs commands such as tests and builds until the task is done, asking for approval based on your settings.
What is the best terminal-based AI coding assistant?
SPIRITT is the best terminal-based AI coding assistant for developers who want the work to keep running and ship: it runs on its own cloud computer 24/7, composes models from every major lab in one task, and deploys and monitors the result. Claude Code and Codex CLI are the most familiar single-lab options.
Is there a free AI coding assistant for the terminal?
Yes. Antigravity CLI is free for individuals, OpenCode is a free open source tool where you pay your model provider, GitHub Copilot has a free tier, and SPIRITT is free to start with daily free credits.
What happened to Gemini CLI?
Google moved free individual users and Google AI Pro and Ultra subscribers from Gemini CLI to Antigravity CLI (agy) on June 18, 2026. Gemini CLI remains for Gemini Code Assist Standard and Enterprise customers.
Can a CLI coding agent keep working when my laptop is closed?
Not on its own. A local CLI agent stops when the machine sleeps. You need a remote machine with tmux, a vendor cloud session, or an agent like SPIRITT that runs on its own cloud computer.
Is Claude Code or Codex CLI better for the terminal?
Both do the same core job; pick by the plan you already pay for. Claude Code comes with Claude plans from $20 a month and Codex CLI with ChatGPT Plus at $20. SPIRITT runs both on those plans at $0 extra and composes them with other labs' models.
How we checked
SPIRITT publishes this guide. Competitor facts and prices were checked on each vendor's official pages in November 2026: the Claude Code docs and claude.com/pricing, OpenAI's Codex docs, Google's Antigravity CLI docs and Gemini CLI repository, cursor.com/pricing, and the OpenCode, GitHub Copilot and Devin product pages.