AI CLI tools are changing how developers write code. Instead of switching to a browser or IDE extension, you stay in your terminal and work with an AI that can read your codebase, edit files, and run commands. Here is a practical overview of the major options.

Claude Code

Claude Code is Anthropic's AI coding assistant. It runs in your terminal, reads your project files, and can create, edit, and delete files with your approval. It is an agentic tool — you give it a task and it works through it step by step.

Install

npm install -g @anthropic-ai/claude-code

Key Features

Best For

Multi-file changes, refactoring, building new features, understanding unfamiliar codebases. Claude Code excels at tasks that require reading many files and making coordinated changes.

Codex

Codex is OpenAI's CLI agent. Like Claude Code, it operates directly in your terminal and can read, write, and execute within your project.

Install

npm install -g @openai/codex

Key Features

Best For

Developers already in the OpenAI ecosystem. Similar capabilities to Claude Code with a different model underneath.

Gemini CLI

Gemini CLI is Google's entry into the AI CLI space. It brings Gemini's capabilities to the terminal.

Install

npm install -g @google/gemini-cli

Key Features

Best For

Developers in the Google ecosystem or those who want to compare Gemini's output against Claude or GPT for their specific use cases.

Vibe CLI

Vibe CLI focuses on rapid prototyping and creative coding. It takes a more conversational, exploratory approach compared to the task-oriented style of Claude Code and Codex.

Best For

Quick prototyping, exploration, and developers who prefer a lighter-weight interaction style.

Terminal Setup Tips

Regardless of which tool you use, your terminal setup matters:

Split Panes

The most important setup. Run the AI tool in one pane and keep a regular shell in the other. You can check files, run tests, and verify changes while the AI works. Most terminals support this — split vertically so the AI gets the wider pane.

Scrollback

AI CLI tools produce a lot of output. Make sure your terminal has enough scrollback to review what the AI generated. At least a few thousand lines.

Project Context

All of these tools benefit from context about your project. Claude Code uses CLAUDE.md files, and most tools will read README files and project structure. The more context the AI has, the better its output.

Terminal-Specific Support

Most terminals treat AI CLI tools as regular processes — they run, but the terminal does not know or care what they are. Yaw is an exception: it detects when you launch Claude Code, Codex, Gemini CLI, or Vibe CLI and automatically opens a companion pane in the same directory. Yaw also includes a built-in file editor, so you can review and edit files the AI modifies without leaving your terminal.

Comparison Table

ToolProviderFile EditingCommand ExecutionContext Files
Claude CodeAnthropicYesYesCLAUDE.md
CodexOpenAIYesSandboxedProject files
Gemini CLIGoogleYesYesProject files
Vibe CLIVariousYesYesProject files

Try yaw on Windows

Free, no account required. Install from PowerShell:

irm https://yaw.sh/install-win.ps1 | iex

All platforms →

Related Articles