A step-by-step guide to setting up Google's powerful Gemini AI directly in your command line — completely free.
Fully open-source and community-driven, built for transparency and extensibility.
Designed from the ground up for developers who live and breathe the command line.
Backed by Google's latest Gemini models for state-of-the-art AI performance.
Gemini CLI is an open-source AI agent that brings the power of Google's Gemini models directly into your terminal. It's designed for developers who live in the command line, offering a lightweight and direct path from your prompt to the AI model.
Generous rate limit for rapid iteration and development workflows.
Use your personal Google account to unlock the free daily quota.
Gemini CLI transforms your terminal into an intelligent assistant — capable of writing code, answering questions, summarising files, and executing complex tasks, all without leaving your workflow.
Free tier rate limit
Personal Google account
Industry-leading context window
Before installing Gemini CLI, ensure your environment meets the minimum specifications. A quick check now saves troubleshooting time later.
Run through these three checks before proceeding to installation. Most modern developer machines will already meet these requirements.
macOS 15+, Windows 11 24H2+, or Ubuntu 20.04+. Ensure your OS is fully up to date before proceeding.
Minimum 4 GB RAM for casual use. For power users working with large codebases, 16 GB+ RAM is strongly recommended.
Node.js version 20.0.0 or higher is required. Use node -v in your terminal to check your current version.
Bash, Zsh, or PowerShell supported. A stable internet connection is essential for both installation and ongoing operation.
All three major operating systems are fully supported. Check your version in System Settings before continuing.

Choose the method that best suits your needs. For most users, the global npm install is the recommended approach for day-to-day use.
npxThis is the fastest way to try Gemini CLI without committing to a permanent installation — perfect for a quick test drive.
Launch your preferred shell — Terminal on macOS/Linux, or PowerShell on Windows.
Enter the following command and press Enter:npx https://github.com/google-gemini/gemini-cli
Follow the on-screen prompts to sign in with your personal Google account and authorise access.
Once authenticated, type your first prompt and Gemini CLI will respond directly in your terminal.
Installing Gemini CLI: Your Free Gateway to AI in the Terminal