Gemini CLI is Google’s official open-source AI agent for the terminal, powered by Gemini 2.5 Pro. It allows developers to chat, code, and perform complex tasks via natural language directly in the shell, with support for multimodal prompts and a massive 1 million-token context window.
Gemini CLI is Google's official open-source command-line tool that brings Gemini 2.5 Pro AI functionalities—including coding help, research, content generation, and task management—directly into the terminal. It’s powered by Gemini’s large language model with a massive 1 million-token context window, providing a powerful, multimodal experience for developers
GEMINI_API_KEY
from Google AI Studio.gemini
with --help
to explore chat, embed, prompt, code features, and more !m
(toggle multiline), set models, or clear memory within chat sessionsQ: Is Gemini CLI available now?
A: Yes. It's in public preview and open-source. You can access it with a personal Google account and a Gemini Code Assist license
Q: Do I need an API key?
A: Yes. Obtain your Gemini API key from Google AI Studio or Vertex AI and set it in the GEMINI_API_KEY
environment variable
Q: Can I use it for free?
A: Free preview users get up to 60 requests per minute and 1,000 per day. Paid users can exceed this via Vertex AI or enterprise plans
Q: What makes it different from IDE-based tools?
A: Gemini CLI stands out by offering a pure terminal-native AI experience with no need for heavy IDE setups, covering code, text, research, and media—all via shell interaction
Q: Who is it for?
A: Ideal for terminal-loving developers, DevOps professionals, researchers, and AI enthusiasts who prefer AI tools tightly integrated into their command-line workflows
Share your thoughts about this page. All fields marked with * are required.