Gemini CLI: Google's Open-Source AI Agent Lives in Your Terminal
Most AI coding tools want you inside an editor or a browser tab. Gemini CLI keeps you in the terminal. It's Google's open-source command-line agent for Gemini models, written in TypeScript and released under the Apache 2.0 license. The repo has close to 109,000 stars and about 15,000 forks on GitHub.
What it is
Gemini CLI (the command is gemini) is a terminal agent that can read and edit your codebase, run shell commands, fetch web pages, and work through tasks you describe in plain language. One thing has changed recently, so read this before installing. Since June 18, 2026, free individual access and Google AI Pro and Ultra subscribers have moved to Google's new Antigravity CLI. Gemini CLI is now maintained for organizations on Gemini Code Assist Standard or Enterprise, Code Assist for GitHub, and legacy paid Gemini API or Vertex AI keys. The README also says it isn't tuned for the Gemini 4 series.
Key features
- Code understanding. Query and edit large codebases, and debug with natural language.
- Multimodal input. Generate new apps from PDFs, images, or sketches.
- MCP support. Connect MCP servers in
~/.gemini/settings.jsonto add tools like GitHub, Slack, or databases. - Headless mode. Run
gemini -p "..."in scripts, with JSON or streaming JSON output for automation. - Project context.
GEMINI.mdfiles, checkpointing, custom commands, extensions, sandboxing, and trusted folders. - Weekly releases. Stable and preview builds ship every Tuesday, and nightly builds ship every day.
Why it matters
Gemini CLI is one of the most-starred open-source coding agents, and because all the code is public you can see exactly how a terminal agent handles tools, context, and safety. It's a good fit for teams already on Google Cloud who want an auditable agent they can script into CI. Individual users on free or Google AI plans should look at Antigravity CLI instead.
Getting started
Run it instantly with npx @google/gemini-cli, or install it with npm install -g @google/gemini-cli (Homebrew and MacPorts work too). Then sign in with Google, or set GEMINI_API_KEY or your Vertex AI credentials, and run gemini in your project folder. The documentation covers authentication, configuration, and enterprise setup.
View the repo on GitHub: github.com/google-gemini/gemini-cli

