What Is Gemini CLI?
Gemini CLI is Google's open source AI coding agent for the command line. It uses Gemini models with local project context so developers can ask questions about repositories make multi file changes run shell tools and automate development work without leaving the terminal.
More Than A Terminal Chatbot
The CLI includes tools for reading and editing files running shell commands managing sessions and connecting external capabilities. Plan Mode provides a safer research oriented stage for complex work where the agent can investigate the repository and build an implementation plan before broad file edits are approved.
Extensible And Automation Friendly
Developers can add MCP servers use extensions configure project instructions create hooks and run Gemini CLI in headless mode. Authentication can use supported Google account plans Gemini API credentials or Vertex AI depending on the desired quota privacy and billing arrangement.
Useful For
- Terminal first software developers
- Repository exploration and debugging
- Automated scripts and CI style workflows
- Google Cloud and Gemini API users
- Teams that want an open source coding agent foundation
Key features
- Terminal Coding Agent: Works directly with local repositories and shell tools.
- Plan Mode: Investigates a task in a restricted mode before implementation.
- Gemini Models: Uses Google's current supported Gemini model family.
- MCP Support: Connects remote tools and contextual resources.
- Extensions: Adds packaged tools workflows and capabilities.
- Agent Skills: Loads specialized instructions for specific tasks.
- Checkpointing And Rewind: Helps recover or revisit agent sessions.
- Headless Mode: Supports programmatic automation and scripting.
- Sandboxing And Policies: Adds control over command and tool execution.
Use cases
Terminal Coding,Codebase Analysis,Feature Development,Debugging,Shell Automation,CI Workflows,Code Planning,MCP Development
How to use
How To Use Gemini CLI
- Install Gemini CLI: Install the official package with a supported method such as npm.
- Open Your Project Directory: Run the CLI from the repository you want Gemini to understand.
- Authenticate: Sign in with a supported Google account or configure a Gemini API or Vertex AI credential according to your preferred quota and billing method.
- Start A Session: Run Gemini CLI and ask a focused question about the project or describe the coding task.
- Use Plan Mode For Large Changes: Let the agent investigate files and prepare an implementation strategy before granting edit permissions.
- Approve The Plan And Actions: Review the plan then choose how file edits and commands should be approved.
- Inspect Generated Work: Check changed files shell output and tests after the agent finishes.
- Extend When Needed: Add MCP servers extensions hooks or project instructions for repeated workflows and specialized tooling.
Best for
Developers, Terminal Users, Google Cloud Users, Automation Engineers, Students
Integrations
Gemini API,Vertex AI,MCP,IDE Integration,Extensions,Hooks,Shell Tools
Commercial use
Yes Subject To The Authentication Method Google Terms And Model Usage Conditions