# Terminal AI Coding Assistants: Claude Code, Codex, and Gemini CLI

> Canonical: https://skillalmanac.com/learn/terminal-ai-coding-assistants | Updated: 2026-11-25 | Index status: index-eligible

Compare terminal AI coding assistants by access model and workflow, then follow a bounded Claude Code example with permission, diff, and test checkpoints.

## Facts

- 2026-11-25: Claude Code starts with `claude` in a project directory after installation and first-use authentication (https://code.claude.com/docs/en/quickstart)
- 2026-11-25: Claude Code is also available on the web, as a desktop app, in VS Code and JetBrains IDEs, and in CI/CD (https://code.claude.com/docs/en/quickstart)
- 2026-11-25: Claude Code native installations update in the background, while its Homebrew and WinGet installations require manual upgrades (https://code.claude.com/docs/en/quickstart)
- 2026-11-25: Codex CLI is a local coding agent started with `codex`; its README documents standalone, npm, and Homebrew installation methods (https://github.com/openai/codex)
- 2026-11-25: Gemini CLI supports interactive `gemini` and non-interactive `gemini -p` use; its README says free individual and Google AI Pro/Ultra access moved to Antigravity CLI on 2026-06-18 (https://github.com/google-gemini/gemini-cli)

A terminal AI coding assistant is a coding agent exposed through a shell command. It is often scoped to a working directory, can read or edit files subject to its permissions, and may also support non-interactive scripts. It is useful when you want file changes, commands, and test output in one terminal workflow; an IDE interface may be more convenient when you want context beside the active file.

## What the terminal version is

Each product provides a terminal client: `claude` for Claude Code, `codex` for Codex CLI, and `gemini` for the enterprise-oriented Gemini CLI described in the supplied README. These clients can work from a selected directory, but the supplied sources do not establish identical local-processing architectures. Checked 2026-11-25, their access and account rules differ, so verify the current vendor page before setup.

## How it works: a worked example

1. Install Claude Code by following the [install guide](/learn/install-claude-code), then confirm the command with `claude --version`.
2. Change into the project folder with `cd`, then run `claude`. Log in when prompted.
3. Give it a bounded task, such as adding input validation to a signup form. The agent finds the relevant file and shows the change before it applies it, depending on the permission mode. Press Shift+Tab to cycle modes.
4. For a scripted check, run `claude -p "explain this function"`. This sends one query, prints the answer and exits.
5. Confirm the result yourself. Run `git status` and `git diff` to see which files changed, then run your test command.

Step 5 is the check that matters. The agent's summary tells you what it intended, and the diff tells you what it did.

## Compare the current terminal options

| Tool | Documented access in the supplied source | Useful distinction |
| :- | :- | :- |
| Claude Code | Claude subscription, Console account, or a supported cloud provider | Interactive terminal work and one-off `claude -p` queries; also available through other interfaces |
| Codex CLI | ChatGPT sign-in or API-key setup | Local-repository terminal agent with separate IDE, desktop, and cloud/web surfaces |
| Gemini CLI | Gemini Code Assist Standard/Enterprise or Code Assist for GitHub; legacy paid API or Vertex keys are also described | Enterprise Google Cloud workflows; the README directs free individual and Google AI Pro/Ultra users to Antigravity CLI |

Choose by access eligibility, the environment where the repository should run, and whether you want to review commands in a terminal or edits beside code in an IDE. Multi-file work is not exclusive to terminals, and terminal agents are not limited to multi-file tasks. Claude Code, for example, documents terminal, IDE, desktop, web, and CI interfaces, but their surrounding workflows and controls can differ.

## What it is not

A terminal agent is not a substitute for code review. It is not a compiler, a test runner or a git client; it calls those tools and reports back. An agent may learn some project conventions from your prompt, existing code, tests or configuration, but it may miss them. A project instructions file is one durable way to make important conventions explicit.

## Pitfalls

1. **`claude` is missing from the shell after install.** Open a new terminal and run `claude --version` again. If it still fails, the install folder is not on PATH, and the [install guide](/learn/install-claude-code) covers that step.
2. **Updates stop arriving.** Homebrew and WinGet installs do not update in the background. Run `brew upgrade claude-code` or `winget upgrade Anthropic.ClaudeCode` on a schedule.
3. **Plan or model changes after you set up.** The Gemini CLI README says free individual access and Google AI Pro and Ultra plans moved to Antigravity CLI on June 18, 2026. Confirm your plan on the vendor page before you configure the tool.
4. **Accepting edits without reading them.** Approval prompts depend on the permission mode you chose. Review `git diff` after each session, not only the agent's summary.

## When to use a skill instead

A one-off question or a single small change works fine with ad-hoc prompting. The catalogue describes [coding-agent-guardrails](/skills/skill-almanac/coding-agent-guardrails) as a reusable pre-action checklist. Its 2026-11-23 measured evaluation reported NO_LIFT: the pass-rate difference was -5.0 points with a 95% interval from -16.8 to +6.8, and two tasks favored the baseline. That model-specific, AI-graded result establishes neither general benefit nor general harm. A skill supplies guidance rather than external enforcement, so do not use it to justify reduced supervision; keep permission controls, diff review, and tests.

## FAQ

**Is the Claude Code extension different from the terminal version?**
Both are Claude Code interfaces. Anthropic lists VS Code, JetBrains IDEs, the web, a desktop app, and CI in addition to the terminal, but the supplied source does not establish identical tools, permissions, or behavior across every interface.

**How do I start Claude Code in a project?**
Change into the project folder, run `claude`, and log in on first use. Type `/help` inside the session to list commands.

**Which install method should I use on Windows?**
Claude Code documents a native PowerShell installer that updates in the background, plus WinGet, which does not. If you want the native installer's automatic updates, use the PowerShell command.

## Related skills

- [coding-agent-guardrails](https://skillalmanac.com/skills/skill-almanac/coding-agent-guardrails.md): Platform Score 60/100

## Related guides

- [Agentic Coding Tools: What They Are and How to Choose One](https://skillalmanac.com/learn/choosing-an-agentic-coding-tool.md)
- [Install Claude Code: Native, Homebrew, WinGet, or npm](https://skillalmanac.com/learn/install-claude-code.md)
- [Codex vs Claude Code: Config Files and Sandbox](https://skillalmanac.com/learn/codex-vs-claude-code.md)
- [What Is Claude Code and What It Can Touch on Your Machine](https://skillalmanac.com/learn/what-is-claude-code.md)
- [Claude Code Hooks: Setup, One Example, and Failure Modes](https://skillalmanac.com/learn/claude-code-hooks-explained.md)
- [AI Coding Assistant vs Coding Agent: What Each Can Change](https://skillalmanac.com/learn/ai-coding-assistant-vs-coding-agent.md)

## Sources

- https://code.claude.com/docs/en/quickstart
- https://github.com/openai/codex
- https://github.com/google-gemini/gemini-cli

Platform Scores report our assessment under a published method. They are not a safety guarantee.
