Coding assistants · Google
Gemini CLI
In short
Open source Google terminal agent, now for paid API keys and Code Assist licences
Gemini CLI is an Apache 2.0 terminal agent for querying and editing codebases, with MCP support and scriptable output. Since 18 June 2026 free individual access and Google AI Pro and Ultra access moved to Antigravity CLI, so it now serves Code Assist Standard or Enterprise licences and paid API keys. It suits teams already on Google Cloud or paid Gemini API access.
Best for: Teams on Google Cloud or paid Gemini API keys who want an open source terminal agent.
Key facts
How it scores
Scores come from the sources below. How we rate tools
Good
- Apache 2.0 open source
- Works with Gemini API, Vertex AI and Code Assist licences
- MCP support and headless scripting
- Multiple install routes
Watch out for
- Free individual access ended 18 June 2026
- Google directs new work to the closed Antigravity CLI
- Not tuned for Gemini 4 and later models
What Gemini CLI does
- Query and edit codebases from the terminal
- Generate apps from PDFs, images or sketches
- MCP server integration
- Non-interactive scripting with text, JSON or streaming JSON output
- Sign in with Google account, Gemini API key or Vertex AI
- Install by npx, npm, Homebrew, MacPorts or Anaconda
Gemini CLI pricing
- Gemini CLI$0Open source tool; you pay through your API key or Code Assist licence
- Code Assist Standard or EnterprisePer licenceKeeps access after 18 June 2026
- Paid Gemini or Vertex AI API keyUsage-basedRemains supported
Checked 20 November 2026 on Gemini CLI's pricing page. Prices change; confirm before you buy.
Models it runs on
Pick a model with the -m flag, for example gemini-2.5-flash. The repository says it is not tuned for Gemini 4 or later models; Google points those users to Antigravity CLI.
Privacy
Terms depend on how you sign in: unpaid API keys, paid API keys and Cloud licences each fall under different Google terms; the page does not state training rules directly.
Alternatives to Gemini CLI
- Claude CodeAnthropic's coding agent for terminal, IDE, desktop and web4.4 / 5 · $17/month
- OpenAI CodexOpenAI's coding agent, included in ChatGPT plans or billed by API key4.5 / 5 · $8/month
- ClineOpen source coding agent for VS Code, JetBrains and the terminal3.8 / 5 · Free
- CursorAI code editor with agents, cloud agents and shared usage pools4.1 / 5 · $8/month