Start with Codex CLI
Good if you already use OpenAI, ChatGPT, Codex, AGENTS.md, code review, and local repositories.
AI CLIs are terminal tools that act as local coding agents. They can read your project, propose changes, write files, and run commands. That makes them useful, but also worth starting with carefully.
This section covers four tools:
| If you… | Do this first |
|---|---|
| Have never used an AI CLI | Read this page, start in a test repository, and ask the tool to explain the project without changes. |
| Already use ChatGPT/Codex | Start with Codex CLI and run a local /review after the first change. |
| Already use Claude | Start with Claude Code and create a short CLAUDE.md. |
| Already use Google/Gemini | Start with Antigravity CLI (agy) — Gemini CLI’s free access shuts down June 18, 2026. |
| Want to compare them | Read Codex vs Claude Code vs Gemini CLI vs agy after trying one small task. |
git status, so you know what is already changed.| Term | Meaning |
|---|---|
| Workspace | The folder the agent works from. Use the concrete project root. |
| Sandbox | Technical limits on what commands can read, write, and access over the network. |
| Approval | The prompt where you approve a command, file edit, or other action. |
| Instruction file | AGENTS.md, CLAUDE.md, or GEMINI.md, used for stable project rules. |
| Context | Everything the agent receives: prompt, files, instructions, logs, MCP data, and prior conversation. More context can help, but costs more. |
| Topic | Codex CLI | Claude Code | Gemini CLI | Antigravity CLI (agy) |
|---|---|---|---|---|
| Command | codex | claude | gemini | agy |
| Install | npm or Homebrew | Native installer | npm, Homebrew, or npx | Official install script |
| Login | ChatGPT or OpenAI API key | Claude/Console or provider | Google sign-in, API key, or Vertex AI | Google sign-in |
| Instruction file | AGENTS.md | CLAUDE.md | GEMINI.md | .md rule files (auto-discovery) |
| Script mode | codex exec | claude -p | gemini -p | agy -p |
| MCP | Yes | Yes | Yes | Yes |
Start with Codex CLI
Good if you already use OpenAI, ChatGPT, Codex, AGENTS.md, code review, and local repositories.
Start with Claude Code
Good if you want strong conversation workflows, project memory, and clear permissions.
Start with Gemini CLI
Good if you want an open source terminal agent with Google sign-in or a Gemini API key. Note: the free Google sign-in access shuts down on June 18, 2026 — after that a paid Gemini API key or Code Assist Standard/Enterprise is required.
Start with Antigravity CLI (agy)
Good if you have a Google account and want a fast, lightweight agent. agy is Google’s successor to Gemini CLI — a single binary with Google sign-in and MCP support.
Before you start:
git status.Good first prompt:
Explain this project from the repository files. Do not make changes.Tell me which test or build commands you would run, but do not run them yet.Last checked: April 11, 2026.