TOKREPO · TOOL
Gemini CLI logo
CLI · Google

Gemini CLI

ai.google.dev

What it is

Gemini CLI is Google's official command-line agent for the Gemini model family. Released open source under Apache-2.0 in 2025, it gives you a terminal-resident agent that can read files, run shell commands, browse the web through Google Search, and ship Google's own first-party extensions on top — Stitch, Google Workspace, Code Review, Postgres, Vertex AI and more.

It's the tool to reach for when:

  • You want a generous free tier — Gemini CLI ships with a free Gemini API quota that comfortably covers daily coding loops.
  • You already live in Google Cloud / Workspace and want first-party MCP into Vertex, BigQuery, Drive, Calendar.
  • You want a terminal agent that's also good at multimodal — Gemini 2.5 / 3 handles images and video natively, and the CLI exposes that.

Why it stands out

Feature What it gives you
Free tier Real free Gemini API quota — not a 14-day trial
10 official extensions Stitch, Workspace, Code Review, Postgres, Vertex AI, Cloud Run, Firebase, BigQuery, Maps, Calendar
Native multimodal Drop screenshots, PDFs, video clips into the prompt — Gemini 3 reads them
MCP client Connects to any MCP server, same as Claude Code
Long context Gemini 2.5 / 3 with 1M-2M token windows for huge codebases
Search grounding Google Search built in — agent can fetch live docs and citations
Apache-2.0 Fully open source, vendor-pinning is your choice

How to install

# macOS / Linux / WSL
npm install -g @google/gemini-cli

# Or via Homebrew
brew install gemini-cli

After install, run gemini in any project. The first run prompts for a Google account login or a GEMINI_API_KEY env var. Free tier kicks in immediately; switch to Vertex for SSO and audit logs in enterprise contexts.

What to install in Gemini CLI

Gemini CLI has its own extension manifest (~/.gemini/extensions.json) plus generic MCP support. Three TokRepo packs to start:

  • MCP Server Stack — Postgres / GitHub / Filesystem servers that work cross-tool
  • Google Cloud MCP Toolkit — Vertex AI, BigQuery, Cloud Run wired into Gemini CLI
  • Multimodal Workflow Pack — image-to-Stitch, video transcript pipelines optimized for Gemini 3

Install with tokrepo install and you have parity with what Google's own internal teams have been demoing.

Common pitfalls

  • Forgetting to pin the model — Gemini CLI defaults to "latest" which can move without warning. Set GEMINI_MODEL=gemini-2.5-pro or similar in .env for reproducible runs.
  • Free tier rate limits during long agent loops — burst-throttle hits at ~60 req/min. Add backoff or switch to a paid Vertex project.
  • Mixing OAuth login with CI — interactive login won't work in headless. Use a service-account key and GEMINI_API_KEY.
  • Extension permission scope — Workspace and Calendar extensions read your full inbox / calendar. Audit ~/.gemini/extensions.json before sharing the directory.
  • Search grounding cost — every grounded response counts against the Search API quota separately from Gemini tokens.
  • Vertex region defaults — Vertex projects default to us-central1. If your data residency requires EU or APAC, set GOOGLE_CLOUD_LOCATION before any agent run.

Relationship to other tools

Gemini CLI is Google's answer to Claude Code and Codex CLI. The three-way differentiator: Claude Code wins on pure agent quality (Opus 4.7 with the most mature subagent ecosystem and hooks system); Codex CLI wins on AGENTS.md convention adoption and tight ChatGPT integration; Gemini CLI wins on free tier, native multimodal, and Google Cloud integration. Most senior devs in 2026 keep all three installed and pick by task — Gemini for spec-from-screenshot or video transcript work, Claude for long refactors that need depth, Codex when paired with a ChatGPT Pro subscription. Because all three speak MCP, the same TokRepo packs configure all three with one command.

10assets·10skills
All assets

10 assets that work with Gemini CLI

Skill#01
Google Gemini CLI — All Official Extensions Collection

40+ official Gemini CLI extensions by Google: coding, security, Google Cloud, databases, and partner integrations.

by Google · Gemini Team·259 views
$ tokrepo install google-gemini-cli-all-official-extensions-collection-b9520bd2
Skill#02
Gemini CLI Extension: Stitch — AI Design Tool

Gemini CLI extension for Google Stitch. AI-driven UI design, component generation, and design system management.

by Google · Gemini Team·167 views
$ tokrepo install gemini-cli-extension-stitch-ai-design-tool-c4b18aeb
Skill#03
Gemini CLI Extension: Workspace — Google Docs & Sheets

Gemini CLI extension for Google Workspace. Read, create, and edit Google Docs, Sheets, and Slides from your terminal.

by Google · Gemini Team·118 views
$ tokrepo install gemini-cli-extension-workspace-google-docs-sheets-f0db235b
Skill#04
Gemini CLI Extension: Code Review — Quality Checks

Gemini CLI extension for automated code review. Analyzes code quality, suggests improvements, and checks coding standards.

by Google · Gemini Team·111 views
$ tokrepo install gemini-cli-extension-code-review-quality-checks-711c04fe
Skill#05
Gemini CLI Extension: Observability — Monitoring & Logs

Gemini CLI extension for Google Cloud observability. Set up monitoring, analyze logs, create dashboards, and configure alerts.

by Google · Gemini Team·102 views
$ tokrepo install gemini-cli-extension-observability-monitoring-logs-aa41279c
Skill#06
Gemini CLI Extension: Angular — Web App Development

Gemini CLI extension for Angular. Component generation, routing, services, reactive forms, and testing patterns.

by Google · Gemini Team·97 views
$ tokrepo install gemini-cli-extension-angular-web-app-development-0782cb9b
Skill#07
Gemini CLI Extension: Security — Vulnerability Scanner

Gemini CLI extension for security analysis. Scans code for vulnerabilities, checks dependencies, and provides remediation guidance.

by Google · Gemini Team·91 views
$ tokrepo install gemini-cli-extension-security-vulnerability-scanner-73bb8c69
Skill#08
Gemini CLI Extension: Postgres — Database Management

Gemini CLI extension for PostgreSQL. Query optimization, schema design, migration scripts, and database administration.

by Google · Gemini Team·89 views
$ tokrepo install gemini-cli-extension-postgres-database-management-2f7cb6ed
Skill#09
Gemini CLI Extension: Jules — Async Coding Agent

Gemini CLI extension by Google. Asynchronous coding agent for autonomous bug fixes, refactoring, and feature implementation.

by Google · Gemini Team·81 views
$ tokrepo install gemini-cli-extension-jules-async-coding-agent-e39bb022
Skill#10
Gemini CLI Extension: Vertex AI — Model Management

Gemini CLI extension for Vertex AI. Deploy models, manage endpoints, run predictions, and monitor ML pipelines.

by Google · Gemini Team·78 views
$ tokrepo install gemini-cli-extension-vertex-ai-model-management-0d5e4914
FAQ

Frequently asked questions

Is Gemini CLI free?

Yes. Gemini CLI itself is Apache-2.0 open source and the default Gemini API tier includes a free quota that covers most individual developer usage. You only pay if you exceed the free quota or move to Vertex AI for enterprise features (SSO, audit, regional residency).

What does Gemini CLI cost at scale?

Beyond the free tier, Gemini 2.5 Pro is roughly $1.25 per 1M input tokens and $5 per 1M output (subject to change — check ai.google.dev/pricing). Gemini 3 is priced higher. Vertex pricing matches the API but adds enterprise features.

Does Gemini CLI work with MCP servers?

Yes. As of late 2025 Gemini CLI is a full MCP client — any MCP server that works with Claude Code or Codex CLI also works here. You configure them in the same mcpServers block format. This is what unlocks portability of TokRepo packs across the three CLIs.

Gemini CLI vs Claude Code — which should I pick?

If you're price-sensitive or already on Google Cloud, start with Gemini CLI. If you need the most mature agent harness with the deepest subagent / hooks ecosystem and 1M-context Opus, pick Claude Code. They're not mutually exclusive — both speak MCP, so configs port over.

Can Gemini CLI run headless in CI?

Yes. Use gemini --print with a service-account key (GEMINI_API_KEY env var) and the CLI runs non-interactively. Common pattern: GitHub Actions job that runs Gemini CLI to do PR review using the Code Review extension.

MORE TOOLS

Browse every tool on the home page

8 tools curated · favicon-fetched logos · type-aware bundles

Back to all tools