Google open-sources stateless gemini-api CLI for AI agents
Google open-sourced gemini-api, a stateless, dependency-free command-line client intended for AI agents, scripts and CI workflows to call Gemini capabilities. According to Google, the Go-based single-file tool supports text and multimodal generation, file analysis, audio and video transcription, media generation and hosted agents. Google lists compatibility with Antigravity, Claude Code, Codex, Cursor, OpenClaw and Hermes. It runs on macOS, Linux and Windows and uses the Apache 2.0 license. Authentication can use an API key, including one obtained from Google AI Studio, or a Google Cloud OAuth access token. The repository and binary are referred to as both gemini-api and gemini-api-cli in the reports.
The tool gives agents, scripts and CI workflows a command-line route to Gemini models and multimodal features. Its on-demand command and schema lookup, file-based media outputs and lack of local session state are designed to reduce host-agent context overhead.
大家好,我是二哥呀。
Gemini 4 Neon 的实力已经毋庸置疑,甚至连 Antigravity APP 最近都好用了起来。
甚至的甚至,反重力的皮肤也开始火起来了,虽然官方还不支持。
当然,如果你已经习惯用 Claude Code、Codex 或者 Pi,不想用反重力,但又想用 Gemini 4 Neon,那还可以通过 gemini-api 来接入。
它把 Gemini 4 Neon 等模型、生图配音、长文档解析和云端托管 Agent 全打包成了一个单文件命令,放到系统路径里,你原来的 Agent 就能在终端里随时喊 Gemini 过来打下手。
#Google#gemini-api CLI#Gemini#Antigravity#Claude Code#Codex#Cursor#OpenClaw#Hermes#Google AI Studio