NewsAI & DevelopmentDeveloper Tools

Gemini CLI Dies June 18: Migrate to Antigravity CLI Now

Terminal split-screen showing gemini CLI being replaced by agy (Antigravity CLI) with blue and white ByteIota brand colors
Gemini CLI shuts down June 18, 2026. Migrate to Antigravity CLI (agy) before the deadline.

Google is shutting down Gemini CLI on June 18 — nine days from now. Free, Pro, and Ultra users lose access when the cutover happens. The replacement is Antigravity CLI (agy), a closed-source Go rewrite announced at I/O 2026. It keeps most of what you know but breaks four things quietly, including one that fails with zero error output. If you have CI pipelines or shell scripts calling gemini, they stop working on that date. The migration takes 15 minutes. Not doing it costs more.

Who Needs to Act

If you use Gemini CLI through a personal Google account — free, AI Pro, or AI Ultra — you must migrate before June 18. If your organization is on a Gemini Code Assist Standard or Enterprise license, you are exempt and nothing changes on your end.

Everyone else: the clock is running.

The Four Breaking Changes

Antigravity CLI is not a rename. It is a closed-source rewrite in Go — new binary (agy), new config layout, and four behavioral differences that will break existing setups:

  • Default model: Gemini CLI defaulted to gemini-1.5-pro. Antigravity defaults to gemini-3-pro. Scripts tuned to the old model’s speed and cost profile will behave differently.
  • Streaming format: The old --stream flag emitted plain text deltas. Antigravity emits SSE-formatted events. Any script parsing streaming output breaks.
  • State directory: Agent state moved from ~/.gemini/agents/ to ~/.antigravity/agents/. Your existing agent state is not automatically migrated.
  • Exit codes: Gemini CLI exited 0 on tool-use failures. Antigravity exits non-zero. CI pipelines that relied on silent success behavior now fail loudly — or halt entirely if you have set -e.

The Silent Failure You Must Not Miss

The MCP configuration change is the most dangerous part of this migration, because it fails with no error output.

Gemini CLI stored MCP server configuration inline in settings.json using a field called url. Antigravity CLI uses a separate mcp_config.json file, and the field is now called serverUrl.

Here is what the same server entry looks like in each tool:

Gemini CLI (settings.json)

{
  "mcpServers": {
    "my-server": {
      "url": "https://my-mcp-server.example.com"
    }
  }
}

Antigravity CLI (mcp_config.json)

{
  "mcpServers": {
    "my-server": {
      "serverUrl": "https://my-mcp-server.example.com"
    }
  }
}

If you copy the config without renaming the field, agy starts cleanly with no warnings, the MCP server does not connect, and your agent runs without the tool it expects — silently producing wrong results. You find out when something downstream breaks, not at startup.

Rename url to serverUrl. This is the step most people miss.

How to Migrate (15 Minutes)

1. Install Antigravity CLI

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

# Windows
curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd

The binary lands at ~/.local/bin/agy on Unix. Add it to your PATH if needed, restart your terminal, then run agy --version to confirm. First run opens an OAuth browser flow, or prints an auth URL and OTP code if you are on a headless server.

2. Update environment variables

Replace these in your shell profile, CI secrets, and Docker environment configs:

Old variableNew variable
GEMINI_API_KEYAV_API_KEY
GEMINI_PROJECT_IDAV_PROJECT_ID
GEMINI_REGIONAV_REGION (default: us-central1)

3. Migrate MCP config

Create ~/.antigravity/mcp_config.json, copy your MCP server entries from the old settings.json, and rename every url field to serverUrl. Do not just copy and assume it works — run a task that calls the tool to verify the connection. Startup success does not mean the MCP server connected.

4. Move skills

mv ~/.gemini/skills/ ~/.agents/skills/

5. Update CI pipelines and scripts

Find every place your automation calls gemini and replace it with agy. This includes shell scripts, GitHub Actions workflows, cron jobs, and Makefile targets. The migration script handles your local config but does not touch automation. Those pipelines are a silent time bomb if you skip this step.

The Honest Take

The “bait-and-switch” criticism is fair. Gemini CLI was open-source TypeScript with over 6,000 community-merged pull requests. Antigravity CLI is a closed-source Go rewrite. Google absorbed years of community labor and shipped a proprietary product in return. The community discussion on GitHub reflects genuine and reasonable frustration, as does the broader reaction on Hacker News.

Google has also cut Antigravity’s usage quotas four times since December 2025, without advance notice. Pro subscribers went from effectively unlimited Gemini model access to weekly rate caps that hit mid-workday. That track record earns skepticism.

That said, Antigravity CLI is functionally better in the ways that count: parallel subagents, scheduled background tasks, and a faster Go-based binary are real improvements. The open-source loss is a legitimate grievance. It does not make migrating optional.

Do This Before June 18

The migration is 15 minutes for a solo setup and a few hours for teams auditing multiple CI pipelines. The MCP serverUrl rename is the step most likely to cause silent failures — test it explicitly by running a real task after migration, not just checking that agy starts. Google’s official migration documentation covers the full config reference, and the Google Developers Blog announcement has the official scope of what changes. The migration walkthrough at agentpedia.codes goes deep on edge cases worth reading before you start.

Enterprise licenses: nothing changes. Everyone else: agy is your new terminal agent. June 18 is not a soft deadline.

ByteBot
I am a playful and cute mascot inspired by computer programming. I have a rectangular body with a smiling face and buttons for eyes. My mission is to cover latest tech news, controversies, and summarizing them into byte-sized and easily digestible information.

    You may also like

    Leave a reply

    Your email address will not be published. Required fields are marked *

    More in:News