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-cli4gemini-cli3migration6cliautomation42

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

Editor View2026-05-03
Gemini CLI vs Antigravity: When to Use Which (2026 Field-Tested Verdict)
After running Gemini CLI and Antigravity in parallel for six months across real solo-dev projects, here's a concrete framework for which tool fits which task — with code examples, cost realities, and decision rules.
Editor View2026-05-01
Polishing Your Antigravity Workflow with tasks.json and launch.json
A practical guide to writing real-world tasks.json and launch.json files in Antigravity, drawn from the configurations I keep returning to in my own indie projects—covering build chains, debug compounds, AI-driven task automation, and the traps I have hit along the way.
Editor View2026-03-10
VS Code × Antigravity Migration Guide — Seamlessly Transition Your Dev Environment to an AI IDE
A complete guide to migrating from VS Code to Google Antigravity. Learn how to transfer settings, extensions, keybindings, and effectively use both editors together.
📚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 →