Agents open-source 105,000 stars

Gemini CLI

Open-source AI agent from Google that brings Gemini models into the terminal with file operations, shell commands, and Google Search grounding.

Gemini CLI is an open-source terminal agent from Google that runs Gemini models locally with file editing, shell execution, and built-in Google Search grounding. It supports MCP servers, works with large codebases, and offers a generous free tier through Gemini API access.

terminal
$ npm install -g @anthropic-ai/gemini-cli
# Install globally via npm, then run 'gemini' in any project directory. You'll need a Google API key or can use the free tier.
Decision signals
Open sourceMCP
Tags
mcpworkflow orchestrationopen sourcemcp compatibledeveloper workflow

Quick answer

What is Gemini CLI?

Gemini CLI is Google's open-source entry into the terminal coding agent space. It brings Gemini models directly into the developer's terminal with file editing, shell commands, and a unique capability: Google Search grounding.

Gemini CLI is an Apache-2.0 licensed terminal agent that connects to Google's Gemini models. It can read and edit files, execute shell commands, search the web via Google Search, and connect to external tools through MCP servers. It runs entirely in the terminal with no GUI required.

Fit check

When to use it

Good fit if

  • Developers who want free or low-cost access to frontier models in a terminal agent
  • Teams building agentic workflows that benefit from Google Search grounding
  • Engineers who prefer open-source tools they can inspect, modify, and self-host

Not a fit if

  • Developers who need deep integration with non-Google model providers
  • Teams that require mature plugin ecosystems or extensive community tooling

First test

How to evaluate it before committing

Run one narrow workflow in a sandbox account, then inspect logs, permissions, and failure cases before expanding scope.

Keep the first test small enough that you can inspect the source, understand the permissions, and compare the result with nearby OpenAgent resources.

Workflows

Common ways to evaluate it

Code exploration and understanding

Use Gemini CLI to navigate unfamiliar codebases, ask questions about architecture, and get explanations grounded in actual source code.

Research-backed development

Leverage Google Search grounding to research APIs, compare libraries, and verify best practices before implementing features.

Rapid prototyping

Scaffold new projects, generate boilerplate, and iterate on implementations with an agent that can run commands and edit files.

Compare

How it compares

Choose Gemini CLI for search-grounded agentic coding vs Claude Code

Gemini CLI offers Google Search grounding and a generous free tier. Claude Code may have an edge on complex multi-file reasoning tasks but requires a paid API.

Resource Category License Stars
Aider Agents Apache-2.0 45,400
AutoGen Agents CC-BY-4.0 58,400
Claude Code Agents Proprietary 127,000

FAQ

Questions search visitors ask

Is Gemini CLI open source?

Yes. Gemini CLI is released under the Apache-2.0 license, making it fully open source for inspection, modification, and redistribution.

Who should use Gemini CLI?

Developers who want a free or low-cost terminal coding agent with access to Google's Gemini models and unique Google Search grounding capabilities.

How does Gemini CLI compare to other coding agents?

Gemini CLI's main differentiators are its open-source license, Google Search grounding, and free tier. It may not match Claude Code on complex multi-file reasoning but offers capabilities that other terminal agents lack.