Google Gemini CLI iconGoogle Gemini CLI

Google's open-source Apache-2.0 terminal coding agent for Gemini models; since June 2026 free and consumer users move to Antigravity CLI

108K+ GitHub Stars
Apache 2.0 License
June 2025 Launched

Overview

Gemini CLI is Google's open-source AI agent for the terminal. It reads and edits code, runs shell commands, fetches web pages, grounds answers with Google Search and connects to MCP servers and custom extensions. It also runs headless for scripts and CI, with JSON or streaming JSON output. Google launched it on June 25, 2025 with a generous free preview tied to a personal Google account. That changed in 2026: from June 18, 2026, Gemini CLI stopped serving free "Gemini Code Assist for individuals" users and Google AI Pro and Ultra subscribers, who were moved to Google's new Antigravity CLI. Gemini CLI keeps working with Gemini Code Assist Standard and Enterprise licenses and with paid Gemini API or Vertex AI keys, and the repository is still active. Also from Google: Google Antigravity.

The Verdict

Who Should Use Gemini CLI?

Best For

  • Companies on Gemini Code Assist Standard or Enterprise that want a terminal agent
  • Teams paying for Gemini API or Vertex AI usage who want an open-source agent they can audit or fork
  • Scripted and CI use through headless mode

Not Ideal For

  • Individuals expecting the old free tier: it ended on June 18, 2026
  • Google AI Pro or Ultra subscribers (Google now points them to Antigravity CLI)
  • Users of the newest Gemini models, which Google says run better in Antigravity

What's Great

  • Fully open source under Apache 2.0, with a very active repository
  • Large context window (1M tokens at launch) suits big codebases
  • MCP servers, extensions and built-in file, shell, web fetch and search tools
  • Headless mode for automation and CI pipelines
  • Enterprise path stays supported through Code Assist Standard and Enterprise

Watch Out For

  • No free individual access since June 18, 2026; Antigravity CLI is the replacement and has no one-to-one feature parity
  • Free-tier usage could be used to improve Google models, a concern raised by Hacker News commenters at launch
  • Hacker News users saw the free tier as Google subsidizing adoption, which proved temporary
  • Requires a Google account or Google Cloud setup and online access

Pricing

Request quotas come from Google’s Gemini for Google Cloud quotas page. Code Assist prices are from Google’s pricing page as shown in search results; check the live page before buying.

View all features & details

Key Features

  • Agentic loop for reading, editing and running code in the terminal
  • Built-in tools: file system, shell, web fetch, Google Search grounding
  • MCP server support and custom extensions
  • Checkpointing to roll back changes
  • Non-interactive mode with JSON and streaming JSON output
  • Install with npm, npx or Homebrew

Use Cases

  • Code edits and debugging in large repositories
  • Automation scripts and CI jobs
  • Research and file tasks from the command line

Timeline

  • June 25, 2025: launched with free preview (60 requests/min, 1,000/day)
  • May 19, 2026: Google announces the move to Antigravity CLI
  • June 18, 2026: free, Google AI Pro and Ultra access ends

How It Compares

Feature Gemini CLI Claude Code OpenAI Codex CLI
Open source Yes (Apache 2.0) No Yes
Models Gemini Claude OpenAI
Individual free tier Ended June 2026 No See vendor
MCP support Yes Yes Yes

Sources: geminicli.com · GitHub README · Google transition post · Google launch post

Is this your tool? Add a badge