Gemini CLI

Your Open-Source AI Agent for the Terminal

Powered by Gemini 2.5 Pro • 1M Token Context • Free to Use

Start Building Learn More
🚀
NEW! Google officially announced Gemini CLI on June 25, 2025. Now available in preview with free access to Gemini 2.5 Pro!

Powerful Features

Everything you need to integrate AI into your development workflow

🧠

Code Understanding

Analyze, explain, and debug code across multiple programming languages with advanced AI-powered insights.

📁

File Manipulation

Read, write, and modify files directly through natural language commands, streamlining file operations.

Command Execution

Execute system commands and scripts with AI guidance, ensuring safe and efficient operations.

🔍

Web Search Integration

Ground your prompts with real-time Google Search results for up-to-date information and context.

🔌

MCP Support

Extend capabilities through Model Context Protocol support, allowing custom integrations and plugins.

🛠️

Dynamic Troubleshooting

Get intelligent assistance for debugging and problem-solving with context-aware recommendations.

Quick Installation

Get started with Gemini CLI in under a minute

Prerequisites

  • Node.js version 18 or higher
  • A personal Google account
  • Terminal or command prompt access
$ npm install -g @google/gemini-cli
$ gemini
# Authenticate with your Google account when prompted
View Documentation

Usage Examples

See Gemini CLI in action with real-world examples

Basic Commands

$ gemini "Explain the concept of recursion"
$ gemini analyze script.py
$ gemini "Create a Python function to calculate fibonacci numbers"

Advanced Features

$ gemini --search "latest JavaScript framework trends 2025"
$ gemini --context-size 100000 "Analyze this large codebase"
$ gemini --mcp database "Query user data from PostgreSQL"

Simple, Transparent Pricing

Choose the plan that fits your needs

Starter

$0/month
  • 1,000 requests per day
  • 60 requests per minute
  • Gemini 2.5 Pro access
  • 1M token context window
  • Google Search integration
  • MCP support
Get Started Free

Enterprise

Custom
  • Gemini Code Assist license
  • Dedicated support
  • Custom integrations
  • SLA guarantees
  • Private deployment
  • Compliance features
Contact Sales

Resources & Documentation

Everything you need to master Gemini CLI

📚 Documentation

Comprehensive guides, API references, and best practices for using Gemini CLI effectively.

Explore Docs →

💻 GitHub Repository

Access the source code, contribute to the project, and stay updated with the latest releases.

View on GitHub →

👥 Community

Join our vibrant community of developers, share experiences, and get help when you need it.

Join Community →