Gemini CLI
Tool · Free + paid
Gemini CLI is Google's open-source terminal coding agent with file reading, shell commands, and web search. Supports extensions and MCP for additional tools.

What you can use for free
For an eligible personal Google account through OAuth: 60 model requests per minute and 1000 per day, according to the source documentation.
Paid features and costs
Other authentication methods, models, enterprise plans, and APIs have separate limits and costs.
Access and limitations
For an eligible personal Google account through OAuth, 60 requests per minute and 1000 per day are stated. Other authentication methods, models, enterprise plans, and APIs have separate limits/costs; one user request may trigger several model requests.
Use cases
- Check code with a second agent
- Automate a terminal task with Gemini
Example workflow
A possible workflow; this is not a report of hands-on testing.
Example workflow with Gemini CLI: Check code with a second agent.
Before you start
- A repository, a description of one change, and a reproducible example of the expected behavior.
- Project context: affected files, constraints, and the established validation method.
Steps
- For the task “Check code with a second agent”: open the relevant project and let the agent inspect the affected implementation before making changes.
- Set a bounded task with completion criteria; review the proposed changes and how they address the requirement.
- Run the appropriate project checks and compare behavior before and after the change.
Check your result
- The change solves the stated task and does not touch unrelated files unnecessarily.
- Investigate check failures; review generated code, configuration, and data access permissions.
Choosing Gemini CLI
Check code with a second agent
Choose this when
- Check code with a second agent
- Automate a terminal task with Gemini
Consider alternatives when
- When choosing for this topic, compare Gemini CLI with OpenAI Codex CLI. A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare Gemini CLI with OpenCode. A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Things to consider
- Costs and limits of free use: Other authentication methods, models, enterprise plans, and APIs have separate limits and costs.
- Terms of use: Apache-2.0 for the CLI; the cloud service is governed by Google Terms.
- Works as a separate agent and does not automatically connect Gemini to Codex.
- A free quota must not be promised for every region and account.
- A personal OAuth quota does not automatically transfer to any API key, Vertex AI, or enterprise account.
Frequently asked questions
What can you use for free in Gemini CLI?
For an eligible personal Google account through OAuth: 60 model requests per minute and 1000 per day, according to the source documentation.
What additional costs might arise with Gemini CLI?
Other authentication methods, models, enterprise plans, and APIs have separate limits and costs.
What terms of use matter for Gemini CLI?
Apache-2.0 for the CLI; the cloud service is governed by Google Terms.
How do you get started with Gemini CLI?
For the task “Check code with a second agent”: open the relevant project and let the agent inspect the affected implementation before making changes. Set a bounded task with completion criteria; review the proposed changes and how they address the requirement. Run the appropriate project checks and compare behavior before and after the change.
Are Gemini CLI quotas the same for different sign-in methods?
No: the README distinguishes Google account OAuth, a Gemini API key, and Vertex AI. For an eligible personal Google account, it lists 60 requests per minute and 1000 per day; enterprise Code Assist and billing-account routes have different terms. The CLI also supports Google Search and MCP tools.
Related tasks and approaches
- OpenAI Codex CLI
A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- OpenCode
A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- aider
A candidate to compare under the topic: Terminal agents, Command line. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
Apache-2.0 for the CLI; the cloud service is governed by Google Terms.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsProprietary terms — the vendor determines your rights
Use of the software or service is governed by its Terms/EULA and the chosen plan. Free access does not automatically grant rights to modify and distribute source code, resell assets, or use outputs commercially. The specific product's terms define permitted use, export, and commercial rights.
Usage details
Works as a separate agent and does not automatically connect Gemini to Codex. A free quota must not be promised for every region and account.
Technologies and topics
- MCP
- CLI