Gemini API CLI (gemini-api) released in beta for coding agents, scripts and CI
Google released gemini-api, an open-source, stateless, zero-dependency command-line client for the Interactions API, built for coding agents, scripts and CI. It generates text and media, analyzes files and runs Gemini managed agents. It is in beta, and minor versions can break.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingThis is an optional beta tool that lets your coding agents and CI jobs call Gemini without adding SDK code. It can break between minor versions, so keep it out of critical pipelines unless the version is pinned.
Engineer
What to change, what breaks, what to test Worth knowingIf your agents or CI need Gemini media generation, file analysis or managed agents from the shell, try gemini-api with GEMINI_API_KEY, -o json and --agent-mode. Pin a release version: the beta allows breaking changes between minor versions.
General consumer
Using the Gemini app, not the API No impactNothing to do — this is a developer command-line tool and does not change the Gemini app.
Google released the Gemini API CLI, gemini-api, in beta on October 27, 2026. It is a stateless, zero-dependency command-line client that runs every command against the Interactions API, so a coding agent, shell script or CI job can generate text and media, analyze files, and launch Gemini managed agents (for example a background Deep Research run) without adding an SDK to the project. It authenticates with GEMINI_API_KEY.
It is separate from the interactive Gemini CLI (@google/gemini-cli): gemini-api is an API client meant to be called from inside any agent, including third-party ones.
Its agent-oriented design: --usage and --schema print the command tree and request schema offline; media commands write files to disk and print only the path; --dry-run previews the HTTP request with credentials redacted; -o json and --agent-mode give machine-readable output and structured errors; commands never prompt unless --interactive is passed; and multi-step work is chained explicitly with --previous-interaction-id.
The guide says it is an open-source beta and breaking changes can occur between minor versions, and recommends pinning a release version in automated agent environments and CI.
Topics: Agents and tool use