6 min read

Automation

Claude Code vs Codex vs Gemini CLI: terminal agents compared

None of the three has a price of its own — you pay for the assistant behind it. What a terminal agent does and which to try first.

Claude Code vs Codex vs Gemini CLI: terminal agents compared

The short answer: all three do the same thing — an AI agent works on your project inside your terminal. The difference lies not in the operation but in the billing model and the maturity. Gemini CLI is open source and free with a personal Google account, Codex runs on your ChatGPT plan, Claude Code on your Claude plan. If you already pay for one of the assistants, try its terminal agent first — it costs nothing extra.

Last checked: September 2026. Figures verified against the vendors’ own pages on the day of publication. This article is the technical offshoot of Claude Code, Cursor or GitHub Copilot? — if you do not work in the terminal at all yet, start there.

Disclosure: I earn my living advising on and training people in Claude, and I use Claude Code daily. Treat my assessment accordingly — the points where the other two lead are stated explicitly in this text.

The short version

  • Terminal agents are their own class of tool — they work on tasks, they do not complete lines.
  • Gemini CLI is open source (Apache 2.0) and free with a personal Google account: 60 requests per minute, 1,000 per day.
  • Codex is included in the ChatGPT plans, with scope rising by plan.
  • Claude Code is included in the Claude plans and in my practice is strongest on multi-step tasks.
  • Free entry is real — try before you decide.

What a terminal agent actually is

The difference from editor completion is fundamental. A completion suggests your next line. A terminal agent receives a task and works on it: it reads itself into the project, changes several files, runs tests, sees the error message, corrects and repeats — until the goal is met or it gets stuck.

In practice that means you describe a goal instead of a line. “Rework invoicing so it handles partial payments, and adjust the tests” is a task for an agent. For a completion it is not.

From which follows the most important prerequisite: you need a way to check whether the result is correct. Usually that means tests and version control. An agent working in a project without tests and without Git is not a tool but a risk.

The three at a glance

Claude CodeCodexGemini CLI
Billingvia Claude planvia ChatGPT planfree with Google account
Limitsby planby plan60/min, 1,000/day
Open sourcenonoyes (Apache 2.0)
Strengthmulti-step tasks, large projectsties into the ChatGPT ecosystemzero barrier to entry
For whomthose already using Claudethose already using ChatGPTthose who want to try first

The most important row is the first. None of the three has a price of its own — you pay for the assistant behind it, and the terminal agent is included. So anyone who already has Claude or ChatGPT in house has nothing to decide to get started, only something to install.

Gemini CLI

The strongest argument: it costs nothing and it is open source under Apache 2.0. With a personal Google account you get 60 requests per minute and 1,000 per day — generous for exploration and occasional use.

Why that is more than a price argument: being open source means you can read what the tool does before you let it loose on your project. For a program that autonomously changes files and executes commands, that is not an academic point. It also means you can adapt it if it does not fit your environment.

The caveat: the free allowance is tied to a personal Google account. For business use with client code that is the wrong construction — the same logic as personal assistant accounts, which I describe in the GDPR comparison. Sort out the business route before experimentation becomes routine.

Codex

The strongest argument: if your organisation runs on ChatGPT anyway, Codex is the path of least resistance — one contracting party, one user directory, one data protection review. Usage scope rises with the plan; Codex is included in the business plans.

The caveat: that same coupling is also the constraint. You are not choosing the terminal agent, you are choosing the assistant — and if your assistant is ChatGPT for other reasons, you get Codex whether or not it is the best fit for your kind of work.

Claude Code

The strongest argument: in my daily practice it is the tool that handles large, nested tasks most reliably — changes across many files where order matters and tests have to run in between. It stays on task even when a job takes twenty minutes and three intermediate errors appear.

The caveat: the working method has to be learned, and that costs one to two weeks. Anyone using it like an autocomplete considers it overrated — and from their perspective they are right. Where handing over a whole task pays off is covered in Sub-agents in Claude Code; for the feature set see The 12 best features.

How I would approach the choice

  1. Check what you already have. If Claude or ChatGPT is in house, install the matching agent. It costs nothing and answers the underlying question — whether this way of working suits you — within a week.
  2. If you have nothing: Gemini CLI. Free, open source, no contract. The most honest entry point.
  3. After two weeks, decide whether you want a terminal agent at all. That is the real question — not which one.
  4. Only then is a quality comparison worth doing, and it should use your own tasks, not somebody else’s examples.

What you must settle regardless of the tool

  • Version control and tests must be in place. Without them an agent is irresponsible.
  • A business route instead of personal accounts, as soon as client code is involved.
  • Clarify what the agent may execute. These tools run commands — define the boundary before somebody finds it.
  • Code review remains mandatory, especially for changes the agent itself reports as finished.
  • Check client contracts on whether code may go to external services at all.

Frequently asked questions

Does a terminal agent replace my development environment?

No, it complements it. Most people keep working in the editor and call the agent for the big tasks — the editor remains where you read and check what the agent changed.

Is Gemini CLI’s free allowance enough?

For trying it out and occasional use, comfortably. A thousand requests a day is far more than a normal working day consumes, unless you run agent tasks continuously. For sustained business use, though, the account question decides it, not the allowance.

Is open source safer?

Not automatically, but more verifiable. For a tool that autonomously changes files and executes commands, traceability is a real argument — provided somebody actually looks. The advantage is the possibility, not the fact.

Can I run several in parallel?

Technically yes. It is rarely sensible — the tools are too similar for a division by purpose to work. This is exactly the case I describe as unnecessary variety in One AI tool or several?

How quickly does this comparison go stale?

Faster than any other in this series. Terminal agents are the tool class with the highest pace of development. The structure of the decision — take the agent belonging to the assistant you already pay for — should hold considerably longer than any feature list.

Newsletter

Hands-on notes by email.

New articles and lessons from projects with Claude, WordPress and Zoho. No spam, unsubscribe any time.

Let's talk

Does that sound like your situation?

Tell me briefly what you're working on. I'll tell you whether and how I can help. The call is free of charge.