Gemini CLI

Gemini CLI

Online

Gemini CLI is Google’s official open-source AI agent for the terminal, powered by Gemini 2.5 Pro. It allows developers to chat, code, and perform complex tasks via natural language directly in the shell, with support for multimodal prompts and a massive 1 million-token context window.

Last Updated: 2025/6/27
Free

Website Preview

gemini-cli: An open-source AI agent that brings the power of Gemini directly into your terminal. - Website Preview

Detailed Introduction

Gemini CLI – AI Agent for Your Terminal

What is Gemini CLI?

Gemini CLI is Google's official open-source command-line tool that brings Gemini 2.5 Pro AI functionalities—including coding help, research, content generation, and task management—directly into the terminal. It’s powered by Gemini’s large language model with a massive 1 million-token context window, providing a powerful, multimodal experience for developers


Why Use Gemini CLI?

  • Native terminal experience: Interact with AI via simple NAT prompts in your shell—without an IDE .
  • Free and open-source: Preview is accessible to all with a Google account. The CLI is released under open-source license .
  • Deep model integration: Includes advanced features like Gemini Code Assist, Model Context Protocol, web search, and multimedia capabilities via Veo/Imagen
  • High usage limits: Offers 60 requests per minute and up to 1,000 requests per day, among the most generous free quotas available

Core Features

  • Chat-based code assistance: Write, debug, and refactor code directly from your terminal via natural language
  • Rich task support: Beyond coding—create content, perform research, analyze files, manage tasks, and troubleshoot issues
  • Multimodal and extendable: Access Gemini's language, code, image, audio, and video capabilities. Integrates plugins and supports custom prompts via MCP
  • Open-source codebase: Inspect and contribute to the code on GitHub—Apache 2.0 / MIT licensed

How to Get Started

  1. Go to the Gemini CLI GitHub repo (https://github.com/google-gemini/gemini-cli/).
  2. Download the latest release or build from source in Go or other supported languages
  3. Set your GEMINI_API_KEY from Google AI Studio.
  4. Run gemini with --help to explore chat, embed, prompt, code features, and more
  5. Start typing prompts and interact straight from your shell.

Tips & Tricks

  • Use Gemini Code Assist seamlessly: Enjoy the same code help available in IDEs, right in your terminal
  • Explore multimodal features: Try generating images or summarizing videos directly via CLI.
  • Customize via system commands: Use commands like !m (toggle multiline), set models, or clear memory within chat sessions

FAQ

Q: Is Gemini CLI available now?
A: Yes. It's in public preview and open-source. You can access it with a personal Google account and a Gemini Code Assist license

Q: Do I need an API key?
A: Yes. Obtain your Gemini API key from Google AI Studio or Vertex AI and set it in the GEMINI_API_KEY environment variable

Q: Can I use it for free?
A: Free preview users get up to 60 requests per minute and 1,000 per day. Paid users can exceed this via Vertex AI or enterprise plans

Q: What makes it different from IDE-based tools?
A: Gemini CLI stands out by offering a pure terminal-native AI experience with no need for heavy IDE setups, covering code, text, research, and media—all via shell interaction
Q: Who is it for?
A: Ideal for terminal-loving developers, DevOps professionals, researchers, and AI enthusiasts who prefer AI tools tightly integrated into their command-line workflows

Related Sites

ALLinSSL
ALLinSSL
ALLinSSL is a free, open-source SSL/TLS certificate automation platform supporting multiple cloud and DNS providers. Easily deploy, renew, and manage certificates with a visual dashboard.
21st.dev
21st.dev
Ship polished UIs faster with ready-to-use React Tailwind components inspired by shadcn/ui. Built by design engineers, for design engineers.
A2A
A2A
A2A is an open-source AI code auto-completion platform launched by Google, supporting multiple languages and offering local deployment to help developers write code more efficiently and reduce errors. Experience smart programming now.

Comments

Rating

9

Quick Action

Lables

Command-LineGeminifreegoogleOpen Source
汇聚通义千问、百炼、TokenPlan、Qoder、万小智、秒悟等核心产品;覆盖文本、图像、代码、语音全场景能力。
秒悟 Meoo 新用户送 12000 积分,订阅套餐首月限量低至 9.9 元
搭建您的专属大模型主页