Skip to content
AI and automation4 min read

Gemini CLI: installing, signing in, and what changed for free use

Short answer

Gemini CLI is Google's open-source tool that runs a Gemini agent in your terminal; install it with `npm install -g @google/gemini-cli` on Node.js 20 or later. Since 18 June 2026 it no longer serves free Google-account users or Google AI Pro and Ultra subscribers, whom Google moved to Antigravity CLI. It still works with a paid Gemini API key, Gemini Code Assist business licences or Vertex AI.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What changed on 18 June 2026
  2. Installing Gemini CLI, step by step
  3. The free alternative: Antigravity CLI
  4. Troubleshooting
  5. Moving what Gemini CLI wrote onto your hosting
  6. On ArabyHost

Many Gemini CLI tutorials were written before June 2026 and promise a big free quota just for signing in with Google. That is no longer true. This page was written on 27 November 2026 from the official Gemini CLI docs, its GitHub repository and Google’s developer blog post of 19 May 2026.

What changed on 18 June 2026

According to Google’s post, on 18 June 2026 Gemini CLI and the Gemini Code Assist editor extensions stopped serving requests for:

  • Free users (Gemini Code Assist for individuals at no charge).
  • Google AI Pro and Google AI Ultra subscribers.

Google moved them to Antigravity CLI, a new terminal tool inside its Antigravity platform. Gemini CLI kept working with:

Sign-in method Status in November 2026
Paid Gemini API key (from AI Studio) Works, billed by usage
Gemini Code Assist Standard or Enterprise licence Unchanged
Vertex AI on Google Cloud Works
Free sign-in with a Google account Stopped; use Antigravity CLI
Google AI Pro or Ultra Stopped in Gemini CLI; included in Antigravity

A plain caveat: the quota page in the Gemini CLI docs still shows a daily limit for an unpaid API key on Flash models, while Google’s post speaks of “paid” keys. If you want to try a free key, test it yourself and don’t build anything important on it.

Installing Gemini CLI, step by step

1. Install Node.js

You need Node.js 20 or later. Check:

node -v

2. Install the tool

npm install -g @google/gemini-cli     # Windows, macOS and Linux
brew install gemini-cli                # macOS and Linux with Homebrew
npx @google/gemini-cli                 # try without installing

On Windows run the first command in PowerShell. If Linux gives a permissions error, don’t use sudo; install into your home folder by adding --prefix ~/.local and make sure ~/.local/bin is on your PATH.

3. Sign in

Run gemini in your project folder and pick a sign-in method. For an API key:

export GEMINI_API_KEY="your-key-from-ai-studio"
gemini

For Vertex AI set GOOGLE_API_KEY and GOOGLE_GENAI_USE_VERTEXAI=true. With a Code Assist licence through your organisation, set GOOGLE_CLOUD_PROJECT and then sign in with Google.

4. Use it

  • Describe the task clearly: “explain how this project is structured” or “add a contact page”.
  • /model changes the model and /help lists commands.
  • Keep standing project instructions in a GEMINI.md file at the project root.
  • To update, run the install command again.

The free alternative: Antigravity CLI

If you’re searching for “gemini cli free”, this is what Google now points to. According to Antigravity’s pricing page in November 2026, the Individual plan is $0/month and includes the CLI with a “baseline agent quota refreshed weekly”; Google AI Pro and Ultra give larger quotas. The documented install for macOS and Linux:

curl -fsSL https://antigravity.google/cli/install.sh | bash

Google’s post says Antigravity CLI doesn’t yet match every Gemini CLI feature, but it keeps Skills, Hooks, subagents and extensions.

Troubleshooting

  • gemini: command not found: npm’s global folder isn’t on your PATH. Open a new terminal, or add ~/.local/bin if you installed with --prefix.
  • A message that your sign-in method is no longer supported: you’re on free Google sign-in. Move to an API key or to Antigravity CLI.
  • 429 or quota exceeded: you hit your key’s or Google Cloud project’s limit. Wait, or enable billing.
  • Old Node version: upgrade to Node.js 20 or 24.

Moving what Gemini CLI wrote onto your hosting

Gemini CLI works on your project files directly, so there’s nothing to export. Push the project to GitHub, then deploy it according to its type. If you’re still choosing a tool, see Gemini CLI vs Claude Code and Codex explained.

On ArabyHost

You built it; where does it run? The AI/Developer plans give you SSH inside CageFS with Node.js 20 and 24, so you can install Gemini CLI in your home folder with npm install -g @google/gemini-cli --prefix ~/.local. A server has no browser, so use an API key in the GEMINI_API_KEY environment variable. These plans also run Node.js and Python (3.9 to 3.12) apps through Phusion Passenger, PHP 8.1 to 8.3, background workers with cron, and deploys from GitHub. There’s no Docker, GPU or root access. Prices in your currency are on the pricing page.

FAQ

Is Gemini CLI free?

The tool itself is free and open source under Apache 2.0, but free sign-in with a Google account ended on 18 June 2026, according to Google's developer blog. Google's suggested free alternative is Antigravity CLI, whose Individual plan is $0 with a baseline quota refreshed weekly.

How do I install Gemini CLI on Windows?

Install Node.js 20 or later from nodejs.org, open PowerShell and run `npm install -g @google/gemini-cli`, then type `gemini`. To try it without installing, use `npx @google/gemini-cli`.

What are Gemini CLI's free limits?

The widely quoted figures, such as 1,000 requests a day, applied to free Google-account sign-in, which ended in June 2026. The quota docs still list a daily limit for an unpaid API key, but Google's blog speaks of paid keys, so test your key and watch the quota page.

How do I change the model in Gemini CLI?

Type `/model` inside a session to see the models your sign-in method allows and pick one. What's available depends on your key or subscription.

Gemini CLI or Claude Code?

Both are terminal coding agents that read and edit your project. Gemini CLI is Google's and reads project instructions from GEMINI.md; Claude Code is Anthropic's and reads CLAUDE.md. The full comparison is on the Gemini CLI vs Claude Code page.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.