G
google-gemini/gemini-api-cli★ 4,861 · Go
A stateless Go CLI for Gemini models, media, and managed agents via the shell
Apache-2.0 · Commercial Friendlyv0.5.1
Side-by-side 2026 comparison in Coding, Skills & MCP: headroomlabs-ai/headroom leads in total GitHub adoption (★ 81.5k), while google-gemini/gemini-api-cli shows stronger 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
A stateless Go CLI for Gemini models, media, and managed agents via the shell
Local context compression for LLMs via a Python library, proxy, and MCP server
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | google-gemini/gemini-api-cli | headroomlabs-ai/headroom |
|---|---|---|
| Total GitHub Stars | ★ 4,861 | ★ 81,468 |
| 24h / 7d Velocity | +44 / +613 | +43 / +455 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 91/100 | A+ · 96/100 |
| Deployment Signals | CLI · API | Docker · Self-Hosted · Local AI · CLI · MCP · API |
| Primary Language | Go | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated today | Updated today |
| Latest Release | v0.5.1 | v0.45.0 |
| Best For | Teams extending an existing shell-capable agent or CI job with document analysis, media generation, transcription, or background Gemini tasks | Coding agents and LLM applications where repeated JSON tool results, logs, or search hits dominate input tokens, especially when you need recoverable originals or a common preprocessing layer across clients |
--usage emits KDL with the command tree, defaults, environment variables, and config keys; --schema emits bundled JSON Schema draft 2020-12.--dry-run validates flags and bodies and previews the resolved HTTP request with credentials redacted, without network or OS keychain access.--jq filtering, and agent-mode JSON errors on stderr; exit codes distinguish usage, auth, and runtime/API failures.curl -fsSL https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.sh | bash
headroom_retrieve within the configured TTL.compress() settings show 21–57% fewer input tokens across four scenarios.pip install headroom-aiSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy