google-gemini

    google-gemini/gemini-api-cli

    An (experimental) CLI for the Gemini API

    494 stars
    77 forks
    7 GitHub watchers
    Updated Nov 10, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest today, with 10 contributors on GitHub.

    Use Cases & Benefits

    • Provides a stateless CLI to access Gemini API models, media generation, file analysis, and managed agents via shell commands.
    • Unifies diverse Gemini API capabilities into a single binary with self-describing commands and safe dry-run validation for seamless agent integration.
    • Use for automating creative asset generation like images, voiceovers, music, and video within coding agent workflows.
    • Use for analyzing documents, transcribing audio/video, and extracting insights from multimedia files in assistant tools.
    • Use for launching and managing background Gemini managed agents to delegate multi-step research or coding tasks.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Gemini models and managed agents for the agent you already use.

    Give Codex, Claude Code, Antigravity, OpenClaw, Hermes, or any other agent with shell access the ability to use the Gemini API. 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.

    Your agent plans the work. Gemini provides models and managed agents. This stateless CLI connects them through standard shell commands:

    A prompt goes in. An image lands in your project. Your agent gets the file path and keeps building. The same binary can return an analysis, a voiceover, a transcript, or the interaction ID of a background managed-agent run.

    A coding agent building an app may need a hero image, a voiceover, a second opinion on a design, or an answer inside a PDF. An assistant may need to turn a recording into captions or delegate multi-step research. Give that agent gemini-api and an API key, and it can call those capabilities directly when the task requires them.

    Built for headless use by coding agents and assistant tools, with the same interface available to shell scripts and CI jobs. A single Go binary runs on macOS, Linux, and Windows.

    Excerpt from the google-gemini/gemini-api-cli README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Nov 11: +4

    +22 stars over 3 days across 3 snapshot days; best day +4 on Nov 11.

    Forks

    77+4

    Open issues

    45+4

    Compared with peers in CLI

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    google-gemini/gemini-api-cli compared with CLI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    morluto/rea450.0K+22.9K7516 days ago
    mattpocock/skills320.9K+9.5K7512 days ago
    vercel-labs/agent-desktop21.4K+8.7K755 days ago
    stablyai/orca121.4K+6.7K75today
    vercel-labs/agent-browser49.2K+3.8K751 day ago
    google-gemini/gemini-api-cli494—75today
    Category median121.4K+8.7K75—

    Also by google-gemini

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description