# Gemini CLI — Google AI Coding Agent in Terminal > Google's official CLI coding agent powered by Gemini 2.5 Pro. Free 60 requests/min for Gemini users with 1M token context, MCP support, and Google ecosystem integration. ## Install Copy the content below into your project: ## Quick Use ```bash npm install -g @anthropic-ai/gemini-cli # Or npx @google/gemini-cli ``` ```bash # Start interactive session gemini # One-shot command gemini "explain this codebase" ``` ## What is Gemini CLI? Gemini CLI is Google's official command-line AI coding agent, powered by Gemini 2.5 Pro with 1 million token context. It is Google's answer to Claude Code and Codex CLI — a terminal-based AI that can read, write, and reason about code. Free for Google account holders with 60 requests/minute. Built-in MCP support and deep Google ecosystem integration. **Answer-Ready**: Gemini CLI is Google's terminal AI coding agent. Powered by Gemini 2.5 Pro with 1M context window. Free 60 req/min for Google users. MCP server support, Google Workspace integration, multi-modal (images + code). Open-source under Apache 2.0. 50k+ GitHub stars. **Best for**: Developers wanting a free, powerful CLI coding agent with Google integration. **Works with**: Any codebase, MCP servers, Google Workspace. **Setup time**: Under 2 minutes. ## Core Features ### 1. Free Tier (Generous) | Limit | Value | |-------|-------| | Requests/min | 60 | | Context window | 1M tokens | | Cost | Free (Google account) | | Models | Gemini 2.5 Pro | ### 2. MCP Server Support ```json // ~/.gemini/settings.json { "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."] } } } ``` ### 3. Multi-Modal ```bash # Analyze screenshots gemini "what's wrong with this UI?" --image screenshot.png # Read diagrams gemini "explain this architecture" --image diagram.png ``` ### 4. Google Integration - Google Search grounding for up-to-date answers - Google Workspace access via GWS MCP - Vertex AI for enterprise deployment ### 5. Extensions System ```bash # Install extensions gemini extensions install togethercomputer/skills gemini extensions install google-workspace-mcp ``` ## Gemini CLI vs Claude Code vs Codex CLI | Feature | Gemini CLI | Claude Code | Codex CLI | |---------|-----------|-------------|-----------| | Model | Gemini 2.5 Pro | Claude Opus/Sonnet | Codex/GPT-4o | | Context | 1M tokens | 200K tokens | 200K tokens | | Free tier | 60 req/min | None | 50 req/day | | MCP | Yes | Yes | No | | Multi-modal | Yes | Yes | Limited | | Open source | Yes | Yes | Yes | ## FAQ **Q: Is it really free?** A: Yes, 60 requests/minute with a Google account. No credit card needed. Paid tier available for higher limits via Vertex AI. **Q: How does the 1M context compare?** A: Largest context window of any CLI coding agent. Can process entire large codebases in a single context. **Q: Can I use it with non-Google models?** A: Gemini CLI is Gemini-only by default. Use Bifrost CLI to route to other providers. ## Source & Thanks > Created by [Google](https://github.com/google-gemini). Licensed under Apache 2.0. > > [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) — 50k+ stars ## Quick Use ```bash npx @google/gemini-cli ``` Google's official terminal AI coding agent, free to use. ## What is Gemini CLI? Google's official command-line AI coding agent, powered by Gemini 2.5 Pro with a 1M-token context window. Free 60 requests/minute. Supports MCP and deep Google ecosystem integration. **TL;DR**: Google's official terminal AI coding agent. Gemini 2.5 Pro + 1M context. Free 60 req/min. MCP support. Open source under Apache 2.0. 50k+ stars. **Best for**: Developers who want a powerful, free CLI coding agent. ## Core Features ### 1. Generous Free Tier 60 requests/min, 1M context, no cost. ### 2. MCP Support Compatible with the MCP server ecosystem. ### 3. Multi-Modal Analyze images (screenshots, architecture diagrams). ### 4. Google Integration Google Search grounding, Workspace access. ## FAQ **Q: Is it really free?** A: Yes — just a Google account, no credit card required. **Q: What's the advantage of 1M context?** A: Largest context of any CLI coding agent; can process entire large codebases. ## Source & Thanks > [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) — 50k+ stars, Apache 2.0 --- Source: https://tokrepo.com/en/workflows/gemini-cli-google-ai-coding-agent-terminal-926633bc Author: AI Open Source