Google shipped google-gemini/gemini-api-cli v0.5.0 (Apache 2.0 single Go binary for macOS, Linux, and Windows). The release promotes gemini-4-hydrogen to the default model, adds gemini-4-carbon, gemini-omni-1.2-flash, and XHIGH / xhigh thinking levels, introduces self-hosted BYOS environments mode with split poller/worker lease tokens, wires Tool Retrieval schemas, and onboards the voices command group alongside expressive TTS controls.
gemini-cliUnlike google-gemini/gemini-cli, which acts as an interactive terminal coding agent with its own conversation loop, gemini-api is intentionally stateless and agent-agnostic. It gives any coding agent with shell access—Google Antigravity, Claude Code, Codex, OpenClaw, Hermes, or CI pipelines—immediate access to Gemini models, media generation, file analysis, and background managed agents without maintaining custom Python or TypeScript glue scripts.
| Subsystem | What Shipped in v0.5.0 | Primary Builder Impact |
|---|---|---|
| Default & Frontier Models | gemini-4-hydrogen set as default; gemini-4-carbon & gemini-omni-1.2-flash added to Interactions enum; XHIGH / xhigh added to ThinkingLevel |
Headless scripts inherit Gemini 4 Hydrogen speed and reasoning by default while accessing Carbon and Omni 1.2 Flash cleanly |
| Self-Hosted BYOS Environments | CreateEnvironmentRequest.env, system_instruction, custom_config, environment_key, connect / poll / serve, antigravity-preview-09-2026 |
Run Gemini managed agents inside private VPCs, Kubernetes Agent Substrate Pods, Docker/Podman, or Cloudflare Sandboxes over outbound HTTPS |
| Interactions & Tool Retrieval | tool_search types, function result schemas, and static file processing options exposed in SDKs and CLI |
Matches November 19 Interactions API v1beta Tool Retrieval launch directly from shell-driven workflows |
| Voices & Expressive TTS | New voices command group (create, list, get, delete), TTS --style, --voice-prompt, and SpeechConfig.text_normalization |
Automate custom voice design, multi-speaker narration, and clean number/date verbalization in CI asset pipelines |
--schema, and Redacted --dry-run--agent-mode): Setting --agent-mode or GEMINI_CLI_AGENT_MODE=1 routes structured JSON error envelopes to stderr and compact Token-Oriented Object Notation (TOON) to stdout, trimming token waste when a host agent inspects CLI responses.gemini-api image --schema or gemini-api agent run --schema dumps the exact Interactions API JSON schema so host agents inspect capabilities at runtime and pass custom payloads via --body @payload.json.--dry-run validates parameters locally and prints the resolved HTTP request with credentials redacted—without touching the OS keychain or making an API request.