How to Install Gemini CLI (2026): Setup and Which Login Works
Install Gemini CLI 0.65.0 with npm and Node.js 20+. Personal Google sign-in stopped working June 18, 2026: use a paid API key, Vertex AI or Antigravity CLI.
On this page

Install Gemini CLI with npm. Check that node -v shows Node.js 20 or later, run npm install -g @google/gemini-cli, then confirm the install with gemini --version. As of October 23, 2026, the current stable release is 0.65.0, published on October 20, and the same command works on macOS, Windows 11 and Ubuntu. Skip Homebrew for now: its gemini-cli formula is deprecated and no longer receives new versions.
Decide how you will log in before you start the CLI, because the free Google sign-in that older guides describe is gone. Since June 18, 2026, Gemini CLI no longer serves personal Google accounts, Google AI Pro, Google AI Ultra or Gemini Code Assist for individuals. What still works is a paid Gemini API key in GEMINI_API_KEY, Vertex AI on a Google Cloud project, or a Gemini Code Assist Standard or Enterprise license that your organization already pays for.
If all you have is a personal account or an AI Pro or Ultra plan, install Antigravity CLI instead, which is the tool Google moved that group to. If you already signed in and got error #3501 or a "no longer supported" message, Antigravity #3501 "You Do Not Have a Valid License": 6 Causes explains which cause applies to your account and which resets help.
TL;DR
Tutorials written before the summer of 2026 promise 60 requests per minute and 1,000 requests per day through Google sign-in, with no credit card. That quota was not trimmed; personal accounts simply stopped being served, so following those steps today ends in a license error rather than a smaller allowance. The numbers keep circulating because Google's own quota page was never rewritten, as the free tier section below explains.
Three other details from those guides are also out of date. Homebrew is no longer a working upgrade path, so brew upgrade gemini-cli will not bring you to the current version. The gemini --reauth command they suggest does not exist in 0.65.0; you switch or redo a login with /auth inside the CLI. And the "Gemini API CLI" (gemini-api) that Google announced on October 19, 2026 is a separate experimental tool for media generation and file analysis with an API key, not a new version of Gemini CLI.
What Is Gemini CLI and Why Should You Use It?
Gemini CLI is Google's open-source AI coding agent for the terminal, published as @google/gemini-cli on npm and run with the gemini command. It reads the files in your project, proposes edits, runs shell commands with your approval, and can be extended with MCP servers, extensions, agent skills and hooks. Unlike a browser chat, it works directly inside your repository, so its suggestions refer to real files rather than code you pasted in.
Gemini CLI is not deprecated as a whole. Google still ships a stable release every week, cut from the previous week's preview, plus daily nightly builds, and the May 19, 2026 Google Developers Blog post on transitioning Gemini CLI to Antigravity CLI says it "will remain accessible via paid Gemini and Gemini Enterprise Agent Platform API keys." Organizations using it through a Code Assist Standard or Enterprise license keep their access unchanged. What ended is the consumer side: free use through Gemini Code Assist for individuals and use through Google AI Pro and Ultra subscriptions.
One note on the Gemini CLI GitHub README matters before you invest time in it: Google states that Gemini CLI "has not been optimized for Gemini 4 Argon" and recommends Antigravity CLI for the best experience with its latest models. So Gemini CLI makes most sense today when you already pay for Gemini API usage or Vertex AI, when your company has Code Assist seats, or when you want an open-source agent you can read, script and run in CI.
The safety model is the same as before. By default every file change and shell command waits for your approval, and --approval-mode lets you choose default, auto_edit, yolo or plan per session. For untrusted code you can run the agent inside a Docker or Podman container with gemini --sandbox, which keeps it away from the rest of your machine.
System Requirements and Prerequisites
Gemini CLI 0.65.0 needs Node.js 20 or later; the npm package declares "node": ">=20", so an older Node.js is the most common reason an install fails. Run node -v before anything else. If it prints v18 or lower, upgrade Node.js first, as described below.
The Gemini CLI installation page lists these recommendations as of October 23, 2026: macOS 15 (Sequoia) or later, Windows 11 24H2 or later, Ubuntu 20.04 or later, 4 GB of RAM for casual use and 16 GB or more for heavy use, and Bash, Zsh or PowerShell as the shell. An internet connection is required for every request, because the models run on Google's servers.
| Requirement | Minimum | Recommended | Notes |
|---|---|---|---|
| Node.js | 20.0.0+ | 22 LTS or newer | Check with node -v |
| macOS | 15 (Sequoia) | Latest | Apple silicon and Intel |
| Windows | 11 24H2+ | Latest | PowerShell or WSL2 |
| Linux | Ubuntu 20.04+ | Latest LTS | Other distros that run Node.js 20+ |
| RAM | 4 GB | 16 GB+ | For large codebases |
| Shell | Bash, Zsh, PowerShell | Zsh or PowerShell | Other shells are not listed by Google |
| Disk space | About 100 MB | More for sandbox images | 0.65.0 installed to 100 MB of node_modules in a test on October 23, 2026 |
Where you are also matters if you plan to use an API key. The Gemini API available regions list, updated October 22, 2026, does not include Russia, Belarus, mainland China or Hong Kong, so the API key route is not offered there, however cleanly the CLI itself installs.
If Node.js is missing or too old, the quickest fix on macOS and Linux is Node Version Manager (nvm): run curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash, open a new terminal, then run nvm install 22. On Windows, install the LTS build from nodejs.org or run winget install OpenJS.NodeJS.LTS in PowerShell, then open a new PowerShell window so the updated PATH is picked up.
If you have several Node.js installs from Homebrew, nvm and a system package, the node command can still point to an old one after an upgrade. which node (or Get-Command node in PowerShell) shows which binary your shell is using. With nvm, nvm alias default 22 makes version 22 the default in new terminals, which prevents the mismatch from coming back the next time you update Gemini CLI.
Installing Gemini CLI Step by Step

This chart predates Homebrew's deprecation of the formula: Homebrew is frozen at 0.46.0, so use npm instead. The text below reflects the current state.
A global npm install is the method to use on every platform: it puts the gemini command on your PATH and gets each weekly release the day it ships. npx is fine for a one-off try. Homebrew, which older guides recommended for macOS, now leaves you on an old version, and the section on it below explains how to move off it.
npm Global Install (Recommended for Most Users)
With Node.js 20 or later in place, run:
npm install -g @google/gemini-cliThis installs the latest stable release (0.65.0 as of October 23, 2026) and adds the gemini binary to your global npm directory. To update later, run the same command again, or name the channel explicitly. Google publishes three: stable (weekly), preview (weekly, becomes the next stable) and nightly (daily).
npm install -g @google/gemini-cli@latest # stable
npm install -g @google/gemini-cli@preview # next week's stable, early
npm install -g @google/gemini-cli@nightly # daily buildOn Windows 11, run the command in PowerShell or Windows Terminal after installing Node.js. If PowerShell then says gemini is not recognized, close the window and open a new one; if it still fails, the npm global folder is missing from your PATH, which the troubleshooting section covers. On Ubuntu and Debian, the nodejs package from apt is often older than Node.js 20, so check node -v first and install a current version with nvm if needed. If you install Node.js through nvm, you can run npm install -g without sudo.
Verify the Install with gemini --version
Run gemini --version; it should print the version number and nothing else. gemini --help lists the commands and flags available in your build, including mcp, extensions, skills and hooks subcommands, --skip-trust, --approval-mode and the -o text|json|stream-json output formats.
On October 23, 2026, a test install of 0.65.0 on a Mac (macOS 26.1, Apple silicon, Node.js 24.11.0, npm 11.6.1) added 12 packages in about 12 seconds and took 100 MB on disk, and gemini --version printed 0.65.0. Started without any login configured, gemini -p "say hi" stopped with "Please set an Auth method in your ~/.gemini/settings.json or specify one of the following environment variables before running: GEMINI_API_KEY, GOOGLE_GENAI_USE_VERTEXAI, GOOGLE_GENAI_USE_GCA". With a deliberately invalid key, the headless run first asked for a trusted directory, then, with --skip-trust, returned HTTP 400 API key not valid. Please pass a valid API key. from Google's API. That shows the install works and the key path reaches Google. The test did not complete a successful model call, did not try Google sign-in, and did not cover Windows or Linux; it was also a local install into one folder rather than a global one, so timing on your machine will differ.
Homebrew (macOS and Linux): Why brew upgrade Stops at 0.46.0
If you run brew install gemini-cli or brew upgrade gemini-cli today, you get version 0.46.0, while npm is at 0.65.0. Homebrew marked the gemini-cli formula as deprecated on June 18, 2026, and brew info gemini-cli prints "Deprecated because it is not supported upstream! It will be disabled on 2026-12-18." Homebrew lists the antigravity-cli cask as the replacement. As of October 23, 2026, the formula is still installable but frozen; after December 18, 2026 Homebrew marks it disabled, which normally means it can no longer be installed.
So when brew upgrade gemini-cli "does nothing," it is not broken: there is no newer version in Homebrew to upgrade to. Google's README still lists brew install gemini-cli, but the formula metadata is what Homebrew actually installs. To move a Homebrew install over to npm:
- Remove the Homebrew copy with
brew uninstall gemini-cli. Your settings in~/.geminiare not part of the formula and stay where they are. - Make sure Node.js 20 or later is installed (
node -v), using the nvm steps above if it is not. - Install with npm:
npm install -g @google/gemini-cli. - Open a new terminal (or run
hash -rin the current one) so the shell forgets the old path, then runwhich geminiandgemini --version. The path should point into your npm or nvm folder, and the version should be 0.65.0 or later.
If you only want to remove Gemini CLI, step 1 is enough. If you came to Homebrew for Google sign-in with a personal account, Homebrew's replacement cask points the same way: that group now uses Antigravity CLI.
npx (No Installation Required)
To try Gemini CLI without installing it globally, run the latest version straight from the npm registry:
# using npx (no installation required)
npx @google/gemini-clinpx downloads the package to a cache and runs it, so you always get the current stable release. The trade-off is a startup delay whenever npx has to fetch a new version, and the gemini command is not available afterward. Your login and settings in ~/.gemini are still read, so switching to a global install later does not mean configuring things again.
Other installation methods listed on Google's installation page are MacPorts (sudo port install gemini-cli), an Anaconda environment for restricted setups (create a conda environment with nodejs from conda-forge, then use the same npm install -g command inside it), a published Docker sandbox image, and Google Cloud Shell and Cloud Workstations, where Gemini CLI comes pre-installed. The MacPorts version is maintained separately from npm, so check gemini --version after installing it. For most people the npm global install remains the simplest way to stay current.
Setting Up Authentication: Which Login Still Works in 2026
Pick your login based on the account you have, because since June 18, 2026 Gemini CLI only serves three kinds of credentials: a paid Gemini API key, Vertex AI, and a Gemini Code Assist Standard or Enterprise license from an organization. Google's Gemini Code Assist consumer accounts page says that from that date the IDE extensions and Gemini CLI stopped serving the Code Assist for individuals, Google AI Pro and Google AI Ultra tiers, and that "you can no longer use the Login with Google option" for them. Sign in with Google still appears in the CLI's login menu, but it now works only for organization license holders.
| Your account or credential | Served by Gemini CLI in October 2026? | What to set | What you pay |
|---|---|---|---|
| Personal Google account, free | No | Nothing; use Antigravity CLI | Nothing in Gemini CLI |
| Google AI Pro or AI Ultra | No | Nothing; use Antigravity CLI with the same account | Your existing plan, in Antigravity |
| Paid Gemini API key (billing set up in AI Studio) | Yes | GEMINI_API_KEY, then "Use Gemini API key" | Per-token API usage |
| Unpaid AI Studio key | Not promised by Google | GEMINI_API_KEY | Free if it is served; check usage |
| Vertex AI on a Google Cloud project | Yes | GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, credentials, then "Vertex AI" | Google Cloud billing |
| Code Assist Standard or Enterprise seat from your organization | Yes | Sign in with Google, plus GOOGLE_CLOUD_PROJECT | Your organization's license |
Whichever you choose, you can store the variables in ~/.gemini/.env (or .gemini/.env inside a project) instead of exporting them in every terminal. Gemini CLI loads the first .env file it finds rather than merging several, so keep all variables for one login in the same file. Inside a running session, /auth opens the login menu again, which is how you switch methods.
Personal Google Account, AI Pro or Ultra: Use Antigravity CLI
If you were going to sign in with a personal Gmail account or an AI Pro or Ultra subscription, Gemini CLI will not serve you, so install Antigravity CLI instead. Google made it available to everyone on May 19, 2026 as the replacement for that group. It is written in Go and carries over agent skills, hooks, subagents and extensions (as Antigravity plugins), though Google said at launch that it does not match Gemini CLI feature for feature. Gemini CLI 0.65.0 itself prints the installer when you run /help antigravity install:
# macOS and Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash# Windows PowerShell
irm https://antigravity.google/cli/install.ps1 | iexGoogle's migration guide at antigravity.google/docs/gcli-migration covers moving settings over. Antigravity is offered to personal Google Accounts only in approved countries, and Russia, mainland China and Hong Kong are not on its list. You can also stay with Gemini CLI on a personal account by creating a paid Gemini API key, as shown next; you then pay per token instead of using your AI Pro or Ultra plan.
Signing in with a personal account anyway ends in a license error rather than a working session; the exact messages are listed under sign-in errors in the troubleshooting section.
Gemini API Key (Paid Key, Also Best for Automation)
A Gemini API key is the most direct way to use Gemini CLI as an individual in 2026, and the only option that needs no Google Cloud setup. Google commits to serving "paid" API keys, and the README describes this option as usage-based billing.
-
Create a key at Google AI Studio's API key page and set up billing for the project in AI Studio.
-
Set the key for your current terminal:
# macOS and Linux export GEMINI_API_KEY="YOUR_API_KEY"# Windows PowerShell $env:GEMINI_API_KEY="YOUR_API_KEY" -
To keep it across sessions, add the line
GEMINI_API_KEY="YOUR_API_KEY"to~/.gemini/.env. -
Run
geminiand choose "Use Gemini API key" when asked how to authenticate.
For scripts and CI, the key is all you need, but a headless run (gemini -p "...") also refuses to work in a folder you have not trusted. Either pass --skip-trust, as in gemini --skip-trust -p "summarize this repo", or set GEMINI_CLI_TRUST_WORKSPACE=true in the job's environment. Keep the key in your CI secrets store rather than in the repository.
Vertex AI (Enterprise and GCP Users)
Vertex AI is the route for teams that already bill through Google Cloud and want IAM, audit logging and data residency controls on the same project. You need a Google Cloud project with the Vertex AI API enabled.
-
Set your project and region (for example
us-central1):export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID" export GOOGLE_CLOUD_LOCATION="YOUR_PROJECT_LOCATION" -
If
GOOGLE_API_KEYorGEMINI_API_KEYis set from an earlier attempt, remove it withunset GOOGLE_API_KEY GEMINI_API_KEY, then log in with Application Default Credentials:gcloud auth application-default login -
Run
geminiand choose "Vertex AI". For headless runs, also setexport GOOGLE_GENAI_USE_VERTEXAI=trueso the CLI knows which method to use without the menu.
Instead of step 2, a service account can authenticate through a JSON key file in GOOGLE_APPLICATION_CREDENTIALS (the account needs the Vertex AI User role), or a Google Cloud API key can go in GOOGLE_API_KEY. In Google Cloud Shell and on Compute Engine, Gemini CLI usually picks up the environment's credentials automatically. Vertex AI limits come from your project's quota settings; for how Google's API rate limits work in general, see Gemini API Rate Limits 2026: Free vs Paid Tiers and How to Raise.
Organization License: Gemini Code Assist Standard or Enterprise
If your company already has Gemini Code Assist Standard or Enterprise seats, Sign in with Google still works for you. Choose it in the login menu, sign in with your work account, and set the project your administrator linked to the license:
export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"The project needs the Gemini for Cloud API enabled and your account needs access to it in IAM; your admin can confirm both. Google's quota page lists 1,500 requests per user per day for Standard and 2,000 for Enterprise. There is a catch for new teams: according to the Gemini Code Assist deprecations page, new Standard and Enterprise subscriptions could no longer be purchased after October 9, 2026, annual renewals end January 31, 2027, and monthly renewals end December 31, 2027. If your organization does not already have seats, start with an API key or Vertex AI.
Is There Still a Free Tier? Gemini CLI Limits and Pricing
Gemini CLI itself is free and open source under the Apache 2.0 license, but free model access through it is no longer guaranteed. The free allowance that made it popular belonged to Google sign-in with a personal account, and that path stopped being served. Today you pay through one of the logins above: API usage on a paid key, Google Cloud billing for Vertex AI, or your organization's license.
The figures you will still find, such as 1,000 requests per day for Code Assist for individuals, 1,500 for AI Pro and 2,000 for Ultra, come from Google's Gemini CLI quota and pricing page, last updated June 18, 2026. That page now carries a banner saying the unpaid tier was replaced by Antigravity CLI, but its table was never rewritten; a GitHub request to remove the outdated rows was closed as stale. Treat those personal-account numbers as history.
The open question is an unpaid key from AI Studio. The same quota page still lists a free API key tier with 250 requests per day on Flash models, and the Gemini API itself still has a free tier, but Google's transition post only promises that paid keys keep working, and the README banner says unpaid-tier users were moved to Antigravity CLI. A free key may still be served for light use, but there is no guarantee, so do not plan work around it. If you try one, run /stats model inside the CLI to see what your session is using, and check usage in AI Studio.
For what a paid key costs per token, see Gemini API Pricing 2026: Token Rates, Free Tier, and Key Cost. For the limits of the Gemini API's own free tier outside Gemini CLI, see Gemini API Free Tier 2026: Limits, Free Models, and Free API Keys. Vertex AI is billed at Google Cloud rates on your project, and Code Assist seats are billed to your organization.
Troubleshooting Common Installation Issues

The gemini --reauth command in this chart does not exist; use /auth inside the CLI to log in again.
Most install problems come down to npm permissions, an old Node.js, a PATH that does not include the npm folder, or a network that blocks the download. After the install, the most common failure is a login that Gemini CLI no longer serves. Each case below starts with the message you see and ends with the command that fixes it.
Permission Errors (EACCES)
The most common install failure on macOS and Linux is an npm permission error like this:
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'npm is trying to write to a system folder that needs root access. sudo npm install -g gets past it once, but leaves root-owned files that break later updates. Pointing npm at a folder you own fixes it for good:
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcIf you use Zsh (the default on macOS), replace .bashrc with .zshrc in the last two lines. Then run npm install -g @google/gemini-cli again without sudo. If you manage Node.js with nvm, this error does not happen, because nvm keeps global packages in your home folder.
Node.js Version Mismatch
If npm warns about engine requirements, or Gemini CLI fails right after install with syntax errors, your Node.js is older than 20. Check with node -v, then upgrade through nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install 22
nvm use 22On Windows, install the LTS build from nodejs.org, run winget install OpenJS.NodeJS.LTS, or with nvm-windows use the same nvm install 22 and nvm use 22. Close and reopen the terminal so the new Node.js is picked up, then run the npm install command again. Global packages are tied to a Node.js version under nvm, so after switching versions you need to install Gemini CLI once more.
Command Not Found After Installation
If the install finished but the shell answers zsh: command not found: gemini (or bash: gemini: command not found, or "The term 'gemini' is not recognized" in PowerShell), the npm global folder is not on your PATH. Find it with npm config get prefix, then add its bin folder to your shell:
export PATH="$(npm config get prefix)/bin:$PATH"Add that line to ~/.zshrc or ~/.bashrc to make it permanent and open a new terminal. On Windows, the npm global folder sits directly under the prefix (no bin); add it to your user PATH under System Properties > Environment Variables, then open a new PowerShell window.
The opposite problem is just as common after the Homebrew freeze: gemini is found, but gemini --version shows 0.46.0 even though you installed with npm. Run which gemini. If it points to a Homebrew folder such as /opt/homebrew/bin/gemini, the old formula is shadowing the npm copy; run brew uninstall gemini-cli, then hash -r, and check the version again.
Sign-In Errors: #3501, "No Longer Supported" and /auth
If the install works but the first prompt fails after a Google sign-in, the account is the problem, not the installation. Reports on the Gemini CLI issue tracker from July and August 2026 show personal accounts getting IneligibleTierError: This client is no longer supported for Gemini Code Assist for individuals... migrate to Antigravity, or #3501 "You do not have a valid license of this product" (HTTP 403, SUBSCRIPTION_REQUIRED). Antigravity #3501 "You Do Not Have a Valid License": 6 Causes explains which cause applies to your account. To switch to a working method, type /auth in the CLI and choose "Use Gemini API key" or "Vertex AI" after setting the variables from the authentication section.
Three other messages point to setup rather than accounts. "Please set an Auth method" means no login is configured for a headless run. "Gemini CLI is not running in a trusted directory" means a headless run needs --skip-trust or GEMINI_CLI_TRUST_WORKSPACE=true. HTTP 400 API key not valid means Google did not accept the key, usually because it was mistyped or has been deleted or revoked. Once you are signed in and requests go through, capacity errors are a different problem, covered in Gemini High Demand Error: What It Means and What to Do First.
Network and proxy issues show up as FetchError: request failed, reason: connect ETIMEDOUT during install or on the first request. A VPN, corporate firewall or proxy is blocking npm or Google's API. Set npm config set proxy http://your-proxy:port for the install and the HTTPS_PROXY environment variable for Gemini CLI itself; on a company network, ask for Google's API domains to be allowed. For HTTP errors from the API after that, Gemini API Error Troubleshooting: 429 RESOURCE_EXHAUSTED, 400/500 explains the general error classes.
Essential Configuration and Customization
Once Gemini CLI is installed and has a working login, a few minutes of configuration make it much more useful. The most useful file is GEMINI.md, which Gemini CLI reads at the start of every session as standing context. Put it in your project root and describe what the project is, how to build and test it, and the rules you want the agent to follow.
A practical GEMINI.md does not need to be long. Start with what the project does, the commands to build and test, and your coding standards:
# Project Context
This is a Next.js 14 application using TypeScript and Tailwind CSS.
## Commands
- `npm run dev` - Start development server
- `npm run build` - Production build
- `npm run test` - Run tests with Jest
## Code Standards
- Use TypeScript strict mode
- Prefer Server Components
- Follow existing patterns in /components/The global settings file at ~/.gemini/settings.json applies to all projects. It is where you set a preferred model, safety and sandbox defaults, custom slash commands and, if you prefer it to environment variables, the authentication method. Changes take effect the next time you start a session. Login variables can live in ~/.gemini/.env next to it, as described in the authentication section.
MCP (Model Context Protocol) servers connect Gemini CLI to outside tools and data, such as a database, GitHub or an issue tracker, so the agent can look up a schema or open a ticket instead of guessing. gemini mcp manages them from the command line, and gemini extensions, gemini skills and gemini hooks do the same for extensions, agent skills and hooks.
For teams, a shared GEMINI.md committed to the repository keeps the agent's behavior consistent across developers. Rules like "always write unit tests for new functions" or "use the repository's logger instead of console.log" then apply to every session, without extra tooling.
Your First Real Task with Gemini CLI
With installation, login and configuration done, open a terminal in a project folder and run gemini. A good first prompt is concrete: "Review this project's structure and identify potential issues or improvements." Gemini CLI scans the files and answers with suggestions tied to actual file names and lines, because it reads your code directly.
Next, give it a real change, for example: "Find all components in this project that use class components and convert them to functional components with hooks." The agent finds the files, proposes edits and asks for approval before each change. You can accept, reject or redirect it with a follow-up instruction, so you keep control of what lands in the codebase.
Multi-step chores are where it saves the most time. A prompt like "Add error handling to all API routes, including proper HTTP status codes and error logging" makes it work through each route, follow the patterns it finds, and pause for approval after each file. Once you trust the result on a project, --approval-mode auto_edit approves file edits automatically while still asking before shell commands; plan lets it propose a plan without changing anything.
Two habits make sessions more efficient. Use @ to point at specific files (@src/auth/login.ts) instead of letting the agent search, and start a task with one scoping sentence such as "I'm fixing a bug where login fails after a password reset; the code is in /src/auth/ and the tests in /tests/auth/." When the same context comes up every time, move it into GEMINI.md. On a paid key, /stats model shows how much each session used, which helps you judge what a typical task costs.
Summary and Next Steps
Installing Gemini CLI is still one command, npm install -g @google/gemini-cli with Node.js 20 or later, and it gives you 0.65.0 as of October 23, 2026. What changed in 2026 is everything around it: Homebrew is frozen on an old version, so npm is the path on every platform, and Google sign-in with a personal account, AI Pro or Ultra no longer works. Before you start the CLI, settle on a paid Gemini API key, Vertex AI, or your organization's Code Assist license, or move to Antigravity CLI if your access comes from a personal Google plan.
Keep your install current by running the npm install command again; stable builds arrive weekly, with preview and nightly channels if you want changes earlier. If something fails, the troubleshooting section covers permissions, Node.js versions, PATH problems, the Homebrew shadow copy and sign-in errors. The Gemini CLI repository on GitHub has release notes and the issue tracker.
If you also call other providers' models from your own scripts, aggregators such as laozhang.ai expose Gemini, GPT, Claude and other models through one API endpoint, which can help when you compare outputs across models. That is a separate setup from Gemini CLI's own login.
Disclosure: laozhang.ai is our own service. Its prices are platform pricing, not an independent comparison.
Sources7
External pages this guide links to, in the order they appear. Last updated Oct 23, 2026.
Sources7
External pages this guide links to, in the order they appear. Last updated Oct 23, 2026.
- 1.May 19, 2026 Google Developers Blog post on transitioning Gemini CLI to Antigravity CLIdevelopers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli
- 2.Gemini CLI GitHub READMEgithub.com/google-gemini/gemini-cli
- 3.Gemini CLI installation pagegeminicli.com/docs/get-started/installation
- 4.Gemini API available regions listai.google.dev/gemini-api/docs/available-regions
- 5.Gemini Code Assist consumer accounts pagedevelopers.google.com/gemini-code-assist/docs/deprecations/code-assist-individuals
- 6.Google AI Studio's API key pageaistudio.google.com/apikey
- 7.Gemini Code Assist deprecations pagedevelopers.google.com/gemini-code-assist/docs/deprecations





