Core Concepts
Reasoning
Memory & Retrieval
Agent Types
Design Patterns
Training & Alignment
Frameworks
Tools
Safety & Security
Evaluation
Meta
Core Concepts
Reasoning
Memory & Retrieval
Agent Types
Design Patterns
Training & Alignment
Frameworks
Tools
Safety & Security
Evaluation
Meta
This is an old revision of the document!
Gemini CLI is Google's open-source AI agent that brings the power of Gemini directly into the terminal. Built in TypeScript under the Apache 2.0 license, it leverages Google's Gemini models with a massive 1M-token context window to help developers write, debug, and understand code from the command line. With over 98,000 GitHub stars, it is one of the most popular CLI coding agents in the ecosystem.1)2)3)
GitHub: google-gemini/gemini-cli | Website: https://geminicli.com4)
Gemini CLI is structured as a monorepo with multiple packages:
GEMINI.md instruction files (similar to Claude's CLAUDE.md) for project-level customization# Install globally via npm npm install -g @anthropic-ai/gemini-cli # Start interactive session in a project cd my-project gemini # Use with a direct prompt gemini "explain the authentication flow in this codebase" # Use Plan Mode for complex changes gemini "refactor the database layer to use connection pooling" --plan
| Feature | Gemini CLI | Claude Code |
|---|---|---|
| Context Window | 1M tokens | 200K tokens |
| Language | TypeScript | TypeScript |
| License | Apache 2.0 | Proprietary |
| Model Lock-in | Gemini only | Claude only |
| MCP Support | Yes | Yes |
| Plan Mode | Yes | Yes |
| GitHub Stars | ~99K | N/A |