Skip to content

Gemini CLI Is Retired: How to Install Antigravity CLI on Linux

Google replaced Gemini CLI with Antigravity CLI in 2026. See what changed and install the new agy terminal agent on Linux.

Steps
3
Category
AI & LLMs
Covers
curl, npm, Ubuntu
Versions & support
About Ubuntu →
On this page 3 steps

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?

WhoStatus after 18 June 2026
Free users of Gemini Code Assist for individualsGemini CLI stopped serving requests. Move to Antigravity CLI.
Google AI Pro and Ultra subscribersGemini CLI stopped serving requests. Move to Antigravity CLI.
Gemini Code Assist Standard or Enterprise licensesAccess unchanged.
Paid Gemini API keysGemini 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' >> ~/.bashrc
source ~/.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 ~/myproject
agy

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.

Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply

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


Back to top