Skip to content
RepoQuarry

Gemini CLI

Compare

Google's open-source terminal coding agent for Gemini models; since June 2026 it needs a paid Gemini API key or a Code Assist licence.

Open-source alternative toClaude CodeCursor

Gemini CLI at a glance

Checked 21 Oct 2026

Gemini CLI is an Apache-2.0 command-line agent from Google that brings Gemini models into your terminal. It can query and edit large codebases, run shell commands, connect tools through MCP servers, run non-interactively in scripts (with JSON output), and pair with a VS Code companion. Install with npx, npm, Homebrew or MacPorts. On June 18, 2026 Google moved unpaid-tier and Google One users to Antigravity CLI; Gemini CLI now works with paid Gemini API keys, Vertex AI or a Gemini Code Assist Standard/Enterprise licence. Gemini models only; no local model support.

Cite this pageRepoQuarry. “Gemini CLI.” Checked 21 Oct 2026. https://repoquarry.dev/projects/gemini-cli

How much of Claude Code does it replace?

Use it instead of paying for Claude Code?
Personal use
Partial: Partly Needs something paid: Paid Gemini API key, Vertex AI, or a Gemini Code Assist Standard/Enterprise licence
For a business
Partial: Partly

5 of 6 jobs. Close match for terminal editing, MCP and scripting, but Gemini models only, the free tier has ended, and Google steers new users to Antigravity CLI.

Partial: Edit code across a repo from the terminal with an AI agent Partial replacement
Partial: Run commands and tests Partial replacement
Partial: Use the agent inside VS Code or JetBrains Partial replacement
Partial: Connect tools and data through MCP Partial replacement
No: Write commits and pull requests Not covered
Partial: Run the agent headless in scripts or CI (GitHub Actions) Partial replacement

For write commits and pull requests, see other Claude Code alternatives. You may also need to build an interface, an API server and hosting yourself.

How much of Cursor does it replace?

Use it instead of paying for Cursor?
Personal use
Partial: Partly Needs something paid: Paid Gemini API key, Vertex AI, or a Gemini Code Assist Standard/Enterprise licence
For a business
Partial: Partly

4 of 7 jobs. Edits and answers questions about large codebases from the terminal; not an editor, so no tab completion and no cloud agents.

No: Code in an AI-first editor Not covered
No: Multi-line tab completion and next-edit prediction Not covered
Partial: Let an agent plan and edit across many files Partial replacement
Partial: Run terminal commands and tests from the agent Partial replacement
Partial: Ask questions about your whole codebase Partial replacement
Partial: Connect tools and data through MCP Partial replacement
No: Run agents in the cloud in the background Not covered

For code in an AI-first editor, multi-line tab completion and next-edit prediction, run agents in the cloud in the background, see other Cursor alternatives. You may also need to build an interface, an API server and hosting yourself.

Facts, with sources

Every answer links to where we found it. We read the documentation; we did not install it.

Report a correction
QuestionAnswerSourceChecked
Runs on my machine? Confirmed: Yes, the CLI runs in your terminal; the Gemini models themselves run on Google's servers Gemini CLI is an open-source AI agent that brings the power of Gemini directly into your terminal. github.com · gemini-cli#readme ↗ today
Code licence Confirmed: Apache-2.0 Apache License Version 2.0, January 2004 github.com · LICENSE ↗ today
Model weights licence Confirmed: No separate model weights github.com · gemini-cli#readme ↗ today
Commercial use Confirmed: Allowed under Apache-2.0 each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license github.com · LICENSE ↗ today
Paid services needed? No: A paid service is required since June 18, 2026; the free Google-account tier moved to Antigravity CLI. No local model support Gemini CLI will remain accessible via paid Gemini and Gemini Enterprise Agent Platform API keys. developers.googleblog.com · an-important-update-transitioning-gemini-cli-to-antigravity-cli ↗ today
Hardware Confirmed: 4GB+ RAM for short sessions, 16GB+ for large codebases; needs Node.js 20+ and an internet connection “Casual” usage: 4GB+ RAM (short sessions, common tasks and edits) geminicli.com · installation ↗ today
Operating systems Confirmed: Windows 11 24H2+, macOS 15+ and Ubuntu 20.04+ Windows 11 24H2+ geminicli.com · installation ↗ today
Setup effort Confirmed: Easy; run with npx or install with npm, Homebrew or MacPorts, then sign in or set an API key Using npx (no installation required) github.com · gemini-cli#readme ↗ today

No licence changes since we started watching. Licence watch: follow Gemini CLI and we email you if its licence terms change.

Growth and activity in detail

Is it popular, and is anyone still working on it? From GitHub.

Numbers appear after the first nightly fetch from GitHub.

Cookie preferences

Choose what we may store in your browser. You can change this any time from Cookie settings in the footer.

Essential

Security, and remembering this choice. rq-consent · 12 months

Always on