SuperAPI AI Directory

gemini-cli

Gemini CLI is a command-line AI workflow tool. It connects to the user's tools, understands the user's code, and accelerates their workflow.

Open website

About this tool

Overview

Gemini CLI is an open-source AI agent that brings Gemini's capabilities directly into the terminal. It provides developers with the most direct path from prompt to model, and is designed in a command-line-first way. The project is licensed under Apache 2.0 and is built jointly by Google and the open-source community.

Key Features

  • Free tier: With a personal Google account, you can get 60 requests per minute and 1,000 requests per day.
  • Powerful Gemini 3 model: Access models with stronger reasoning capabilities and a 1M token context window.
  • Built-in tools: Google Search grounding, file operations, Shell commands, web scraping.
  • Extensible: Supports MCP (Model Context Protocol) for custom integrations.
  • Terminal-first: Designed for developers who work in the command line for long periods.
  • Open source: Apache 2.0 license.

Main Capabilities

Code Understanding and Generation

  • Query and edit large codebases.
  • Use multimodal capabilities to generate new applications from PDFs, images, or sketches.
  • Debug issues and troubleshoot using natural language.

Automation and Integration

  • Automate operations tasks, such as querying pull requests or handling complex rebases.
  • Use MCP servers to connect new capabilities, including media generation via Imagen, Veo, or Lyria.
  • Run non-interactively in scripts for workflow automation.

Advanced Capabilities

  • Use built-in Google Search to ground queries with real-time information.
  • Conversation checkpoints, allowing complex sessions to be saved and resumed.
  • Custom context files (GEMINI.md) to customize behavior for a project.

GitHub Integration

Integrate Gemini CLI directly into GitHub workflows via the Gemini CLI GitHub Action:

  • Pull Request review: Automated code review with contextual feedback and suggestions.
  • Issue triage: Automatically label and prioritize GitHub issues based on content analysis.
  • On-demand assistance: Mention @gemini-cli in issues and pull requests to get help with debugging, explanations, or task assignment.
  • Custom workflows: Build workflows that suit your teamAutomated, scheduled, and on-demand workflows for team needs.

Authentication Methods

Option 1: Sign in with Google (OAuth login using a Google account)

Best for: individual developers and any user with a Gemini Code Assist license.

  • Free tier: 60 requests per minute, 1,000 requests per day.
  • Gemini 3 model, 1M token context window.
  • No need to manage an API key; just sign in with a Google account.
  • Automatically updates to the latest model.

Option 2: Gemini API Key

Best for: developers who need specific model control or paid-tier access.

  • Free tier: 1000 requests per day using Gemini 3 (flash and pro mixed).
  • Model selection: you can choose a specific Gemini model.
  • Usage-based billing: upgrade when needed for higher limits.

Option 3: Vertex AI

Best for: enterprise teams and production workloads.

  • Enterprise features: advanced security and compliance.
  • Scalable: use a billing account to get higher rate limits.
  • Integration: works with existing Google Cloud infrastructure.

For Google Workspace accounts and other authentication methods, see the authentication guide.

Usage

For simple text responses, call directly in the terminal. For more advanced scripting, including how to parse JSON and handle errors, use the --output-format json flag to get structured output. For real-time event streams (useful for monitoring long-running operations), use --output-format stream-json to get newline-delimited JSON events.

Documentation and Resources

  • Quick start guide: get started quickly.
  • Authentication setup: detailed authentication configuration.
  • Configuration guide: setup and customization.
  • Keyboard shortcuts: efficiency tips.
  • Command reference: all slash commands (/help, /chat, etc.).
  • Custom commands: create your own reusable commands.
  • Context files (GEMINI.md): provide persistent context for Gemini CLI.
  • Checkpoints: save and restore conversations.
  • Token caching: optimize token usage.

Tools and Extensions

  • Built-in tools overview: file system operations,Shell commands, web scraping, and search.
  • MCP server integration: extend with custom tools.
  • Custom extensions: build and share your own commands.

Advanced Topics

  • Headless mode (scripting): use Gemini CLI in automated workflows.
  • IDE integration: VS Code companion.
  • Sandboxing and security: secure execution environment.
  • Trusted folders: control execution policy per folder.
  • Enterprise guide: deploy and manage in enterprise environments.
  • Telemetry and monitoring: usage tracking.
  • Tool reference: overview of built-in tools.
  • Local development: local development toolchain.

Troubleshooting and Support

  • Troubleshooting guide: common issues and solutions.
  • FAQ: frequently asked questions.
  • You can report issues directly from the CLI using the /bug command.

Using MCP Servers

Configure MCP servers in ~/.gemini/settings.json to extend Gemini CLI with custom tools. See the MCP server integration guide for installation instructions.

Contributing

Contributions are welcome. Gemini CLI is fully open source (Apache 2.0), and the community can:

  • Report bugs and suggest features.
  • Improve documentation.
  • Submit code improvements.
  • Share MCP servers and extensions. The contribution guide includes development setup, coding standards, and how to submit a pull request.

Other Information

  • Free course: learn the basics.
  • Official roadmap: learn what is planned next.
  • Changelog: view recent important updates.
  • NPM package: package registry.
  • GitHub Issues: report bugs or request features.
  • Security advisories: security updates.
  • Uninstall guide: removal instructions.
  • License: Apache License 2.0.
  • Terms of Service: terms and privacy.
  • Security: security policy.

Release Channels

  • Preview: released every Tuesday at 23:59 UTC, may not be fully reviewed, may contain regressions or other unresolved issues, uses the preview tag.
  • Stable: released every Tuesday at 20:00 UTC, is the full promotion of the previous week's preview release and includes bug fixes and validation, uses the latest tag.
  • Nightly: released every day at 00:00 UTC, includes all changes from the main branch, and should be assumed to have unverified changes and issues, uses the nightly tag.

Limitations

Regarding recommended system specifications, detailed installation procedures, and specific command usage, the official documentation provides a more complete explanation; the content here is organized only based on the provided materials; features, pricing details, prices, or platform support that are not explicitly stated in the materials are not provided at this time.