ANTIGRAVITY LABJP
Articles/Editor View
Editor View/2026-06-15Intermediate

From Gemini CLI to Antigravity CLI: A Working Record of the June 18 Migration

On June 18, Gemini CLI and the Code Assist extension stop serving individual users. Here is my actual record of moving to the Go-based Antigravity CLI: what broke, the command mapping, and the auth and quota traps I hit.

antigravity-cli9gemini-cli5migration13cli7automation83

Premium Article

Scrolling back through my shell history, I found that the gemini command had sunk deeper roots into my scripts than I expected. Tidying article drafts, drafting commit messages, generating release-note skeletons for several apps. Each is a tiny automation, but if they stop, the day's operations quietly stall.

That gemini stops working for individual users on June 18. Gemini CLI and the Gemini Code Assist IDE extension end request processing on the free tier, AI Pro, and Ultra alike, redirecting to a Go-rewritten Antigravity CLI. When I read the notice, the first thing I did was measure the blast radius by hand. This is the record of that migration.

Inventory what actually breaks first

The first step in any migration is not learning the new tool, but knowing precisely what currently depends on gemini. As an indie developer running apps and four blogs in parallel, my call sites are scattered.

The inventory is a single grep.

# Sweep repos and home dotfiles for gemini dependencies
rg -n --hidden -g '!.git' \
  -e '\bgemini\b' \
  -e 'code-assist' \
  -e 'GEMINI_API' \
  ~/repos ~/.zshrc ~/.config 2>/dev/null \
  | grep -vE '@google/generative-ai|gemini-1\.5|gemini-2' \
  | tee ~/gemini_cli_usage.txt
wc -l ~/gemini_cli_usage.txt

Excluding @google/generative-ai (SDK-based API calls) is the key. What is ending is the CLI and the IDE extension, not the Gemini API itself. Code that hits models through the SDK is out of scope. Draw that line first, or the migration scope balloons needlessly.

In my case, the real dependencies came to eleven sites: six shell functions, three CI steps, two editor task definitions. Fewer than I feared, and I relaxed a little right there.

Install and confirm a first round trip

The Antigravity CLI ships as a binary called agy. Being a single Go binary, it almost never trips on dependency resolution the way the old Node global package did.

# Install (official installer)
curl -fsSL https://antigravity.google/install.sh | sh
 
# Put it on PATH and confirm connectivity
export PATH="$HOME/.antigravity/bin:$PATH"
agy --version
agy auth login          # opens a browser, authorize with your Google account
agy "compute 1 + 1 and return only the result"

If that last line answers back, you have connectivity. agy auth login opens a browser and stores a token under ~/.antigravity/. If you used to keep GEMINI_API_KEY in an environment variable, note that the mechanism changes here. More on that below.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
Concrete steps to rewrite Gemini CLI dependent scripts and CI calls for the Antigravity CLI
A mapping from old commands to agy subcommands, plus the auth and quota pitfalls I actually hit
Startup-time numbers I measured on my own machine, and how to decide whether to migrate now or wait
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Integrations2026-06-19
From Gemini CLI to Antigravity CLI: Migrating Without Stopping Your Automation
Gemini CLI has been retired and the Go-rewritten Antigravity CLI is now its successor. If you have the CLI wired into CI or scheduled jobs, swapping everything at once will break your automation. Here is a concrete plan for migrating gradually, from parallel testing to full cutover.
Integrations2026-06-18
On Cutover Day to the Antigravity CLI, Verify Production Automation by Side-Effect Equivalence, Not Output
On the day you switch from the Gemini CLI to the Antigravity CLI, verify production automation by the equivalence of side effects — files written, commits, network calls — instead of matching stdout. A sandbox parallel run and a go/no-go cutover gate, with implementation steps.
App Dev2026-06-15
Before Gemini CLI Shuts Down (June 18): Audit Every Hidden Dependency Before Moving to Antigravity CLI
When Gemini CLI shuts down on June 18, the things that actually break are not in your terminal—they're the gemini calls buried in CI, git hooks, and cron. Here's how to surface every reference, validate with a dry run, and design a rollback before you cut over.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →