Gemini CLI
Gemini CLI is Google's open-source AI agent that works in your computer's command line: it reads files, writes code, and executes commands on your request.
In plain terms
Most people chat with artificial intelligence in a browser window: you type the question, get the answer, and you have to do the rest. The Gemini CLI instead runs in the command line (terminal), in that text window where you give commands to your machine by typing. Here, the Google Gemini model not only answers but also works on your machine.
It is like the difference between a phone advisor and a repairman who comes to your home. The advisor tells you what to do. The repairman enters the apartment, checks the pipes, and fixes them, but first asks if they can break through the wall.
It is used mainly by programmers: they use it to find bugs, have new features written, or have it explain how an unfamiliar program works. It is also suited to more everyday tasks, such as organizing files, summarizing texts or searching the web.
Two things made it famous. Its source code is open, so anyone can view and modify it. This is not unique: OpenAI's Codex CLI is also open, while Anthropic's Claude Code is not. Additionally, at launch, Google provided a generous free quota, requiring only a personal Google account.
How it works
- You install the program on your machine and log in with your Google account or an API key (an identifier for the Gemini API or Google cloud services).
- In the terminal, describe what you want in everyday language, for example: "Review this folder and tell me what this program does."
- The agent sends your request and the necessary file excerpts to the Gemini model running on Google's servers, which plans the steps.
- The model uses tools: it reads and writes files, runs commands, searches the web. It examines the result of every step and decides the next one based on that.
- Before modifying a file or running a command, it asks for your permission by default. You approve, reject, or instruct it to do something differently.
An everyday example
You inherited a program written by a colleague, consisting of hundreds of files, and do not know where to start. You open the folder in the terminal, launch the Gemini CLI, and ask it to summarize the program's structure, then fix the login error. The agent reads through the files, shows the proposed modification, and rewrites the code only after your approval.
Who is affected
A common misconception
Limits and risks
- The agent runs real commands on your machine, so a carelessly approved step could delete or overwrite files. Enable automatic approval only if you know what you are doing.
- Your request and file details are sent to Google servers. For free, personal account use, Google may use them to develop its products according to its terms. Therefore, for confidential corporate or personal data, check the data processing terms first.
- The generated code may be faulty or insecure, even if presented confidently. Always verify and test the result.
- The free tier is limited, and its terms may change. With intensive use, you will hit a limit or have to pay.
Similar, but not the same
- Gemini (chat application) – The Gemini app chats with you in a browser or on a phone, while the Gemini CLI runs in the terminal and actually performs operations on your machine.
- Claude Code – Anthropic's terminal-based coding agent that works on a similar principle; it is built on Claude models, not on Google Gemini.
- Gemini API – An API is a programmer's connector through which you can embed the model into your own application, while the Gemini CLI is a ready-to-use program.
Related concepts
AI-agent, coding agent, command-line interface
GEMINI.md context file, Gemini CLI extension
Claude Code, Codex CLI, Model Context Protocol, Gemini, vibe coding
A brief history
Google introduced the Gemini CLI as an open-source project on June 25, 2025, under the Apache 2.0 license, at a time when terminal-based coding agents were spreading rapidly.
Where things stand
As of late 2026, it is one of the best-known terminal-based coding agents among developers, continuously developed by Google and the open-source community. Outside the programming community, few people still use it.
In the news
- Critical flaw hits Claude Code, OpenAI Codex, GitHub Copilot and Gemini CLISep 21, 2026 · Code
- Spotify launches Xirp, a single interface for Claude Code, Codex and Gemini CLIAug 10, 2026 · Code
- Claude Opus 5 deletes developer's entire profile directory; nine more agent incidentsAug 4, 2026 · Code
Also known as
Gemini CLI · Google Gemini CLI · gemini-cli · Gemini Command Line Interface · Gemini command-line tool · Gemini parancssoros agent · Gemini terminal agent · Gemini command-line agent
Sources
- Gemini CLI – official GitHub repository (google-gemini/gemini-cli)
- Google Blog: Gemini CLI: your open-source AI agent
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.