AI agent in your terminal powered by Google Gemini
Gemini CLI is an open-source AI agent that brings Google’s Gemini models directly into your terminal. It supports natural-language commands to generate code, debug, automate system tasks, manipulate files, and more — all while understanding very large context (up to 1 million tokens). Its extensible design and built-in tools let developers build, inspect and automate workflows right from the command line.
Massive 1 million-token context window for deep understanding of large codebases or documents.
Natural-language input: use plain English prompts in your terminal to ask Gemini to write, fix or explain code.
Built-in tools for your terminal: access the file system, run shell commands, fetch web pages and more through AI-executed actions.
Multimodal model support: work with images, PDFs, sketches — generate UI mockups or app scaffolding using Gemini’s Veo and Imagen integration.
Extensible via Model Context Protocol (MCP): integrate your own tools or services to expand Gemini’s capabilities.
Free, generous tier: 60 requests per minute and up to 1,000 requests per day on the free plan.
Open source under Apache 2.0: you can inspect, modify or contribute to the codebase.
Generate boilerplate code, frontend components, or scripts just by describing what you need in natural language.
Debug code: ask Gemini to help identify and fix errors or suggest improvements.
Automate workflows: manipulate files, run batch tasks, manage Git repos, or streamline setup via terminal commands.
Interact with large codebases: ask questions about your project structure, architecture or dependencies and get instant summaries.
Create documentation, tests, or README files by prompting Gemini to analyze your code and propose structured outputs.
Increased developer productivity with less context-switching — code generation and automation happen directly in your shell.
Faster onboarding and workflow automation through natural-language command execution.
Deeper insights into large codebases thanks to Gemini’s huge context window.
Better integration of AI into daily development, enabling smarter scripting, refactoring and task automation.
Join thousands of users already leveraging Gemini CLI to transform their workflow
Access Gemini CLI