Gemini CLI
An open-source terminal agent with workspace tools, Gemini models and configurable extensions.
At a glance
- Provider
- Best suited to
- Coding, repository exploration and repeatable terminal workflows with Gemini
- Availability
- Google account, Gemini API key or Vertex AI authentication, with different quotas and billing.
- Interfaces
- Terminal and scriptable CLI
- Execution environment
- Local CLI, accessing remote model inference through the selected authentication path.
- Model choice
- Gemini models available to the active account or API project.
- Tools and integrations
- File and shell tools, MCP and project instructions.
- Human review and controls
- Review tool requests. Use the documented approval mode and sandbox options for a task.
- Prerequisites
- Node.js and a supported authentication method. Check the current setup page for requirements.
- License and hosting
- Apache-2.0 CLI. Inference has separate Google terms.
Pricing and usage
Quota depends on authentication. Gemini API and Vertex AI projects may incur model usage charges.
What you can do with it
- Summarize or change an existing project from a terminal.
- Run project checks and inspect execution output.
- Connect a project-specific tool through MCP.
How to get started
- Install @google/gemini-cli with a supported package method.
- Run gemini in your project and choose an authentication method.
- Set an approval mode and try a read-only task before allowing changes.
Install with npm, then launch from the directory you want to work in.
npm install -g @google/gemini-cli
geminiLimitations
- Different authentication modes have different quotas and billing.
- Terminal tools depend on local permissions and installed dependencies.
Official sources
Sources checked
Frequently asked questions
How do I start using Gemini CLI?
Install @google/gemini-cli with a supported package method. Run gemini in your project and choose an authentication method. Set an approval mode and try a read-only task before allowing changes.
How is Gemini CLI priced?
Quota depends on authentication. Gemini API and Vertex AI projects may incur model usage charges.
What should I check before giving it access?
Review tool requests. Use the documented approval mode and sandbox options for a task. Different authentication modes have different quotas and billing.