{"slug": "gemini-cli-is-dead-fix-your-antigravity-cli-migration", "title": "Gemini CLI Is Dead: Fix Your Antigravity CLI Migration", "summary": "Google's Gemini CLI stopped serving requests on June 18, forcing users with free accounts to migrate to the closed-source Antigravity CLI. The new tool lacks headless mode and a CI GitHub Action, breaking unattended workflows. Enterprise users on paid licenses are unaffected.", "body_md": "Gemini CLI stopped serving requests on June 18. If you woke up to broken CI pipelines, failed cron jobs, or automation scripts that suddenly couldn’t authenticate, Google’s forced migration to Antigravity CLI is your culprit. The replacement is faster, written in Go, and closed-source — and it’s missing a feature that every unattended workflow depends on.\n\n## Who Actually Needs to Migrate\n\nThis is where Google’s announcement buries the lede. If you use Gemini CLI with a free Google account, Google AI Pro, or Google AI Ultra, your access ended June 18. You need to switch to Antigravity CLI now.\n\nIf you’re on a Gemini Code Assist Standard or Enterprise license, or using a paid Gemini API key directly, nothing changed for you. You still have Gemini CLI access and can keep using it. The migration is optional and you can ignore most of this post.\n\nMost individual developers fall into the first group. Most enterprise teams fall into the second.\n\n## How to Migrate (The Part That Actually Works)\n\nThe migration is three commands and four manual audits. Start with the install:\n\n``` python\ncurl -sSL https://get.antigravity.dev | sh\nagy auth login\nagy plugin import gemini\n```\n\nThe first command installs the Go binary. The second authenticates via browser OAuth — you must do this on a machine with a browser, not a server. The third migrates your Gemini CLI extensions into Antigravity plugins automatically, though workspace skill folders and inline MCP config in `settings.json`\n\nneed to be moved manually since their canonical locations changed.\n\nAfter that, audit your scripts for four breaking changes:\n\n**Rename the environment variable.**`GEMINI_API_KEY`\n\nis now`AV_API_KEY`\n\n. Every script, dotfile, and CI secret that sets the old variable is broken.**Default model changed.** Antigravity CLI defaults to`gemini-3-pro`\n\ninstead of`gemini-1.5-flash`\n\n. If your scripts relied on the lighter model for cost or speed, update the`--model`\n\nflag explicitly.**Exit codes are stricter.** Antigravity CLI returns non-zero exit codes on tool-use failures. If your CI scripts check exit codes, they may now fail on things that previously passed silently.**The state directory moved.**`~/.gemini/`\n\nis now`~/.antigravity/`\n\n. Any paths hard-coded in scripts or configs need updating.\n\n## The Problem Nobody Is Documenting: Headless and CI\n\nHere’s the thing Google isn’t saying clearly: Antigravity CLI has no headless mode, and no drop-in replacement for the `google-github-actions/run-gemini-cli`\n\nGitHub Action that many teams were using in CI.\n\nGemini CLI authenticated in headless environments by reading an environment variable — no browser needed, no OAuth flow. Antigravity CLI requires a browser OAuth session on first run. That’s fine on a developer laptop. It’s a hard blocker on a headless server, in a Docker container, or inside a GitHub Actions runner.\n\nThere’s a second issue that’s nearly impossible to find in the docs: `agy --print`\n\n(the flag for non-interactive output) drops the final response from stdout when run under a non-TTY. The tool changes behavior based on whether a human is watching the terminal. That behavior is fatal for unattended pipelines and barely mentioned officially. [The New Stack’s feature comparison](https://thenewstack.io/gemini-cli-antigravity-replacement/) has the clearest breakdown of what’s missing at launch.\n\nGoogle’s own [comparison page](https://cloud.google.com/blog/topics/developers-practitioners/choosing-antigravity-or-gemini-cli) lists headless mode as a Gemini CLI advantage with no Antigravity equivalent. If your workflows depend on this, hold off on migrating that part of your stack. The feature is on the roadmap but has no committed shipping date.\n\n## On the Open-Source Question\n\nGemini CLI was Apache 2.0 with 105,000 GitHub stars and contributions from more than 6,000 developers. Antigravity CLI is a closed-source Go binary. Google accepted thousands of community pull requests, pointed to community growth as evidence of success, then moved individual users to a proprietary replacement built on top of that community work.\n\nThe Linux Foundation flagged this exact pattern at Open Source Summit North America 2026. The [Hacker News thread on the transition](https://news.ycombinator.com/item?id=48222529) is titled “Google’s Antigravity bait and switch.” The reaction is proportionate. Free tier request limits also dropped from roughly 1,000 per day to approximately 20.\n\nAntigravity CLI is genuinely faster (Go binary versus Node.js startup) and supports async agent workflows that don’t block the terminal. The capability improvement is real. The way Google handled the transition is not a model to follow.\n\n## Bottom Line\n\nIf you use Gemini CLI interactively on Pro or free, migrate now: three commands, four env variable audits, done. If you use Gemini CLI in headless or CI environments, do not migrate yet — Antigravity CLI will break those workflows and there is no supported workaround at launch. If you’re on Code Assist Enterprise, this doesn’t affect you.\n\nThe [official Google migration announcement](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/) covers the basics. For what’s actually missing, the [New Stack comparison](https://thenewstack.io/gemini-cli-antigravity-replacement/) is the most complete public resource right now.", "url": "https://wpnews.pro/news/gemini-cli-is-dead-fix-your-antigravity-cli-migration", "canonical_source": "https://byteiota.com/gemini-cli-is-dead-fix-your-antigravity-cli-migration/", "published_at": "2026-06-21 10:07:55+00:00", "updated_at": "2026-06-21 10:11:50.878331+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "ai-products", "ai-infrastructure"], "entities": ["Google", "Gemini CLI", "Antigravity CLI", "GitHub Actions", "Gemini Code Assist", "Google AI Pro", "Google AI Ultra"], "alternates": {"html": "https://wpnews.pro/news/gemini-cli-is-dead-fix-your-antigravity-cli-migration", "markdown": "https://wpnews.pro/news/gemini-cli-is-dead-fix-your-antigravity-cli-migration.md", "text": "https://wpnews.pro/news/gemini-cli-is-dead-fix-your-antigravity-cli-migration.txt", "jsonld": "https://wpnews.pro/news/gemini-cli-is-dead-fix-your-antigravity-cli-migration.jsonld"}}