If you used Gemini CLI, Google’s open-source AI agent for the terminal, you may have noticed it stopped working with your personal Google account. On 19 May 2026, Google announced that Gemini CLI is being replaced by Antigravity CLI, a new terminal agent that shares its architecture with the Antigravity desktop app. The command is agy.
This guide explains what changed, then shows how to install Antigravity CLI on Linux, sign in and remove the old Gemini CLI.
What Happened to Gemini CLI?
| Who | Status after 18 June 2026 |
|---|---|
| Free users of Gemini Code Assist for individuals | Gemini CLI stopped serving requests. Move to Antigravity CLI. |
| Google AI Pro and Ultra subscribers | Gemini CLI stopped serving requests. Move to Antigravity CLI. |
| Gemini Code Assist Standard or Enterprise licenses | Access unchanged. |
| Paid Gemini API keys | Gemini CLI still works with a paid API key. |
Google said there wouldn’t be full feature parity at first, so check the Antigravity CLI repository for features you rely on.
Step 1 of 3Install Antigravity CLI
Google provides an install script for macOS and Linux. Run it as your normal user:
curl -fsSL https://antigravity.google/cli/install.sh | bash
The script installs the agy binary in ~/.local/bin and doesn’t need sudo or Node.js. Open a new terminal and check it:
agy --version
If the command isn’t found, add ~/.local/bin to your PATH:
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrcsource ~/.bashrc
Note: Google’s apt and dnf packages install the Antigravity desktop app. Use the script above for the command-line agent.
Step 2 of 3Sign In and Start a Session
Change to a project folder and start the agent:
cd ~/myprojectagy
On first start, agy asks you to sign in with your Google account in the browser. Then type tasks at the prompt in plain language, such as explain the structure of this repository or write a script that checks disk usage and emails a warning above 90%. Run agy –help to see all options.
Step 3 of 3Remove Gemini CLI
If Gemini CLI was installed with npm, remove it so the old gemini command doesn’t confuse you or your scripts:
npm uninstall -g @google/gemini-cli
Your Gemini CLI settings are in ~/.gemini. Keep the folder until you have moved any custom instructions or MCP server settings to Antigravity CLI, then delete it.
Conclusion
Antigravity CLI is now installed and is Google’s supported terminal agent for individual users. For the other two major options, see how to install Claude Code and how to install Codex CLI, or read our comparison of all three.
How did it make you feel?
