Gemini CLI icon
Gemini CLIVeriblue Verified Icon
#28 in Developer Tools
4.7/5
« Automate your development tasks directly in your terminal with an AI agent that understands your code, fixes bugs and generates complete applications. Free access with 60 requests/minute and 1000 requests/day »
Verified Icon
Verified Tool
Free 13535

Gemini CLI: Google's open-source terminal agent after the Antigravity transition

Updated on November 6, 2026

Gemini CLI is Google's open-source (Apache 2.0) terminal agent that brings Gemini models into the command-line interface for code review, bug fixes, app generation and workflow automation. Since its launch on June 25, 2025, the GitHub repository has collected over 100,000 stars. On June 18, 2026, Google redirected free-tier, Google One, AI Pro and AI Ultra accounts to Antigravity CLI; Gemini CLI still works with a paid Gemini API key or a Code Assist Standard/Enterprise license.

Pros
  • Apache 2.0 license, fully auditable source
  • One-million-token context window
  • MCP, custom extensions and GitHub Action support
  • Seatbelt sandbox and prompt-injection hardening
  • Vertex AI integration for enterprise deployments
Cons
  • Free tier redirected to Antigravity CLI since June 2026
  • Not optimized for Gemini 4 Argon
  • Interface and documentation in English only

Installing Gemini CLI and working with Gemini 3

Gemini CLI requires Node.js 20 or later and installs via npm install -g @google/gemini-cli, npx, Homebrew or MacPorts. It runs on macOS 15+, Windows 11 24H2+ and Ubuntu 20.04+, in Bash, Zsh or PowerShell. Three authentication paths are available: Google account (OAuth), a GEMINI_API_KEY environment variable or Vertex AI for Google Cloud projects.

The agent runs on the Gemini 3 family. Through successive updates in late 2025 and early 2026, support arrived for Gemini 3, Gemini 3 Flash, then Gemini 3.1 Pro Preview. A GEMINI.md file, auto-generated by the /init command, lets you define project conventions (stack, commit style, testing rules) so the agent follows them. You describe a task in plain language, and Gemini CLI reads the relevant files, suggests edits and can run shell commands after your approval.

Key capabilities include built-in Google Search grounding, PDF and image reading, app generation from a mockup, MCP support, and a non-interactive mode (-p flag) for CI pipelines. Version 0.63.0 added autonomous plan execution, and 0.60.0 introduced a macOS Seatbelt sandbox.

Full beginner walkthrough of Gemini CLI
Setting up Gemini CLI on Windows 11 step by step

The Antigravity transition and remaining access paths

On May 19, 2026, at Google I/O, Google announced it was consolidating its terminal tools under the Antigravity brand. From June 18, 2026, Gemini CLI stopped serving requests for free-tier, Google One, AI Pro and AI Ultra users. New Gemini Code Assist for GitHub installations were also blocked. The successor, Antigravity CLI, is a Go binary that carries over skills, hooks, subagents and extensions (now called plugins), though without full feature parity at launch.

Gemini CLI remains accessible for two groups: developers with a paid Gemini API key (billed per token) and organizations holding a Code Assist Standard or Enterprise license. Google states that Gemini CLI has not been optimized for Gemini 4 Argon; that model requires Antigravity CLI. The GitHub repository still receives updates (v0.64.0 on October 13, 2026), and the Apache 2.0 source stays available, a real differentiator for teams that need auditability.

TierGemini CLI accessRequests / day
Free API keyYes (Flash only)250
Code Assist StandardYes1,500
Code Assist EnterpriseYes2,000
Vertex AI (pay-as-you-go)YesPer token
Free / AI Pro / AI UltraRedirected to Antigravity CLI—

Gemini CLI alongside Claude Code and rival agents

Gemini CLI and Claude Code are the two dominant terminal agents today. Claude Code, proprietary, relies on Anthropic's models and has no free tier. Gemini CLI bets on its open license, a one-million-token context window and tight Google Cloud integration. On complex multi-file refactors, results depend more on the model and quota in use than on the tool itself. For rapid prototyping, repo audits and multimodal workflows (images, PDF), Gemini CLI holds its ground.

Other terminal agents in the developer tools space include OpenAI's Codex, Cursor and Google's own Antigravity CLI. The decision hinges on licensing (open source or not), budget (free, subscription, pay-as-you-go) and existing cloud ecosystem. Gemini CLI's cost depends on the API plan or Code Assist tier selected; check the official site for current rates, as pricing is subject to change.

Frequently asked questions

Is Gemini CLI free?

The tool itself is open source (Apache 2.0) and free to install. However, since June 18, 2026, free-tier, Google One, AI Pro and AI Ultra users have been redirected to Antigravity CLI. Gemini CLI still works with a free Gemini API key (250 requests/day, Flash only) or a Code Assist Standard (1,500/day) or Enterprise (2,000/day) license.

How do I install Gemini CLI?

You need Node.js 20 or higher. Run npm install -g @google/gemini-cli for a global install, or npx @google/gemini-cli for a quick try. On macOS and Linux, brew install gemini-cli also works. Supported systems: macOS 15+, Windows 11 24H2+, Ubuntu 20.04+. On first launch, pick your authentication method (Google account, API key or Vertex AI).

What is Gemini CLI?

Gemini CLI is Google's open-source terminal AI agent, launched on June 25, 2025. It brings Gemini 3 models into the command line with a one-million-token context window, MCP support, custom extensions, a GitHub Action for PR reviews and issue triage, and built-in Google Search grounding. It targets developers from solo freelancers to enterprise teams on Google Cloud.

Gemini CLI vs Claude Code: which should I pick?

Gemini CLI is open source, free to start and offers a one-million-token context window suited to large repos and multimodal tasks. Claude Code is proprietary, has no free tier, and relies on Anthropic's Claude models. Teams already on Google Cloud with a Code Assist license fit naturally with Gemini CLI; teams starting fresh may find Claude Code simpler to adopt.

Verdict: A million tokens of context, an Apache 2.0 license and over 100,000 GitHub stars make Gemini CLI a strong pick for teams already invested in Google Cloud. Solo developers without a paid API key or Code Assist license should also evaluate Antigravity CLI, its direct successor for accounts that lost access in June 2026.

★ Featured AI Tools ★
AI Alternatives for Gemini CLI
Freemium
Freemium
Paid
Free
Paid
Free
Free
Free