Gemini CLI is an open source terminal agent (Apache 2.0 licence) that brings Google's Gemini models into the command line: it reads the repository, proposes changes and runs commands. Before adopting it in a team, four things need checking. First, how access works and on which plan, because the terms change. Second, which folders and commands it can touch, meaning permissions. Third, where the client's code goes when it is sent to the model. Fourth, what remains as proof after the session: a terminal conversation is not a delivery record. The tool helps write code, but it does not decide what can ship or answer to the customer. That is why, next to the agent, a team needs a written request, checks run by the system and the name of whoever approves. The features described here are those declared in the official documentation on 27 November 2026 and should be rechecked before deciding.
What is Gemini CLI, and where does it sit among terminal agents?
According to the official repository, Gemini CLI is maintained for enterprise Gemini Code Assist workflows on Google Cloud. The same README states that free individual access moved to another Google tool on 18 June 2026, so anyone who set up the old free access must recheck how they authenticate. Three options are listed: signing in with a Google account, a Gemini API key, and Vertex AI.
It belongs to the same family as Claude Code and Codex: an agent that works in the terminal, with a context file (GEMINI.md), configurable MCP servers and a checkpoint mechanism to save and resume conversations. For anyone starting with a different tool, the guide is installing Claude Code.
What does it do, and what leaves no trace?
A terminal agent works inside a session. What outlives the session depends on what you decide to save, not on the tool.
| What the agent does | What remains, if you do not prepare it | | --- | --- | | Reads files and proposes changes | The original request, written in a chat | | Runs commands in the terminal | The outcome of checks, narrated in words | | Uses external tools through MCP | Which tools it called and with what permissions | | Saves conversation checkpoints | No approval from a person |
A checkpoint helps resume work, not prove it to a client. The general theme is in software audit trail when an agent made the change.
Which permissions does a client's repository need?
Before the first use on a repository that is not yours, decide in writing:
- Which folders the agent may work in. The README mentions Trusted Folders, which control execution policies by folder: read the documentation and test them rather than assuming.
- Which commands may run without a person's confirmation, and which may not.
- Which MCP servers are allowed, since each one adds tools that reach outside the terminal.
- Which files must never be read: keys,
.envfiles, end-customer data. - Whether execution happens in an isolated environment, following the sandboxing and security guide the README links to.
Where does the client's code go?
The code the agent reads is sent to the model for processing. Under what terms Google handles it depends on the type of access: an enterprise Code Assist licence, an API key, Vertex AI. It cannot be inferred from the tool's name. Before using it on someone else's code, read the supply contract with the client and the terms of the chosen plan, and check that neither forbids sending code to an external provider. If the answer is unclear, ask, and write the answer down.
How does it compare with Claude Code and Codex?
The useful comparison is not which one writes better code, because that changes with every release. It is how much of each piece of work stays verifiable.
| Question | To ask of every tool | | --- | --- | | How do you sign in, and on which plan? | It changes over time: check the documentation of the day | | What can it run without confirmation? | Permission policy, by folder and by command | | Where does the code go? | Plan terms and the client contract | | What remains after the session? | Rarely a proof: it has to be built outside the tool |
For the comparison between the other two, see Codex vs Claude Code.
What proof should you ask for before adopting it?
Three elements, the same for any agent: the original request in a place that does not depend on the session, checks run by the system with a recorded outcome, and the approver's name in a form that cannot be rewritten afterwards. The METR study of 10 July 2025 measured experienced developers using AI tools taking 19% longer while believing they were faster: the feeling of speed is not proof.
Detent, the end-to-end delivery system (detent-ai.com), covers this part: the system runs the checks, a person signs, everything stays in versioned files. It does not replace Gemini CLI, it sits downstream, as a station on the line that runs from the request to production. The wider picture is in AI software development. For a comparison across tools, see the comparison table and the benchmark page.
