Skip to content
HUIAHUB

google-gemini/gemini-cli

gemini-cli

An open-source AI agent that brings the power of Gemini directly into your terminal.

Metrics updated Established+0.2% 7d

GitHub metrics

Stars
109K
+224 this week
Forks
15K
30-day growth
—
Open issues
465
109K109K109KNov 13, 2026Nov 23, 2026
GitHub stars from the official GitHub API, recorded each time the repository was checked (2 days).
GitHub stars by day
DayGitHub stars
2026-11-13108785
2026-11-23109009

What it does

Gemini CLI is an open-source command-line agent from Google that reads and edits code, runs shell commands and answers questions about a project from inside the terminal. You start it with gemini in a project folder and work in a chat-style session, or call it from scripts.

The README now opens with a status notice. It says the tool is designed for organizations with Gemini Code Assist Standard or Enterprise licenses and Code Assist for GitHub on Google Cloud, and it also lists legacy paid Gemini API and Vertex AI keys. Free individual access and the Google AI Pro and Ultra plans moved to a separate product, Antigravity CLI, on June 18, 2026. The same notice says Gemini CLI is not tuned for the Gemini 4 model series.

For people who still have access, the docs describe built-in tools for files, shell commands, web fetch and web search, plus MCP servers configured in ~/.gemini/settings.json. Headless mode returns plain text, one JSON object or a stream of JSON events. Tool execution can be sandboxed with macOS Seatbelt, Docker or Podman, a Windows native sandbox, or gVisor on Linux. Project instructions live in GEMINI.md context files, and checkpointing saves conversations so they can be resumed.

Why it matters

Gemini CLI puts a Gemini-backed agent in the terminal under the Apache 2.0 license, with the source for its file, shell and sandbox tools public. Since June 18, 2026 the README limits who it is for. Individual and Google AI plan users are sent to Antigravity CLI, and scripts or CI jobs that only need model calls are pointed to the separate Gemini API CLI. Gemini CLI itself is maintained for organizations that already use Gemini Code Assist on Google Cloud.

Main features

  • Interactive terminal sessions started with `gemini` in a project directory
  • Headless mode with `-p`, returning text, JSON or newline-delimited JSON events
  • Built-in tools for file system operations, shell commands, web fetch and search
  • MCP servers configured in `~/.gemini/settings.json` add custom tools
  • Sandboxed tool execution with Seatbelt, Docker, Podman, gVisor or a Windows native sandbox
  • `GEMINI.md` context files give the agent persistent project instructions
  • Checkpointing to save and resume conversations
  • Stable, preview and nightly release channels on npm

Who it's for

  • Organizations with Gemini Code Assist Standard or Enterprise licenses on Google Cloud
  • Teams that use Code Assist for GitHub
  • Developers who hold legacy paid Gemini API or Vertex AI keys
  • Engineers who script a terminal agent through headless JSON output

Strengths

  • Apache 2.0 source, including the code for its file, shell and sandbox tools
  • Sandbox options for macOS, Linux and Windows that isolate commands with side effects
  • Scriptable: headless mode documents its JSON output schema and exit codes
  • Frequent releases: 103 in the last 90 days, latest v0.68.0 on 2026-11-10

Limitations

  • No free tier: free individual access and Google AI Pro and Ultra moved to Antigravity CLI on June 18, 2026
  • The README says it is not tuned for the Gemini 4 series and should not be used to benchmark Gemini models
  • Preview and nightly builds are not fully vetted and may contain regressions
  • The authentication guide still describes sign-in for free individual accounts, which conflicts with the README notice

Getting started

Gemini CLI is an npm package and needs Node.js 20 or later. Install it globally, run it once with npx, or use Homebrew on macOS and Linux; the preview and nightly tags install the less tested channels.

npm install -g @google/gemini-cli
npx @google/gemini-cli
brew install gemini-cli
npm install -g @google/gemini-cli@preview
npm install -g @google/gemini-cli@nightly

Requirements: Node.js 20.0.0 or later, an internet connection, and a Google sign-in, Gemini API key or Vertex AI credentials; the docs recommend macOS 15+, Windows 11 24H2+ or Ubuntu 20.04+ with 4 GB of RAM or more (16 GB for large codebases).

Always follow the official instructions in the README on GitHub. This overview is our summary, not a copy.

Sources