Install Gemini CLI
Google's open-source AI agent for the terminal
Gemini CLI brings Google's Gemini models into your terminal for coding, research, and automation, with a generous free tier for individual developers.
Install on macOS
npm install -g @google/gemini-cliOther install methods
npx (no install)
npx @google/gemini-cliHomebrew (macOS)
brew install gemini-cliInstall on Windows
npm install -g @google/gemini-cliOther install methods
npx (no install)
npx @google/gemini-cliHomebrew (macOS)
brew install gemini-cliInstall on Linux
npm install -g @google/gemini-cliOther install methods
npx (no install)
npx @google/gemini-cliHomebrew (macOS)
brew install gemini-cliRun it
geminiVerify the install
gemini --versionBefore you start
Requires Node.js 18+. You can also run it without installing via npx @google/gemini-cli.
Official documentation: Gemini CLI on GitHub
Frequently asked questions
Is Gemini CLI free?
It offers a free tier for individual developers when you sign in with a personal Google account. Higher limits are available with an API key or paid plan.
Can I run it without installing?
Yes — npx @google/gemini-cli runs the latest version without a global install.
Which Node version do I need?
Node.js 18 or later.
Gemini and Google are trademarks of Google LLC. cli-install.com is an independent resource and is not affiliated with or endorsed by the trademark owner.