Gemini CLI

Use Gemini from the terminal to understand code, edit files, and automate development work.

Stars
★ 109k
Last updated
today
License
Apache-2.0
Primary language
TypeScript

At a glance

How it runs
CLI
Works with
Platform-specific
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Node.jsShell / CLINetwork accessLocal filesystemMCP Server
Typical use
A developer joining an unfamiliar large repository can ask for an architectural explanation, summaries of recent changes, and help locating relevant code.
Not a fit if
  • Teams standardized on OpenAI or Anthropic models and unwilling to adopt Google auth and quotas
  • Critical automation that cannot tolerate weekly preview or daily nightly regression risk

What does this agent do, and when should you use it?

Gemini CLI is an open-source, terminal-first AI agent whose model service is provided by Gemini. It accepts natural-language tasks in an interactive CLI and can work with local files, execute shell commands, fetch web pages, and ground responses with Google Search. It can inspect and edit large codebases, use PDFs, images, or sketches as multimodal inputs, and load persistent project context from GEMINI.md. For automation, its headless mode emits plain text, JSON, or newline-delimited stream-json events; a separate Gemini CLI GitHub Action brings related tasks into GitHub workflows. Its primary deployment boundary is the machine or script environment running the CLI, and model access requires Google sign-in, a Gemini API key, or Vertex AI credentials.

After the user starts gemini, the CLI operates on the current directory or additional paths supplied with --include-directories. It combines repository files and GEMINI.md context with Gemini, then can invoke its File System Operations, Shell Commands, Web Fetch, and Google Search capabilities; MCP servers configured in ~/.gemini/settings.json can add external tools. Documented operations include querying and editing codebases, generating code, debugging problems, handling complex rebases, and building applications from PDFs, images, or sketches. Interactive sessions return results in the terminal, while headless execution accepts prompts through -p and produces text, --output-format json, or --output-format stream-json output. Checkpointing can preserve and resume sessions, while the Gemini CLI GitHub Action supports pull-request reviews, issue triage, and assistance triggered by @gemini-cli mentions.

  1. A developer joining an unfamiliar large repository can ask for an architectural explanation, summaries of recent changes, and help locating relevant code.
  2. An engineer fixing a defect from the terminal can have the agent edit files, run shell commands, and continue troubleshooting from command results.
  3. A prototype builder with a PDF, interface image, or sketch can use the documented multimodal path to generate an initial application.
  4. A team maintaining automation scripts can use gemini -p with JSON or stream-json output to integrate code analysis and operational tasks into existing workflows.
  5. A GitHub-based project can adopt the separate Gemini CLI GitHub Action for pull-request reviews, issue labeling and prioritization, or mention-triggered assistance.
  6. A team with internal systems can configure MCP servers to expose specialized capabilities such as databases, collaboration services, or media-generation systems.

How do you install or deploy this agent?

Use an environment capable of running Node.js/npm and connecting to Gemini services. To run without a permanent installation, execute npx @google/gemini-cli. For a global installation, execute npm install -g @google/gemini-cli; macOS and Linux users can also run brew install gemini-cli, and macOS supports sudo port install gemini-cli. In a restricted environment, run conda create -y -n gemini_env -c conda-forge nodejs, conda activate gemini_env, and npm install -g @google/gemini-cli. After installation, authenticate by starting gemini and selecting Google sign-in, or set GEMINI_API_KEY="YOUR_API_KEY". For Vertex AI, set GOOGLE_API_KEY="YOUR_API_KEY" and GOOGLE_GENAI_USE_VERTEXAI=true; users of an organizational Code Assist license should also set GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID".

How do you use this agent?

Open the target project directory, run gemini, complete browser authentication or use credentials already present in the environment, and enter a task. To expose more directories, run gemini --include-directories ../lib,../docs; to select a documented model explicitly, run gemini -m gemini-2.5-flash. For scripts, run gemini -p "Explain the architecture of this codebase". Add --output-format json for structured output or --output-format stream-json for newline-delimited events from a long-running operation. Configure external MCP servers in ~/.gemini/settings.json, place persistent project context in GEMINI.md, and use checkpointing when a complex conversation must be saved and resumed.

What are this agent's strengths and limitations?

Pros
  • File operations, shell execution, web fetching, and Google Search grounding are available in the terminal, allowing a task to progress from analysis to concrete code operations.
  • Interactive use, plain-text headless output, structured JSON, and streaming NDJSON events cover both human-driven sessions and script automation.
  • MCP support, Custom Extensions, and Custom Commands provide documented ways to connect specialized capabilities and package reusable workflows.
  • Multimodal inputs include PDFs, images, and sketches, while the CLI is explicitly designed to query and edit large codebases.
  • Checkpointing, GEMINI.md context, documented sandboxing and trusted-folder controls, and a separate GitHub Action address several parts of the development lifecycle.
Limitations
  • Core operation is tied to Gemini models and Google's authentication paths; no native OpenAI or Anthropic model-provider adapter is documented.
  • File editing and shell execution expose the local development environment, so adopters need to establish appropriate sandboxing, trusted-folder, and execution policies.
  • Google sign-in, Gemini API keys, and Vertex AI have different quotas, billing models, and project settings, creating an authentication-governance decision for teams.
  • Preview releases may contain regressions, and nightly releases are described as having pending validation, making unreviewed upgrades risky for critical automation.
  • MCP and GitHub integration require separate configuration: MCP servers must be added to ~/.gemini/settings.json, and GitHub workflows use a distinct Gemini CLI GitHub Action.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Gemini CLI This agent 54 · Major gaps CLIFree + model costs ★ 109k today TypeScript —
Google Antigravity SDK 52 · Major gaps Library / SDKFree + model costs ★ 3.9k 9d ago Python —
Chisle 66 · Some gaps CLIFree + model costs ★ 740 13d ago JavaScript Codex · Claude Code
DeepCode Open Agentic Coding 60 · Some gaps CLIFree + model costs ★ 17k 4d ago Python OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
54/ 100 5-point scale 2.7 / 5
This review covers the source as of Aug 09, 2026. The project has shipped 3 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 10/29
Reliability 8/14
Adaptability 12/18
Convention 12/18
Effectiveness 9/13
Verifiability 3/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

Evidence shows: README mentions sandbox, trusted folders, approval modes, but lacks implementation details; security policy (SECURITY.md) and dependency overrides exist, but no vulnerability scanning evidence; external effects (shell commands, file operations) are documented, but user confirmation mechanism not detailed; rollback not mentioned. Deductions: security features are mostly documented claims without code-level evidence; least privilege and user confirmation implementations not shown in provided files.

Reliability8 / 14 · 2.9/5

Evidence shows: CI workflows (agent-session-drift-check.yml) and test files (autogen.test.ts, eval-analysis.test.ts, eval-coverage.test.ts) indicate testing and consistency checks; dependency versions are pinned (exact versions in package.json), but no dependency availability proof; failure messages not evident in provided files. Deductions: limited test coverage, no specific failure message examples.

Adaptability12 / 18 · 3.3/5

Evidence shows: README describes multiple use cases (code understanding, automation, GitHub integration) and multiple installation methods (npx, npm, Homebrew, MacPorts, Anaconda); capability boundaries documented (sandbox, trusted folders) but no configuration details; trigger precision (commands, MCP) documented but no implementation details; environment fit (Node.js version, OS) specified. Deductions: insufficient details on capability boundaries and trigger precision.

Convention12 / 18 · 3.3/5

Evidence shows: README is well-structured with installation, usage, documentation links; installation notes detailed; naming stable (gemini command); examples and FAQ links provided; known limitations not explicitly listed; license Apache-2.0; versioning with changelog link; maintenance responsibility clear (Google and community). Deductions: known limitations section missing, not explicitly listed in README.

Effectiveness9 / 13 · 3.5/5

Evidence shows: Output usability supported via multiple output formats (json, stream-json); marginal value via free tier, model capabilities, tool integrations; cost-benefit via free tier and open-source license. Deductions: no actual performance or user feedback evidence.

Verifiability3 / 8 · 1.9/5

Evidence shows: Claims in README (e.g., free tier, model capabilities) lack specific sources; cross-source verification limited, relying on README and some tests; facts and inferences not clearly separated. Deductions: lack of independent verification and source citations.

Risks and how to mitigate them
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • Security features (sandbox, trusted folders, approval modes) are mentioned in README but lack implementation details; further code review needed.
  • Dependency security is only evidenced by overrides; no vulnerability scanning or audit evidence provided.
  • Rollback mechanism not mentioned; users should be aware of irreversible operations.
  • Known limitations not explicitly listed in README; users may encounter unexpected issues.
Evidence confidence: Low Reviewed Aug 09, 2026 Reviewed revision cf22ac7e86f3 New commits since this review; the score may not cover them
See the full review method →

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.67.0 Release v0.67.0
    Release notes excerpt
    What's Changed * Changelog for v0.65.0 by @gemini-cli-robot in https://github.com/google-gemini/gemini-cli/pull/29853 * chore(release): bump version to 0.67.0-nightly.20261020.gb041de017 by @gemini-cli-robot in https://github.com/google-gemini/gemini-cli/pull/29854 * Changelog for v0.66.0-preview.0 by @gemini-cli-robot in https://github.com/google-gemini/gemini-cli/pull/29852 * feat(cli): bridge the IDE companion into container sandboxes over exec stdio by @elberthc-byte in https://github.com/google-gemini/gemini-cli/pull/29858 …
    View on GitHub ↗
  2. v0.66.0 Release v0.66.0
  3. v0.65.0 Release v0.65.0

FAQ

Is payment required?
Not necessarily. The documented personal Google account tier provides 60 requests per minute and 1,000 requests per day, while the Gemini API key option lists 1,000 Gemini 3 requests per day on its free tier. Higher usage, particular model access, or Vertex AI workloads may require billing.
What local resources can it access?
It can read and edit the current directory and paths supplied through --include-directories, and it can execute shell commands. Teams should evaluate the documented sandboxing and trusted-folder controls before granting it access to sensitive repositories or environments.
Can it run in CI or another non-interactive environment?
Yes. Headless mode uses gemini -p and supports text, JSON, and stream-json output. GitHub workflows can use the separate Gemini CLI GitHub Action, but the environment still needs a configured authentication method.
Can it connect to internal tools?
Yes. MCP servers can be configured in ~/.gemini/settings.json, and the project also documents Custom Extensions and Custom Commands. Actual permissions and operations depend on the connected servers and their configuration.
Which release channel is appropriate for production work?
The latest stable channel is the safer documented choice for critical workflows. Weekly preview builds may contain regressions, while daily nightly builds should be assumed to include changes with pending validation.
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Gemini CLI ecosystem and extensions

Plugins, config packs, switchers and orchestration layers in the directory built for Gemini CLI, by stars; each has its own FARS review.

Dev & Engineering ★ 118k

Caveman Token-Saving Toolkit

Reduce coding-agent token use by compressing what agents read and shortening what they say.

Dev & Engineering ★ 42k

Agentic Plugin Marketplace

Composable developer-workflow plugins for multiple coding-agent harnesses.

Productivity & Collaboration ★ 32k

gws for Google Workspace

A dynamic CLI for calling Google Workspace APIs with structured JSON output for scripts, operators, and AI-assisted workflows.

Dev & Engineering ★ 29k

Claude Code Skills & Plugins

A library of 362 production-ready skills, plugins, and agent skills for 13 AI coding tools, covering engineering, marketing, product, compliance, C-level advisory, and more.

Dev & Engineering ★ 9.9k

Plannotator

Visually annotate your coding agent's plans and diffs in the browser and send feedback back with one click.

Dev & Engineering ★ 9.4k

Munder Difflin – Multi-Agent Office Floor

An open-source desktop harness that turns the terminal coding CLIs you already use — Claude Code, Codex, Gemini CLI, etc. — into a self-coordinating team managed by your own clone.

Dev & Engineering ★ 7k

Coucou Agent Companion

Keep coding-agent sessions and approval requests in view on your Mac, then follow them from your iPhone.

Dev & Engineering ★ 5.5k

Obsidian Mind

Persistent, searchable memory for AI coding agents across sessions and repositories.

Dev & Engineering ★ 4.8k

Council of High Intelligence

Put consequential decisions through independent analysis, direct challenge, and a verdict that preserves dissent.

Dev & Engineering ★ 3.8k

cc-skills-golang: Agent Skills for Production-Ready Go

A curated, human-reviewed collection of Golang agentic skills covering code style, testing, security, performance, and more, ready for any compatible AI coding assistant.

Dev & Engineering ★ 3.6k

CCB Multi-Agent Terminal Workspace

Coordinate multiple AI coding CLIs in visible terminal panes you can directly take over.

Design & Frontend ★ 3.3k

Designer Skills Pack

Agentic skills, commands, and plugins for design — from research to systems, UI, interaction, and delivery.

Browse Gemini CLI skills on FollowSkills → Switching Gemini CLI between model providers? Read the CC Switch guide →

Related agents