One npm package, four auth paths
Gemini CLI ships as @google/gemini-cli (open source, Apache 2.0). After install, gemini is on your PATH. Four auth options: OAuth via Google Account (free tier — 60 req/min, 1,000/day on Gemini 2.5 Flash via the gemini-cli loginflow), API key via GEMINI_API_KEY (Google AI Studio key, pay-as-you-go), Vertex AI via GOOGLE_GENAI_USE_VERTEXAI=true + GCP project (enterprise routing), Gemini Code Assist (paid Google Workspace integration with elevated quotas).
The free tier is the standout — Google ships a meaningful free quota for individual developers, with the same model that powers paid usage. Prototyping doesn't require a credit card.