To set up Antigravity Notifier, get the app on your iPhone or Android phone, add a computer in it, and run the one line it shows in a terminal on that computer. That line installs the free antigravity-notifier command line tool, adds its hooks to Google Antigravity and pairs your phone. On Mac and Linux it looks like curl -fsSL https://antigravitynotifier.com/install.sh | sh -s 482913, with your own code in place of 482913. From your next agy session, Antigravity reaches your phone when it finishes or needs you.
01What you need
- The
agycommand line on a Mac, a Windows PC (Windows support is in beta) or a Linux machine. - The Antigravity Notifier app from the App Store or Google Play. It needs a subscription or a one-off purchase; see pricing. The command line tool is free.
Antigravity Notifier is an independent app by TouchTap Ltd, not affiliated with Google. It works with the agy command line in any terminal (Terminal, iTerm2, Ghostty, Windows Terminal, the VS Code terminal, tmux) and over SSH. Antigravity's desktop app and IDE aren't supported yet.
02Step 1: install and pair with one line
Open the app, add a computer and note the 6-digit code. Then run the line for your system.
On Mac or Linux:
curl -fsSL https://antigravitynotifier.com/install.sh | sh -s 482913
On Windows, in PowerShell:
irm https://antigravitynotifier.com/install.ps1 | iex; antigravity-notifier pair 482913
With Homebrew (macOS or Linux):
brew trust --formula touch-tap/tap/antigravity-notifier && brew install touch-tap/tap/antigravity-notifier && antigravity-notifier pair 482913
With Node.js, on any system:
npx @touchtap/antigravity-notifier pair 482913
The app shows the line with your code already in it, so copying it from there is easiest. Codes last 24 hours.
No code to hand? Run the install line without it, for example:
curl -fsSL https://antigravitynotifier.com/install.sh | sh
Then pair by scanning the QR code that antigravity-notifier pair prints. Pair your phone with Antigravity covers both routes in detail.
03Step 2: what the install changed
Pairing adds one named group, antigravity-notifier, to Antigravity's global hooks file, ~/.gemini/config/hooks.json. It uses five events: SessionStart, PreInvocation, PreToolUse, PostToolUse and Stop. In outline the group looks like this:
{
"antigravity-notifier": {
"SessionStart": [ { "type": "command", "command": "/path/antigravity-notifier hook SessionStart", "timeout": 30 } ],
"PreToolUse": [ { "matcher": "*", "hooks": [ { "type": "command", "command": "/path/antigravity-notifier hook PreToolUse", "timeout": 900 } ] } ],
"Stop": [ { "type": "command", "command": "/path/antigravity-notifier hook Stop", "timeout": 700 } ]
}
}
The real group also has PreInvocation and PostToolUse. Every other group and key in the file stays as it was, a one-time backup sits beside it, and a file that isn't valid JSON is refused rather than overwritten. There is no trust step to approve: the hooks run from your next session. Each hook runs for milliseconds and exits, so nothing stays in the background.
04Step 3: check that it works
Right after pairing, your phone gets a test notification you can answer. Then:
antigravity-notifier doctor # hooks, pairing, connection, presence detection
antigravity-notifier test # sends a test notification to your phone
Start a new agy session, give it a small task and walk away from the keyboard. When the turn ends, your phone shows "Antigravity has finished" with its last message.
05When your phone gets involved
Antigravity Notifier only makes Antigravity wait when you're away:
- At the keyboard (any input in the last 30 seconds on an unlocked screen): nothing waits for the phone, and Antigravity asks you on screen as usual.
- Away, or screen locked (macOS and Linux; on Windows only keyboard idle time counts): a command waits for your phone. Allow it once or for the rest of the conversation, or deny it with a note. A question waits for your answer. The hold ends the moment you touch the keyboard.
- No answer in time: Antigravity shows its own prompt with "No answer from your phone" on it. Nothing is approved by a timeout.
- Scripts:
agy -pis never held; you get notes instead.
06Step 4: settings worth knowing
Most settings can also be changed from the phone.
antigravity-notifier config set hold_ceiling_seconds 300How long a call waits for the phone (default 600, which is also the most a tool call can wait)antigravity-notifier config set phone_approvals allWhich calls wait: commands (default), all (file writes and edits too) or offantigravity-notifier config set stop_hold_seconds 0How long you can send a follow-up after a turn ends (default 120; 0 turns it off)antigravity-notifier config set quiet_hours 22:00-08:00Nothing goes to the phone during these hoursantigravity-notifier config set walkaway_alerts offTurns off the "Antigravity may be waiting for you" heads-up when you leave during a promptantigravity-notifier config showShows this computer's settings07Updating and removing
- Update:
antigravity-notifier upgrade, or run the install line again. With Homebrew,brew upgrade antigravity-notifier. Your pairing stays. - Remove:
antigravity-notifier uninstallremoves only theantigravity-notifiergroup fromhooks.json, revokes the pairings and deletes local state.antigravity-notifier forgetalso erases the computer and its pairings from the server.
08Privacy in one paragraph
There are no accounts. A notification can include the project's name and folder path, Antigravity's message or question, and the command or files for an approval. It goes through our relay server, which deletes notifications and answers within 48 hours, and nothing goes to Google from us. antigravity-notifier pair sends a few anonymous setup events; ANTIGRAVITY_NOTIFIER_NO_ANALYTICS=1 or DO_NOT_TRACK=1 turns them off. The Privacy Policy has the details.
09FAQ
Do I need to restart Antigravity after installing?
Start a new agy session. Antigravity reads the hooks when a session starts, so one that was already open won't use them.
Will it break my own hooks?
No. It adds its own named group and leaves the others alone, and Antigravity runs every matching group. If hooks.json isn't valid JSON, it refuses to touch it, so fix the file first.
Does it work in the Antigravity desktop app or IDE?
Not yet. They read the same hooks file, but Antigravity Notifier only supports the agy command line for now. For the desktop app, Google's free Remote Control is the built-in option.
Can I set it up on a server?
Yes. The hook runs where agy runs, so install and pair on the server, for example by pasting the app's line into your SSH session. Up to three phones can pair with each computer.