# 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 Save as a script file and run: ## 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 ## 快速使用 ```bash npx @google/gemini-cli ``` Google 官方终端 AI 编码 Agent,免费使用。 ## 什么是 Gemini CLI? Google 官方命令行 AI 编码 Agent,Gemini 2.5 Pro 驱动,1M token 上下文,免费 60 次/分钟。支持 MCP 和 Google 生态集成。 **一句话总结**:Google 官方终端 AI 编码 Agent,Gemini 2.5 Pro + 1M 上下文,免费 60 次/分钟,支持 MCP,开源 Apache 2.0,50k+ stars。 **适合人群**:需要免费强力 CLI 编码 Agent 的开发者。 ## 核心功能 ### 1. 免费额度大 60 次/分钟,1M 上下文,免费。 ### 2. MCP 支持 兼容 MCP 服务器生态。 ### 3. 多模态 支持图片分析(截图、架构图)。 ### 4. Google 集成 Google Search grounding,Workspace 访问。 ## 常见问题 **Q: 真免费?** A: 是,Google 账号即可,无需信用卡。 **Q: 1M 上下文优势?** A: CLI 编码 Agent 中最大上下文,能处理整个大型代码库。 ## 来源与致谢 > [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) — 50k+ stars, Apache 2.0 --- Source: https://tokrepo.com/en/workflows/926633bc-d041-486a-bda3-5a3cecabc0a8 Author: AI Open Source