What is Gemini CLI?
Gemini CLI is an open-source AI agent from Google that brings Gemini models directly into your terminal. You can ask it to explain a codebase, fix bugs, write features, run shell commands or automate everyday workflows. Because it is open source under the Apache 2.0 license, developers can inspect how it works, extend it and contribute to it.
Key features
- Terminal-native agent: chat with Gemini and let it read and edit files in your project.
- Large context window: Gemini models can take in large codebases and documents.
- Built-in tools: file operations, shell commands, web search grounding and web fetch.
- MCP support: connect Model Context Protocol servers to add custom tools.
- Multimodal input: generate apps from images, PDFs or sketches.
- Media generation via MCP: connect Google's MCP servers for Imagen, Veo or Lyria.
- Project context files: a
GEMINI.mdfile gives the agent project-specific instructions. - Non-interactive mode: use it in scripts and CI for automation.
- Release channels: stable, preview and nightly builds via npm.
Who is it for?
Gemini CLI is for developers who live in the terminal and want an AI agent that works with their existing tools, plus teams already using Google Cloud or Gemini. Its open-source license and easy npx start also make it popular with students and hobbyists.
Use cases
- Understanding and navigating a large unfamiliar codebase
- Fixing bugs and writing features across multiple files
- Generating apps from a screenshot or PDF
- Automating git, release and ops tasks in scripts
- Querying documents and data from the command line
Pricing
Gemini CLI itself is free and open source under the Apache 2.0 license. Model usage depends on how you sign in: a Google account, a Gemini API key, or Google Cloud (Vertex AI). Quotas and any free allowance vary by sign-in method and change over time, so check the official documentation for current limits.
What's new and trending
Gemini CLI ships updates frequently; v0.65.0 was released on October 20, 2026 (release notes). It remains one of the most-starred terminal coding agents on GitHub.
Getting started
- Make sure Node.js is installed.
- Run
npx @google/gemini-clior install globally withnpm install -g @google/gemini-cli. - Run
geminiand sign in with Google, or set aGEMINI_API_KEY. - Open your project folder and describe a task.
- Add a
GEMINI.mdfile with conventions and connect MCP servers as needed.
Alternatives
Other terminal agents include Claude Code, Codex, Amp, OpenCode and Aider. For agents inside an editor, compare Cursor, Cline, Kiro and Google's own Antigravity.
FAQ
Is Gemini CLI free? The tool is free and open source. Model usage depends on whether you sign in with Google, a Gemini API key or Vertex AI, and quotas vary; see the official docs.
Is Gemini CLI open source? Yes, under the Apache 2.0 license on GitHub.
Does Gemini CLI support MCP? Yes. You can connect MCP servers to add custom tools.
What operating systems does it run on? It's distributed through npm, so it runs wherever a supported Node.js version does, including macOS, Linux and Windows.
Can I try Gemini CLI without installing it?
Yes. Run npx @google/gemini-cli to start it with no global install.

