Gemini CLI
Open-source terminal agent from Google powered by Gemini.
Overview
Gemini CLI brings Gemini models into the terminal for coding, research and automation tasks with tools and MCP support. It can authenticate with a Google account or with your own Gemini API key or Vertex AI credentials.
- Large context window
- MCP support
- Built-in web search
- Shell and file tools
Our verdict
What we like
- Generous free usage
- Open source
Watch out for
- Gemini models only
Works with these providers
Keys from these providers work in this app. Usage is billed by the provider at its list price.
BYOK Key Safety Score
Key handling in Gemini CLI
Grade B
Your key is stored on your device and requests go directly to the provider.
- Key storage40/40
Key stays on your device; requests go direct to the provider.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting8/15
Runs as a local app, but not as a self-hosted service.
- Offline option0/10
Cloud providers only.
- Provider choice2/10
1 provider option, which lets you pick the provider whose data terms you trust.
Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.
Gemini CLI FAQ
- Does Gemini CLI support bring your own key?
- Yes. Gemini CLI accepts your own API key from Google Gemini. Usage is billed by the provider at its API rates.
- Where does Gemini CLI store my API key?
- On your device. Requests go directly from Gemini CLI to the provider. Its BYOK Tools Key Safety Score is 75/100.
- Is Gemini CLI free?
- Open source: Free & open source; free tier with Google account. API usage is billed separately by your model provider.
- Is Gemini CLI open source?
- Yes. The source code is at https://github.com/google-gemini/gemini-cli.
- Can Gemini CLI run local models?
- No. Gemini CLI works with cloud providers only.
- Which platforms does Gemini CLI support?
- CLI, macOS, Windows, Linux.
Community reviews
No reviews yet.
Alternatives to Gemini CLI
All command line →LLM (Simon Willison)
Command Line
CLI and Python library for interacting with any LLM.
Fabric
Command Line
Open-source framework of crowdsourced AI prompts for the CLI.
AIChat
Command Line
All-in-one LLM CLI with chat REPL, RAG, agents and a local server.
Open Interpreter
Command Line
Let language models run code on your computer from a terminal.
Mods
Command Line
AI on the command line from Charm, built for pipelines.
gptme
Command Line
Personal AI agent in your terminal with code execution.