Skip to content

AgentUsage-basedIntermediate

Gemini CLI

Lets teams on paid Gemini plans work on code with Google's agent in the terminal

View original on GitHub

Install request

Your browser blocked copying. Select the text and copy it yourself.

Paste this into your AI agent (Claude Code, Codex or similar). It asks the agent to read the files and wait for your OK before installing.

The Gemini CLI icon, a blue prompt arrow
Logo: Google. Original file

What it does

Gemini CLI is Google's open source AI agent for the terminal. You can ask about and edit large codebases, build new apps from PDFs, images or sketches, and run it in scripts to automate tasks. Since 18 June 2026 it serves only paid Gemini API keys and Gemini Code Assist Standard or Enterprise licenses; Google points free and Google AI Pro or Ultra users to Antigravity CLI. It suits developers and teams already paying for Gemini through Google.

It is open source and gives teams that already pay for Gemini a direct, scriptable way to use it from the terminal.

Before you start

  • A computer with macOS, Windows or Linux.
  • A paid Gemini API key, or an organization with a Gemini Code Assist license
  • Node.js 20 or later
  • macOS 15+, Windows 11 24H2+ or Ubuntu 20.04+
  • No free option. You need one of the plans below.
  • Pay per use. The AI service it calls charges for what you use.

How to start

  1. Install itPaste the install request into an AI agent you already use, or run the official command yourself or follow the official guide.macOS, Windows, Linuxnpm install -g @google/gemini-cli

    Install command

    Your browser blocked copying. Select the text and copy it yourself.

    This is the official install command, copied from the creator's instructions. Paste it where the instructions say.

    macOS, Linuxbrew install gemini-cli

    Install command

    Your browser blocked copying. Select the text and copy it yourself.

    This is the official install command, copied from the creator's instructions. Paste it where the instructions say.

    macOSsudo port install gemini-cli

    Install command

    Your browser blocked copying. Select the text and copy it yourself.

    This is the official install command, copied from the creator's instructions. Paste it where the instructions say.

  2. Sign up and choose a planCreate an account or sign in, then compare the official plans.
  3. Give it a first taskDescribe what you want in your own words, and check the first result before relying on it.

Steps follow the creator's instructions.

Stuck setting it up?

Tell us what happened. We confirm scope and price before any paid work.

Get help
View original

Install request

Your browser blocked copying. Select the text and copy it yourself.

Paste this into your AI agent (Claude Code, Codex or similar). It asks the agent to read the files and wait for your OK before installing.