Command reference Β· Antigravity CLI
/logout
Disconnects the profile and deletes the auth token from the keyring.
/logout belongs to the Account category and disconnects the connected Google account by deleting stored authentication profiles from the operating system's native keyring β from the Apple Keychain on macOS, from Secret Service/dbus on Linux, and from the Credential Manager on Windows.
Normally, agy silently checks at startup whether a valid token already exists in the keyring and signs you in without any browser interaction; only if none is found does the browser login open. Over a remote SSH connection this works differently: since no browser can be launched, the CLI displays an authorization URL that you open locally in a browser, sign in there, and enter a code back into the SSH terminal.
After /logout, simply restart agy β the respective auth flow then runs from the start.
π THE SAME TASK (βLOG OUT/LOG INβ) ON OTHER PLATFORMS
β WHEN TO USE IT?
Switch Google account completely
/logout, then restart agy and sign in with a different Google account
Stop reserving a device
Run /logout on a shared or borrowed machine before handing it back
β WHEN NOT TO?
Only end the session, keep the account
/logout removes the auth token from the keyring entirely; that's unnecessary for simply ending a session.
Better: Use Ctrl+D or Ctrl+C (protected keybinding cli.exit) β there is no dedicated /exit command according to the docs
SOURCES
- Antigravity CLI docs: command reference β antigravity.google
- Antigravity CLI docs: installation β antigravity.google
MORE COMMANDS Β· Antigravity CLI