Free to read. Sign up to save tools and get alerts when they change. Plus 900+ more AI tool profiles.

Sign up free
5 min read·Updated August 9, 2026

Gemini CLI was Google's open-source terminal AI coding agent, with a 1 million token context window, plan mode, subagent support and a free daily usage limit. It reached end of life on June 18, 2026 for Google AI Pro, Ultra and free-tier users; Antigravity CLI, the Go-based rewrite shipping alongside Google Antigravity 2.0, is the supported replacement. Enterprise customers on paid API keys are unaffected.

Share

Listen to this overview

Free preview · first 0:30
0:00 / 0:30

Unlock audio and more

Audio streaming, downloadable PDFs and certificates come with Plus and Pro.

Learning Objectives

  • Understand the completed June 18, 2026 sunset and the migration path to Antigravity CLI
  • Understand how Gemini CLI works and what sets it apart from other coding agents
  • Identify key features: model routing, plan mode, subagents, and MCP support
  • Evaluate when to use Gemini CLI versus Claude Code, OpenAI Codex, or GitHub Copilot

⚠️Warning

Sunset completed — June 18, 2026. Gemini CLI and the Gemini Code Assist IDE extensions stopped serving requests for Google AI Pro, Ultra, and free-tier users on June 18, 2026. Enterprise customers on paid API keys keep working past that date. The replacement is Antigravity CLI — Google's Go-based rewrite that ships alongside Google Antigravity 2.0 and preserves the same Agent Skills, Hooks, Subagents, and Extensions (now called plugins) with async workflows and a unified backend shared with the Antigravity desktop app. Migration documentation is live on the Google Developers Blog. If you are starting a new project today, install Antigravity CLI — Gemini CLI is no longer served on the consumer tiers.

What Is Gemini CLI?

Gemini CLI is Google's open-source command-line AI coding agent. It ran directly in your terminal with automatic model routing and a 1 million token context window. Google's launch materials paired it with Gemini 3.5 Pro for complex reasoning and Gemini 3.5 Flash for speed — though 3.5 Pro never shipped, so the Flash line carried the work in practice. The consumer-tier cutoff passed on June 18, 2026; new projects should target Antigravity CLI.

Unlike proprietary coding agents, Gemini CLI is fully open source (Apache 2.0) and available on GitHub. It is free to use with a generous daily limit tied to your Google account, making it an accessible entry point for developers who want to try agentic coding without a paid subscription.

🎯Tip

Get started: Install with npm install -g @google/gemini-cli — free to a daily limit with any Google account. Open source at github.com/google-gemini/gemini-cli

Core Capabilities

Intelligent Model Routing

Gemini CLI analyzes each task and automatically selects the best model:

  • Gemini 3.5 Pro: Named for complex reasoning and architecture work in Google's launch materials, but it never shipped — it remains partner-testing only as of August 2026
  • Gemini 3.5 Flash: Used for quick questions, simple edits, code formatting, and routine operations

This routing happens transparently — you always interact with a single CLI, and it optimizes cost and speed behind the scenes.

Plan Mode

Plan mode lets you design implementation strategies before writing code. Gemini CLI creates a structured plan with steps, identifies files to modify, and gets your approval before executing. This is especially valuable for large features where you want to review the approach before any code changes.

Subagent Support

Gemini CLI can spawn subagents for parallel subtasks — delegating independent work items to separate agent instances that run concurrently. A model-driven parallel tool scheduler ensures safe tools execute simultaneously, improving throughput for multi-step workflows.

MCP Integration

Full support for the Model Context Protocol — connect Gemini CLI to databases (Supabase, Postgres), deployment platforms (Vercel, Firebase), project management tools (GitHub, Linear), and any other MCP-compatible service. Configure MCP servers in your project and Gemini CLI discovers their capabilities automatically.

gVisor Sandboxing

Gemini CLI uses native gVisor sandboxing (with experimental LXC support) to isolate agent actions from the host system. This provides safer execution of untrusted operations — particularly important when running agent-generated commands on your local machine.

JIT Context Loading

Just-In-Time context loading is enabled by default with deduplication — Gemini CLI loads only the context it needs for each step rather than loading your entire project upfront. This optimizes the 1 million token context window for maximum effectiveness.

Pricing

Gemini CLI is free with a daily usage limit:

  • Free tier: Generous daily limit tied to your Google account — sufficient for most individual development workflows
  • Paid accounts: Higher priority and expanded limits based on license type
  • API key: Use your own Gemini API key for unlimited usage at per-token pricing

📝Note

Traffic prioritization: Starting March 25, 2026, Gemini CLI routes traffic with higher priority given to accounts based on license type and account standing.

Strengths

  • Free daily usage: No subscription required — start coding with AI agents at zero cost
  • Open source: Full source code available; community contributions welcome; Apache 2.0 license
  • 1 million token context: Among the largest context windows of any coding agent — handles very large codebases
  • Automatic model routing: Optimizes between Pro (quality) and Flash (speed) without manual configuration
  • Plan mode: Review and approve implementation strategies before any code changes
  • Google ecosystem: Native integration with Google Cloud, Firebase, and Vertex AI

Limitations & Considerations

  • Google account required: Free tier requires Google authentication
  • Daily limits: Free usage is capped — heavy users may hit limits during intensive coding sessions
  • Newer ecosystem: Fewer community extensions and integrations compared to Claude Code or GitHub Copilot
  • Cloud inference: Code context is sent to Google's API — not suitable for air-gapped environments

Best Use Cases

TaskWhy Gemini CLI
Getting started with AI coding agentsFree tier with no subscription commitment
Large codebase exploration1 million token context handles very large projects
Google Cloud/Firebase developmentNative GCP, Firebase, and Vertex AI integration
Open-source projectsOpen-source tool for open-source work — no vendor lock-in
Budget-conscious developmentFree daily limit covers most individual workflows

When to choose alternatives:

  • Maximum coding agent capability → Claude Code (Agent SDK, sub-agents, Agent Teams)
  • GitHub-native workflow → GitHub Copilot (Issues, PRs, Actions integration)
  • Browser-based development → OpenAI Codex (sandboxed cloud environment)
  • Visual IDE experience → Cursor (AI-native editor with inline suggestions)

Migration to Antigravity CLI

The successor product is Antigravity CLI — a Go-based rewrite that ships alongside Google Antigravity 2.0 and replaces Gemini CLI as Google's terminal-side agentic coding entry point. The migration preserves the structural primitives developers depend on:

  • Same model routing Google announced for Gemini CLI, though only the Flash side ever shipped
  • Same Agent Skills, Hooks, Subagents, and Extensions — Extensions are renamed to "plugins" but the configuration shape is unchanged
  • New: async workflows for complex multi-agent tasks that previously had to run sequentially
  • New: unified backend shared with the Antigravity desktop app, so terminal and IDE sessions can hand off in-flight work
  • New: faster execution courtesy of the Go runtime; Google highlights responsiveness as the headline improvement

Who needed to act: Google AI Pro, Ultra, and free-tier users — that cutoff has now passed, so install Antigravity CLI if you have not already. Enterprise customers using paid API keys for Gemini are unaffected — Gemini CLI continues to serve those requests past the cutoff. Migration documentation and walkthrough videos are linked from the Google Developers Blog announcement at developers.googleblog.com.

Key Takeaways

  • Gemini CLI reached end of life on June 18, 2026 for Google AI Pro, Ultra, and free-tier users — Antigravity CLI is the supported replacement
  • Enterprise customers on paid API keys are unaffected by the sunset; Gemini CLI continues to serve those requests
  • Antigravity CLI preserves the same Agent Skills, Hooks, Subagents, and Extensions (renamed plugins) plus Gemini 3.5 model routing, and adds async workflows and a unified backend with the Antigravity desktop app
  • Before the sunset, Gemini CLI was Google's open-source coding agent with automatic model routing across the Gemini Flash line
  • 1 million token context window, plan mode, subagent support, and MCP integration make it a capable production tool through June 18, 2026
  • Open source (Apache 2.0) under the legacy product; the Antigravity CLI source is also published on the Google Antigravity GitHub org

Keep track of the tools you’re evaluating

  • The AI Hub on a phone: a 12-day AI Skill Streak and an expanded Content updates alert listing the saved items that changed.
  • Recommended for you on a phone: nine personalised suggestions labelled Trending in AI news, On your saved list, and Popular.
  • My AI Tools on a phone: saved tools including GitHub Copilot and OpenAI Codex, each with an Updated badge.

Swipe for Recommended for you and My AI Tools

Your AI Hub — sample data.

📰Gemini CLI in the News

Showing the only story where Gemini CLI is tagged in Top AI Stories.

Other tools in AI Coding (12 of 32)

Show 7 more →

Other tools from Google

Show 18 more →
🧭Recommended for you

Optional detours — these connect to what you just read, and your next lesson will be waiting.