Gemini CLI
Google's open source AI command line tool that brings Gemini's power directly into your terminal
Get Started NowPowerful Features
AI-Powered Coding
Powered by Gemini 2.5 Pro model, providing intelligent code generation, debugging, and refactoring with a 1M token context window.
Terminal Integration
Deeply integrated into familiar command line environments, supporting file operations, command execution, and system interactions.
Web Search
Built-in Google search tool for real-time web information, providing external context support for AI responses.
Extensible Architecture
Supports MCP protocol and custom extensions, allowing developers to customize functionality based on their needs.
High Performance
Industry-leading free limits: 60 requests per minute and 1,000 requests per day, meeting professional development needs.
Open Source Security
Apache 2.0 open source license with transparent, auditable code and community-driven continuous improvements.
10.9k+
GitHub Stars
676+
Forks
60/min
Request Limit
1000/day
Free Quota
Quick Start
Get started with Gemini CLI in three simple steps.
# Using npm (recommended)
npm install -g @google/gemini-cli
# Or with Homebrew (macOS)
brew install gemini-cli
# Start Gemini CLI
gemini
# Set your API key as an environment variable
export GEMINI_API_KEY="your-api-key"
# Or configure via CLI
gemini config set api-key YOUR_API_KEY
# Check the version
gemini --version
# Get help
gemini --help
# Start a conversation
gemini "Hello, Gemini!"