ANTIGRAVITY LABJP
Articles/Antigravity Basics
Antigravity Basics/2026-05-23Intermediate

Moving to the Antigravity CLI (agy): Shifting Your Scripts Off Gemini CLI Before the June 18 Shutdown — Without Downtime

A grounded walkthrough of Google's Antigravity CLI (agy): fastest setup, a no-downtime migration off Gemini CLI, a compatibility shim, the Pro vs Ultra cost break-even, and running recurring work with scheduled messages — based on actually moving my own repos across.

Antigravity319Antigravity CLI12agy3Gemini CLI12TUIMigration4

Premium Article

June 18, 2026. Ever since I wrote that date in my notebook, a small clock has been ticking in the back of my mind. The personal Gemini CLI / Code Assist IDE extensions reach end of life that day, and the automation scripts I run every morning will quietly stop working on their old foundation.

The new Antigravity CLI — a short little command called agy that hooks your terminal up to Antigravity 2.0 — is the destination for that migration. It inherits a lot from Gemini CLI, but the auth flow, the slash commands, and even where its config lives are different enough that I had to pause and re-read the docs a couple of times on the first run.

This post walks through what to install, how to authenticate, and — most importantly — how to move scripts that cannot stop before June 18. I write from the perspective of an indie developer running several repositories in parallel. When a migration has a deadline, my own approach is never to scramble in the final week and break things; it is to quietly grade the ground two weeks ahead.

Pick the Right Installer: Antigravity 2.0 vs Antigravity IDE

agy is a single binary, but before you can use it you need to authenticate through one of the Antigravity desktop products. Skip that thought and you end up with the wrong app and a confused half-hour.

Two products to keep straight:

  • Antigravity 2.0 — a "command tower" for running multiple local agents in parallel. It groups conversations by project, lets you operate across workspaces, and exposes scheduled messages for routine tasks. It also ships with Chrome DevTools for agents bundled in.
  • Antigravity IDE — a fully-featured agent IDE with an agent manager and an artifacts panel. It reads your codebase deeply and feels closer to a traditional editor.

If you reflexively reach for Antigravity 2.0 expecting "the new IDE," you install the orchestration desktop app instead. I lost about five minutes wondering why my IDE looked nothing like a code editor. If your goal is to write code through the CLI, install Antigravity IDE first so the OAuth handshake completes against the right surface. Save Antigravity 2.0 for when you genuinely need several agents running in parallel.

Installing agy and the Settings I Lock In First

On macOS, the official one-liner is enough:

curl -fsSL https://antigravity.google/cli/install.sh | bash

Open a new shell, type agy, and the first boot walks you through theme and auth. Pick Google OAuth on a personal account, click the link it prints, accept the data-sharing terms, and you are done. Unlike Gemini CLI, there is no API key to drop into .env.

The settings file lands at ~/.gemini/antigravity-cli/settings.json. You can edit it from inside agy with /config or /settings, but I prefer to lock in a safe baseline on day one rather than fix things one at a time later:

{
  "colorScheme": "tokyo night",
  "editor": "vim",
  "enableTerminalSandbox": true,
  "model": "Gemini 3.5 Flash (High)",
  "notifications": true,
  "permissions": {
    "allow": ["command(git)", "command(npm test)", "command(npm run build)"],
    "deny": ["command(rm -rf)", "command(git push --force)"]
  },
  "runningLightSpeed": "fast",
  "trustedWorkspaces": []
}

rm -rf and git push --force sit in the deny list because I sometimes point agy at the repositories behind apps that are live on the App Store and Google Play. With shipped code, a single agent action can become irreversible. Start from the smallest set of allows and add on demand — that alone shrinks the population of possible accidents.

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
A compatibility shim that keeps every existing automation script running on agy through the June 18 Gemini CLI shutdown — without editing the scripts themselves
How to reason about the Pro ($20/mo) vs AI Ultra ($100/mo, ~5x limits) break-even from your own monthly task volume
Concrete steps for permission design (request-review / always-proceed / strict) and scheduled messages so recurring work automates safely
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

Antigravity2026-06-14
A Compatibility Shim That Bridges Old Scripts to agy Before Gemini CLI Shuts Down
Ahead of the June 18 Gemini CLI shutdown, instead of rewriting every gemini call scattered across cron and CI at once, a thin compatibility shim can bridge them to the Antigravity CLI (agy). Here is the approach with working shell scripts.
Antigravity2026-06-12
Six Days Until Gemini CLI Shuts Down — Auditing Automation Dependencies and Migrating to Antigravity CLI
With Gemini CLI ending on June 18, here is a practical walkthrough for finding gemini command dependencies hiding in cron, CI, and shell scripts, then migrating and verifying them on Antigravity CLI.
Antigravity2026-06-28
Antigravity and Gemini CLI — Why the June 2026 Sunset Changed the Comparison
Gemini CLI's consumer offering ended on June 18, 2026, and its terminal role passed to the Go-based Antigravity CLI. With the premise changed, here is how the two design philosophies differ and what to check before you migrate.
📚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 →