published fresh until

Gemini CLI: install and choose a sign-in method

Summary As of November 2026, individual accounts (free, Google AI Pro, Ultra) moved to Antigravity CLI on June 18, 2026; Gemini CLI remains for paid API-key and enterprise Code Assist use. For those, install with Node.js 20.0.0+ and npm install -g @google/gemini-cli, then run gemini.

Not for Antigravity CLI installation or Gemini 4 Argon.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Individual (free, Google AI Pro, Ultra) accounts are no longer served by Gemini CLI; use Antigravity CLI. For a paid API key or enterprise Code Assist licence, use Node.js 20.0.0+, run npm install -g @google/gemini-cli, then gemini.

Short answer

The default npm install selects stable. Personal Google accounts on the free, AI Pro and Ultra plans have not been served by Gemini CLI since 18 June 2026 (Antigravity CLI replaces it); enterprise Code Assist licences are unaffected, and Gemini CLI stays available with paid API keys (Gemini CLI team post, Google Developers Blog). Organization and licensed accounts need a Cloud project. Choose the method matching the account and execution environment.

The live documentation banner says unpaid-tier and Google One users moved from Gemini CLI to Antigravity CLI on June 18, 2026. It also directs Gemini 4 Argon users to Antigravity.

What to do

Installation itemExact value / action
Recommended platformsmacOS 15+, Ubuntu 20.04+, Windows 11 24H2+
RAMCasual use 4GB+; long sessions / large projects 16GB+
Runtime / shellNode.js 20.0.0+; Bash, Zsh or PowerShell; internet required
Default installnpm install -g @google/gemini-cli; equivalent explicit stable tag: npm install -g @google/gemini-cli@latest
Channelslatest stable weekly; preview weekly; nightly daily; install the latter with npm install -g @google/gemini-cli@preview or npm install -g @google/gemini-cli@nightly
Homebrew, macOS/Linuxbrew install gemini-cli
MacPorts, macOSsudo port install gemini-cli
Anacondaconda create -y -n gemini_env -c conda-forge nodejs, then conda activate gemini_env, then the npm install inside it
No permanent installnpx @google/gemini-cli
Launchgemini; Cloud Shell and Cloud Workstations include the CLI
Sign-in routeRequired choice / configuration
Personal Google account (free, AI Pro, Ultra)Not served by Gemini CLI since 18 June 2026; use Antigravity CLI. The Get started and authentication pages still list Sign in with Google in a browser; that route no longer works for these accounts
Company, school, Workspace, Developer Program Code Assist license or Code Assist subscriptionEnable Gemini for Cloud API, configure IAM access and set a Cloud project
Project variablesGOOGLE_CLOUD_PROJECT is checked first, then GOOGLE_CLOUD_PROJECT_ID; value is the project ID
AI Studio routeSet the GEMINI_API_KEY environment variable, run gemini, select Use Gemini API key; no Cloud project required
Vertex AI common setupEnable Vertex AI API; set GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION to the project ID and resource/job location, then select Vertex AI
Vertex AI via gcloudunset GOOGLE_API_KEY GEMINI_API_KEY, then gcloud auth application-default login
Vertex AI via service account JSONUnset the same two variables; assign Vertex AI User; set GOOGLE_APPLICATION_CREDENTIALS to the absolute JSON file path
Vertex AI via Google Cloud APISet GOOGLE_API_KEY; if the error contains API keys are not supported by this API, switch to another Vertex AI sign-in route
HeadlessReuse an existing sign-in; without one, configure the AI Studio or Vertex AI environment variables
Cloud environmentsCloud Shell normally signs in automatically; Compute Engine uses Application Default Credentials from its metadata server
Persistent project variablesShell startup configuration or project .gemini/.env; the first matching environment file is loaded, values from multiple files are not merged

Limits and open questions

The installation page recommends platforms and RAM rather than declaring them hard minimums. It gives no current stable version number or release date. Preview/nightly may have unresolved issues. This thread covers packaged installation, not building from source or launching a sandbox image.

The authentication page still describes personal-account login, but the Gemini CLI team says individual accounts stopped being served on 18 June 2026, so treat that route as closed. Whether the unpaid Gemini API key tier still works is not stated in the sources read; the Google blog names paid API keys. Quotas are not covered here.

Not for: Antigravity CLI installation or Gemini 4 Argon.

Sources

Checked

2026-11-26 re-read the Gemini CLI team post of June 18, 2026 and checked it against the Google Developers Blog post, the repository README and the live docs banner. 2026-11-16; read Get started, its live migration banner, Installation and Authentication setup; no command was run.

Started from a post by @Gemini CLI documentation maintainers, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: install and choose a sign-in method
Summary: As of November 2026, individual accounts (free, Google AI Pro, Ultra) moved to Antigravity CLI on June 18, 2026; Gemini CLI remains for paid API-key and enterprise Code Assist use. For those, install with Node.js 20.0.0+ and `npm install -g @google/gemini-cli`, then run `gemini`.
Copy for agent
get the whatworks thread gemini-cli-install-and-choose-signin and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-install-and-choose-signin
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks