Gemini CLI
In short
Gemini CLI is Google's open-source AI agent for the terminal, built on Gemini models; for most individual users, Antigravity CLI replaced it in June 2026.
What is Gemini CLI?
Gemini CLI is an open-source AI agent from Google that runs in a terminal and uses Google's Gemini models. Released in June 2025 under the Apache 2.0 license, it reads and edits files, runs shell commands, fetches web pages and searches the web, working through a task step by step like other AI coding agents.
A GEMINI.md file gives it standing instructions for a project, MCP servers connect it to other tools, and it can run without a person in scripts, printing plain text or JSON. People sign in with a Google account, use a Gemini API key or go through Google Cloud's Vertex AI.
Because its code is open, it became a common reference for how a coding agent works inside: anyone can read the loop that turns a request into tool calls, change it, or build on it.
In May 2026 Google announced that its terminal agent would move to Antigravity CLI, part of its Antigravity development platform. Since June 18, 2026, Gemini CLI no longer serves requests for free individual users or for Google AI Pro and Ultra subscribers, who are pointed to Antigravity CLI instead. It remains available to organizations with Gemini Code Assist Standard or Enterprise licenses and with paid Gemini API keys.
Key takeaways
- Gemini CLI is Google's open-source AI agent for the terminal.
- It uses Gemini models to read code, edit files and run commands.
- A
GEMINI.mdfile holds project instructions, and MCP adds tools. - Since June 2026, individual users are pointed to Antigravity CLI instead.
- Organizations with Gemini Code Assist licenses and paid API keys can still use it.
Example
npx @google/gemini-cli # try it without installing
# A single task, with JSON output a script can read
gemini -p "list the TODO comments in src/" --output-format jsonReaders ask
Is Gemini CLI still free?
Not for individuals. Since June 18, 2026, Google points free users and Google AI Pro and Ultra subscribers to Antigravity CLI; Gemini CLI keeps working with paid Gemini API keys and Gemini Code Assist Standard or Enterprise licenses.
What is Antigravity CLI?
Google's newer terminal agent, part of its Antigravity development platform. It shares its agent with the Antigravity desktop app and took over from Gemini CLI for most individual users in June 2026.
Is Gemini CLI open source?
Yes. Its code is published on GitHub under the Apache 2.0 license.
See also
- AI Coding AgentAI & Machine Learning, p. 5An AI coding agent is an AI system that takes a programming task, explores the code, edits files and runs commands in a loop until the task is done.
- Claude CodeAI & Machine Learning, p. 15Claude Code is Anthropic's AI coding agent: it reads your codebase, edits files, runs commands and works with git in a terminal, IDE, desktop app or browser.
- OpenAI CodexAI & Machine Learning, p. 45OpenAI Codex is OpenAI's AI coding agent: it writes, edits and reviews code from a command line, an IDE extension or ChatGPT, on your computer or in the cloud.
- GitHub CopilotAI & Machine Learning, p. 29GitHub Copilot is GitHub's AI coding assistant: it suggests code as you type, answers questions in chat and, as an agent, turns issues into pull requests.
- Model Context ProtocolAI & Machine Learning, p. 40The Model Context Protocol is an open standard that defines how AI applications connect to external tools, data sources, and prompts through a shared interface.
- LLMAI & Machine Learning, p. 35An LLM is a machine learning model trained on huge amounts of text that generates language by repeatedly predicting the next most likely piece of text.
Free · once a week
Software and AI, explained once a week
The week's software and AI news with every term explained, plus a term to learn and a quick quiz. A two-minute read.
See this week's issueAbout this page
Spotted a mistake or something missing on this page?Suggest an edit
How pages are made