Friday, December 4, 2026SubscribeMastheadAbout
Cali ReporterCalifornia · National · West Coast · Good News

Advertisement

Technology

Gemini API CLI Transition and Features

The transition from Google's gemini-cli to Antigravity CLI (agy) marks a significant shift in the developer tools landscape for AI agents. This change, effective June 18, 2026, introduces a two-track architecture for…

Portrait of Benjamin Boyce
Artificial Intelligence & Technology · December 2, 2026
Share

AI-generated editorial illustration from an imagined camera angle.
AI-generated editorial illustration from an imagined camera angle. Source image: dev.to.

The transition from gemini-cli to Antigravity CLI (agy) on June 18, 2026, is a pivotal moment for Google's individual developer CLI entry points. This change does not eliminate all gemini-cli modes or enterprise/paid API paths but rather introduces a two-track architecture. The agy serves as the Agent Brain & Host, managing reasoning, planning, file edits, and long-horizon coding tasks. Meanwhile, gemini-api functions as the Stateless Multimodal CLI Toolbox, exposing features like image generation, video generation, multi-speaker TTS, and server-side Managed Agents over shell primitives. This setup ensures that the CLI binary itself does not maintain hidden local chat history between runs, though the underlying Interactions API can still persist server-side interactions and resume via --previous-interaction-id (Dev.to, 2026-11-14). [1]

Installation of gemini-api is straightforward, with the CLI shipping as a standalone Go binary. On macOS or Linux, developers can use the official installer script to install it. The installation process may vary depending on the system, such as skipping /usr/local/bin on ts-m1 (Darwin / arm64) and installing to /Users/jimmyliao/.local/bin/gemini-api. Ensuring that $HOME/.local/bin is on the PATH is crucial for the CLI to function correctly. Standard authentication can be achieved through an environment variable or interactive configuration, though the latter stores secrets in the OS Keychain (Dev.to, 2026-11-14). [1]

The gemini-api CLI is specifically built for AI agents, addressing common issues like stale CLI flags and raw base64 media dumping. It avoids these pitfalls with machine-discoverable schemas and direct file I/O. The CLI allows developers to probe the documentation page via curl, and it supports introspection flags such as --usage, generate --schema, agent run --schema, and others. These flags help in agent self-discovery and provide a clear understanding of the available commands and their respective JSON schemas (Dev.to, 2026-11-14). [1]

The gemini-api CLI was verified on November 14, 2026, at 21:53 UTC+8 in Taipei, running on a macOS Apple Silicon (ts-m1) system. The specific version used was gemini-api 0.4.6, with additional documentation from a live Paid Tier run conducted on November 15, 2026, as noted in Section 7 of the source. The tool was developed to serve both international developers on Dev.to and the local Taiwan and APAC developer communities, particularly for GDE workshops. A 70-second walkthrough video is available on YouTube at the link https://youtu.be/Rb5ij419w2Y, and a 13-second highlight is accessible via YouTube Shorts at https://youtube.com/shorts/82-Z_Jq-ezQ. A Facebook Reel version is also available at https://www.facebook.com/reel/1484807533581243. The original Traditional Chinese version of the article was published on Substack at https://memo.jimmyliao.net/p/gemini-api-cli-part-1-agent-api. [1]

Advertisement

On June 18, 2026, Google transitioned gemini-cli consumer access for free personal accounts and Google AI Pro/Ultra (Google One) plans to the Antigravity CLI (agy). This change does not eliminate all gemini-cli modes or enterprise/paid API paths but restructures them into two tracks: agy (or Codex / Claude Code) as the Agent Brain & Host and gemini-api as the Stateless Multimodal CLI Toolbox. The gemini-api CLI is designed to expose image generation, video generation, multi-speaker TTS, music composition, transcription, and server-side Managed Agents through shell primitives. The official repository, google-gemini/gemini-api-cli, demonstrates how the CLI is intended to equip any shell-capable agent with Gemini models. The CLI is stateless, meaning it does not maintain hidden local chat history between runs, but the Interactions API can persist server-side interactions, resume via --previous-interaction-id, or run background jobs. [1]

The gemini-api CLI is distributed as a standalone Go binary. On macOS or Linux, it can be installed using the official installer script: curl -fsSL https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.sh | bash. After installation, the command gemini-api --version can be used to verify the installed version. On a ts-m1 (Darwin / arm64) system, the installer installed gemini-api at /Users/jimmyliao/.local/bin/gemini-api (v0.4.6; build timestamp 2026-11-11 02:46:39 Asia/Taipei). It is important to ensure that $HOME/.local/bin is on the PATH by running export PATH="$HOME/.local/bin:$PATH". In CI environments, it is recommended to pin GEMINI_VERSION as newer versions are tracked over time. [1]

A live verification run was conducted on November 15, 2026, using the project paid-media-project (Paid Tier) within tmux from 00:20:54 to 00:24:23 UTC+8 in Taipei. This run executed all eight steps of the §4.1 Reels pipeline, producing a final 9:16 video with burned-in bilingual subtitles using local ffmpeg 8.1. The total cost of the execution was calculated as $0.54853125 USD (~$0.5485), based on 8 paid calls and 4 read-only agent status polls. This run consumed 44,934 tokens (4,506 input + 35,407 output + 5,021 thought). The execution included models such as gemini-3.8-flash, gemini-nano-banana-2.1, gemini-omni-1.2-flash, gemini-3.8-flash-tts, lyria-3.5, and gemini-3.5-transcribe, all of which succeeded on the first call (Exit 0). The detailed cost breakdown and formulas are documented in experiments/06-live-execution-and-cost-log/cost-and-call-ledger.md, and the final output is available at examples/reels-storyboard-pipeline/output/final-reel.mp4. [1]

The transition from gemini-cli to Antigravity CLI (agy) on June 18, 2026, is a pivotal moment for Google's individual developer CLI entry points. Installation of gemini-api is straightforward, with the CLI shipping as a standalone Go binary. The gemini-api CLI is specifically built for AI agents, addressing common issues like stale CLI flags and raw base64 media dumping (Source ID: 1). [1]

Advertisement

The gemini-api CLI is designed as a stateless multimodal toolbox, exposing image generation, video generation, multi-speaker TTS, music composition, transcription, and server-side Managed Agents over shell primitives. The CLI binary itself does not maintain hidden local chat history between runs; however, the underlying Interactions API can still persist server-side interactions, resume via --previous-interaction-id, or run background jobs (Source ID: 1). [1]

AI agents routinely encounter issues such as stale CLI flags, dumping raw base64 media into context windows, or hanging forever on interactive prompts. gemini-api avoids these problems with machine-discoverable schemas and direct file I/O. The CLI supports both JSON and TOON structured output, with gemini-api v0.4.6 always emitting a JSON request envelope under --dry-run (Source ID: 1). [1]

Sources

Dev.to

Prepared with AI assistance from the cited sources.

The Cali Reporter newsletter

The stories worth your time.

California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.

By joining, you agree to receive the Cali Reporter newsletter. Unsubscribe at any time. Privacy policy.

More in Technology

Advertisement