Your open-source AI agent that brings the power of Gemini directly into your terminal
Watch how Gemini CLI transforms your terminal workflow
Get instant AI assistance with industry-leading speed. 60 requests per minute and 1,000 daily requests at no charge.
Query and edit large codebases within Gemini's massive 1 million token context window with intelligent code analysis.
Ground prompts with Google Search to fetch web pages and provide real-time, external context to the model.
Extend capabilities through built-in Model Context Protocol (MCP) support and bundled extensions.
Generate new apps from PDFs or sketches using Gemini's advanced multimodal capabilities including Veo and Imagen.
Fully open source (Apache 2.0) with transparent code that you can inspect, modify, and contribute to.
Get started in minutes on any platform
Make sure you have Git installed and a Google account ready.
git --version
Download the Gemini CLI source code from GitHub.
git clone https://github.com/google-gemini/gemini-cli.git
cd gemini-cli
Follow the setup script and sign in with your Google account.
./install.sh
gemini auth login
You're ready! Start your first AI conversation.
gemini
Install Git for Windows and ensure you have a Google account.
git --version
Open PowerShell or Command Prompt and clone the repository.
git clone https://github.com/google-gemini/gemini-cli.git
cd gemini-cli
Run the Windows installer and authenticate with Google.
.\install.bat
gemini auth login
Launch Gemini CLI and start your AI-powered workflow.
gemini
Ensure Git is installed on your Linux distribution.
# Ubuntu/Debian
sudo apt update && sudo apt install git
# CentOS/RHEL
sudo yum install git
Clone the Gemini CLI repository to your local machine.
git clone https://github.com/google-gemini/gemini-cli.git
cd gemini-cli
Make the installer executable and run the setup.
chmod +x install.sh
./install.sh
gemini auth login
Begin your AI-enhanced terminal experience.
gemini
See how developers are using Gemini CLI in their daily workflows
Quickly identify and resolve bugs in your codebase with AI-powered debugging assistance.
Analyze CSV files, generate reports, and create data visualizations directly from your terminal.
Generate complete applications, components, or scripts from simple descriptions or sketches.
Auto-generate documentation, README files, and technical guides for your projects.
Modernize legacy code, optimize performance, and improve code structure with AI guidance.
Convert wireframes, mockups, or design sketches into working code and prototypes.
Everything you need to know about Gemini CLI
Connect with developers worldwide using Gemini CLI
Start using Gemini CLI in minutes with these simple steps:
# 1. Clone the repository
git clone https://github.com/google-gemini/gemini-cli
cd gemini-cli
# 2. Start Gemini CLI
gemini
# 3. Ask anything
> Write me a Python script to analyze CSV data
> Debug this error in my React component
> Create a slide deck from my git history
All you need is a Google account to get started. Gemini CLI offers the industry's largest usage allowance completely free.
Start Building Now