Gemini API CLI Pricing
| Plan | Price | Notes |
|---|---|---|
| Open source CLIofficial source ↗ | $0checked 2026-10-24 | Apache-2.0; prebuilt binaries for macOS, Linux and Windows, install script or go install; beta, breaking changes possible |
| Gemini API usage (free tier or pay as you go)official source ↗ | Usage-basedchecked 2026-10-24 | Requests use your Gemini API key and follow Gemini API free-tier limits or paid-tier rates; some models, such as Gemini 4 Argon, are not on the free tier |
structured from cited official pricing sources: “The CLI is free and open source under the Apache License 2.0. It calls the Gemini API with your own API key (GEMINI_API_KEY from Google AI Studio), so requests are billed, or count against free-tier limits, at standard Gemini API rates for the models and agents you use; see the Gemini API pricing page.”
Self-hosting cost
Gemini API CLI is open source. Self-hosting does not add a software license fee, but you still pay for infrastructure, operations, and any external model or API usage.
Free & cheaper Terminal & CLI Tools
same category, free plan or open-source license
FAQ
How much does Gemini API CLI cost?
The CLI is free and open source under the Apache License 2.0. It calls the Gemini API with your own API key (GEMINI_API_KEY from Google AI Studio), so requests are billed, or count against free-tier limits, at standard Gemini API rates for the models and agents you use; see the Gemini API pricing page.
Does Gemini API CLI have a free plan?
Yes — Gemini API CLI is open source and free to use.
Can you self-host Gemini API CLI for free?
Gemini API CLI is open source. Self-hosting does not add a software license fee, but you still pay for infrastructure, operations, and any external model or API usage.
What are free or cheaper Gemini API CLI alternatives?
Claude Code, Ghostty, Warp are in the same category with a free plan or open-source license.
pricing is editorial catalog data (last verified October 24, 2026) — vendors change plans; confirm on the official site before you buy. Reuse this data under CC-BY 4.0 via /data.