Antigravity CLI: authentication failed or timed out

agy needed a Google sign-in and didn't get one. The exact message, why Antigravity CLI prints it, and the fix.

Updated November 23, 2026 · Checked against Antigravity CLI 1.4 and 1.5 (2026). Docs say a run with no terminal exits with an 'authentication required' error instead of waiting., reproduced in EnvHaven 1.9.0

The message

authentication failed or timed out

What it means

agy needed a Google sign-in and didn’t get one. Headless and print-mode runs (agy -p) reuse cached credentials; with none cached, agy prints a sign-in URL and waits, and in scripts, CI or containers nobody completes it before the wait ends.

Fix

  1. Run agy once in an interactive terminal and complete the Google sign-in; headless mode reuses those cached credentials.
  2. On a machine without a browser, open the printed URL on another device and paste the authorization code back when agy asks for it.
  3. Rerun the headless command (agy -p "...").

In an EnvHaven workspace

Yes, until Antigravity CLI is signed in once. Sign in once from the workspace’s Launch menu (Sign in, or Set key for an API key); the sign-in stays on the workspace, across restarts and on every device.

Where this comes from

This message was produced by Antigravity CLI (Antigravity CLI 1.4 and 1.5 (2026). Docs say a run with no terminal exits with an ‘authentication required’ error instead of waiting.) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.