# Gemini CLI

> An open-source AI agent that brings the power of Gemini directly into your terminal.

Source: https://talira.ai/catalog/gemini-cli-xq86svf2
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / ai coding / agents](https://talira.ai/categories/developer-tools/ai-coding/agents), [ai / agents](https://talira.ai/categories/ai/agents)
- Platforms: macos, windows, linux, cli[^5]
- Licence: Apache-2.0[^1][^3]
- Pricing: Paid[^1][^2]
- Pricing notes: The CLI is free open source software, but since 18 June 2026 it needs a Gemini Code Assist Standard or Enterprise licence, Code Assist for GitHub on Google Cloud, or a paid Gemini API or Vertex AI key (pay per token). Free and Google AI Pro and Ultra use moved to Antigravity CLI.
- Free tier: no[^1][^2]
- Self-hostable: yes[^1]
- Plugins: yes[^4]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^1][^6], [AGENTS.md](https://talira.ai/standards/agents-md.md)[^7], [Agent Skills](https://talira.ai/standards/agent-skills.md)[^8], [ACP](https://talira.ai/standards/agent-client-protocol.md)[^9]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^10]

Gemini CLI is Google's open source (Apache-2.0) AI agent for the terminal, run as `gemini`. It queries and edits large codebases, runs shell commands, fetches and searches the web, builds apps from images and PDFs, and runs headless in scripts and CI with JSON or streaming JSON output. It is extended with MCP servers, extensions from a gallery, Agent Skills, hooks, subagents and custom commands, keeps project context in GEMINI.md files, and has sandboxing, trusted folders, checkpointing and a VS Code companion extension. Since 18 June 2026 it serves organisations with [Gemini Code Assist](https://talira.ai/catalog/gemini-code-assist-9c1b9et0.md) Standard or Enterprise and Code Assist for GitHub, plus paid [Gemini API](https://talira.ai/catalog/gemini-api-r5x8ntes.md) and Vertex AI keys: free users and Google AI Pro and Ultra subscribers moved to Antigravity CLI.

## Links

- Website: https://geminicli.com/
- GitHub: https://github.com/google-gemini/gemini-cli
- Docs: https://geminicli.com/docs/
- Pricing: https://geminicli.com/docs/resources/quota-and-pricing/

## Problems it solves

- our company pays for Gemini Code Assist Enterprise and I want its coding agent in my terminal
- an open source terminal coding agent that works with Gemini models through our Google Cloud project
- ask questions about a huge codebase from the command line and get the agent to make the edits
- run an AI agent non-interactively in CI and parse its answer as JSON
- turn a screenshot, sketch or PDF into a working app from the terminal
- automate chores like summarising pull requests or working through a complex rebase with an AI agent
- connect a command-line AI agent to GitHub, Slack or our database through MCP servers
- share AI agent skills and project context with my team through files in the repo
- run an AI coding agent in a sandbox so it cannot touch files outside the project
- use a coding agent with Vertex AI so requests stay under our Google Cloud billing and controls
- restore my files after an AI agent made a bad change, from a checkpoint
- package custom commands, MCP servers and hooks as an extension my whole team installs
- the Gemini terminal agent stopped working on my free Google account and I need to know what replaced it
- pick my previous terminal AI agent conversation back up with its history intact
- decide which shell commands a terminal coding agent may run without asking, which need my approval and which are blocked
- have the terminal coding agent plan read-only and get my approval before it changes any files
- export my terminal coding agent's token usage by session and model to OpenTelemetry

## Features

- interactive terminal agent and non-interactive mode (-p) with JSON and streaming JSON output
- built-in tools for the file system, shell commands, web fetch and web search
- multimodal input: images, PDFs and sketches
- MCP servers configured in ~/.gemini/settings.json
- extensions bundling prompts, MCP servers, custom commands, themes, hooks, subagents and Agent Skills, with a gallery
- Agent Skills in .gemini/skills or .agents/skills
- GEMINI.md context files; other names such as AGENTS.md through the context.fileName setting
- custom slash commands
- checkpointing, token caching and trusted folders
- sandboxing, including a Docker or Podman container
- VS Code companion extension (Gemini CLI Companion) and an ACP mode for IDE integration
- sign in with Google (Code Assist licence), a Gemini API key or Vertex AI
- enterprise deployment guide and telemetry
- weekly preview and stable releases and nightly builds on npm
- session resume (-r, /resume) and /rewind
- policy engine with allow, deny and ask_user rules for tools and shell command prefixes
- plan mode (/plan, Shift+Tab, --approval-mode=plan)
- OpenTelemetry token usage metrics

## Limitations

- No free tier: free Google accounts and Google AI Pro and Ultra subscribers moved to Antigravity CLI on 18 June 2026[^1][^2]
- Not tuned for Gemini 4 models: Google recommends Antigravity CLI for Gemini 4 Argon and later[^1]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.48 out of 1.
Signals: backing 0.55, extensibility 0.40.

- backed by Google
- funding: public company (NASDAQ:GOOGL)
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Gemini API](https://talira.ai/catalog/gemini-api-r5x8ntes.md)

## Alternatives

- [OpenCode](https://talira.ai/catalog/opencode-fn6hh4gp.md): The open source coding agent.
- [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md): Lightweight coding agent that runs in your terminal
- [Cursor](https://talira.ai/catalog/cursor-x8ypqq22.md): Cursor is your coding agent for building ambitious software.
- [GitHub Copilot](https://talira.ai/catalog/github-copilot-bg5bfbre.md): Move from a single task to a project spanning repositories without losing context.
- [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md): An agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools
- [Aider](https://talira.ai/catalog/aider-c2r6skq8.md): AI pair programming in your terminal

## Sources

[^1]: https://github.com/google-gemini/gemini-cli/blob/main/README.md (checked 20 Nov 2026)
[^2]: https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/ (checked 20 Nov 2026)
[^3]: https://github.com/google-gemini/gemini-cli/blob/main/LICENSE (checked 20 Nov 2026)
[^4]: https://geminicli.com/docs/extensions/ (checked 20 Nov 2026)
[^5]: https://geminicli.com/docs/get-started/installation/ (checked 20 Nov 2026)
[^6]: https://geminicli.com/docs/tools/mcp-server/ (checked 20 Nov 2026)
[^7]: https://geminicli.com/docs/cli/gemini-md/ (checked 20 Nov 2026)
[^8]: https://geminicli.com/docs/cli/skills/ (checked 20 Nov 2026)
[^9]: https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/acp-mode.md (checked 20 Nov 2026)
[^10]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
