Gemini API CLI

Google·Google.GeminiAPICLI

Call Gemini models and managed agents from any shell with a stateless command-line client.

Gemini models and managed agents for the agent you already use. Configure an API key, put gemini-api on PATH, and let your agent choose a model, generate an asset, analyze a file, or launch a managed agent to handle a task. - One binary for models, media, and managed agents: access text and reasoning models, multimodal file analysis, image, audio, music, and video generation, and managed agents from the command line. - Delegate long-running work: start a Gemini managed agent in the background, keep the returned interaction ID, and retrieve the result when needed. - Self-describing interface: commands, flags, request schemas, and machine-readable usage are built into the binary so an agent can inspect what it needs on the fly. - Safe dry-run validation: --dry-run validates inputs and prints the resolved HTTP request with credentials redacted. - Script- and agent-friendly output: stream text, write media directly to disk, emit structured JSON or compact TOON, or filter fields inline with --jq.

winget install --id Google.GeminiAPICLI --exact --source winget

Latest 0.5.1·December 2, 2026

Release Notes

Changelog

  • e2bb4b990310c710293a2a14bc2cd999d2c9483e chore(cli): bump CLI version to v0.5.1
  • 7bcd1ec3a317270db45d54da8e04dcae20c61baa feat(cli): make gemini-4-neon the default model
  • 721dbee6ab778cf174a43c33cebe2534dfa4c51f Remove unused binary wire codec in envruntime and introduce a common StreamClient interface
  • 3dcbb6e542c222dad1e6f5b6e43cb390561d0cca feat(cli): add install-skill to install the gemini-api-cli agent skill
  • 8c8dd8d4dad2001aea6da022cf7c3b403d3dccc3 feat(cli): add Interactions API long-decode continuation
  • 9f0d2c9f606d11480b50564185f9bc71c2576468 chore: update Speakeasy OpenAPI generator to v2.965.1
  • 52636d17498a3f04d7e9f9115537f4b4e13df1a6 docs: describe Interactions API operations in plain words instead of RPC names
  • ff27df6ff109f56c4dcb46ed85d23124515f9e34 chore: remove deprecated deep-research-pro-preview-12-2025 from Interactions AgentOption

Installer type: zip

x64—14C4D05C9DC998583B26FF19A997644504C54AB92A6927937520B37DDDC231EB
arm64—9E035B85D7437F661532814E153E9477E7DFC7BEB493A78A2AF7D3710048CF70

Details

Homepage
https://github.com/google-gemini/gemini-api-cli
License
Apache-2.0
Publisher
Google
Support
https://github.com/google-gemini/gemini-api-cli/issues
Privacy Policy
https://policies.google.com/privacy

Tags

agentaiapiaudio-generationimage-generationllmmanaged-agentsmusic-generationtext-to-speechtranscriptionvideo-generation

Older versions (2)

0.5.0
x64—D2BC738FB8C83F663E1FCA5E3382876DCBDE54880C7375CFCB49351298B264EC
arm64—A64DF8F4B0EC394DE4A42B8BE96831942EC850463AACC77D41C6B04F07AF2963
0.4.6
x64—5413073270920FBB25B3E6C8A55D4612721D3048D0B85B833978934D198666EF
arm64—2FB8D9A2294B53D7E79D45665CC222A6843A177575FD97D124DC191342721667