All guides

How to approve Antigravity commands from your phone

Updated 27 November 2026 · 6 min read

You can approve Google Antigravity commands from your phone because Antigravity runs a PreToolUse hook before every tool call, and that hook can hold the call and then answer with a decision. A tool that sends the command to your phone, waits for your tap and prints auto_approve or deny lets you answer from anywhere. Antigravity Notifier does this for the agy command line on Mac, Windows and Linux, with a free antigravity-notifier tool and an iPhone or Android app. Google's own Remote Control is the other option, and you can build a basic version yourself.

01How remote approval works in Antigravity

Antigravity has no "permission request" event. The only moment a hook hears about a command is PreToolUse, which fires before each tool call with the call as JSON on stdin. For a command, the tool is run_command and the command line is in toolCall.args.CommandLine:

{
  "hookEventName": "PreToolUse",
  "cwd": "/Users/you/projects/demo",
  "conversationId": "32fc0aec-…",
  "toolCall": {
    "name": "run_command",
    "args": { "CommandLine": "npm install" },
    "id": "call_1835…"
  }
}

The hook answers on stdout with one of these decisions:

DecisionWhat Antigravity does
allowDecides as it would without the hook (its own permission policy)
auto_approveRuns the tool with no prompt
denyBlocks the tool and passes the reason to the model word for word
force_askShows its normal prompt, with the hook's reason on it

A remote approval tool sits in the middle: it posts the command to a server your phone listens to, waits, then prints whatever you chose. Two Antigravity details shape everything else:

  • It is fail-closed. A PreToolUse hook that prints no decision, exits with an error or times out blocks the tool. A hook must always print a decision.
  • While a hook holds, there is no prompt. The terminal just shows the command as running. So a hook should only hold when nobody is at the keyboard.

02The quick way: Antigravity Notifier

Antigravity Notifier is an independent app by TouchTap Ltd, not made by or affiliated with Google. The command line part, antigravity-notifier, is free and installs its hooks for you.

  1. Get the Antigravity Notifier app on your iPhone or Android phone.
  2. In the app, add a computer. It shows a 6-digit code and the line to run.
  3. Run that line on the computer. On Mac or Linux it looks like curl -fsSL https://antigravitynotifier.com/install.sh | sh -s 482913. On Windows (beta), in PowerShell: irm https://antigravitynotifier.com/install.ps1 | iex; antigravity-notifier pair 482913.
  4. Start a new agy session.

Pairing adds one named group, antigravity-notifier, to ~/.gemini/config/hooks.json, keeps a one-time backup of the file, and touches nothing else. There is no trust step: the hooks run from the next session. Other install routes are on the antigravity-notifier page.

03What you can do from the phone

When Antigravity wants to run a command while you're away, the phone shows the exact command line. You can:

  • Allow: the hook answers auto_approve and the command runs.
  • Allow for this session: that tool goes through without asking for the rest of the conversation.
  • Deny, with an optional note: the note becomes the deny reason, so "use the staging database, not production" changes what Antigravity does next.

If you don't answer in time, nothing is approved for you. The hook answers force_ask, and Antigravity shows its own prompt at the computer with "No answer from your phone" on it.

By default only commands wait for the phone. Read-only tools such as read_file never wait. To have file writes, edits and other tools that change something wait too, run antigravity-notifier config set phone_approvals all; off turns phone approvals off and keeps the other notifications.

04When the phone is asked, and when it isn't

antigravity-notifier checks whether you're at the computer before it makes Antigravity wait.

  • At the keyboard (any input in the last 30 seconds on an unlocked screen): nothing waits and tool calls aren't sent. Antigravity asks you itself, as it would without the hook.
  • Away, or your screen is locked: commands wait for your answer. A locked screen counts as away at once on macOS and Linux. Windows only goes by keyboard input.
  • You come back: real keyboard input ends the wait, and the decision goes back to Antigravity at the computer.
  • Nobody answers: the wait ends at hold_ceiling_seconds (10 minutes by default; a tool call can't wait longer than 600 seconds), then the force_ask prompt appears.

There's one gap Antigravity leaves: if you were at the computer when it asked, then walk away, no hook event fires. For that case antigravity-notifier sends one note after about 20 seconds, "Antigravity may be waiting for you", so you know the prompt is sitting there. It has no buttons; you answer at the computer. antigravity-notifier config set walkaway_alerts off turns it off.

In agy -p scripts nothing is ever held, because nobody can answer a prompt there and a force_ask is treated as a denial. You get notes instead.

05Doing it yourself

A basic hand-built version needs:

  1. A named group in ~/.gemini/config/hooks.json with a PreToolUse entry that runs your script, and a timeout (in seconds) longer than your longest wait. Antigravity accepted 900 in testing; the default is 30.
  2. A script that reads the JSON, prints {"decision":"allow"} straight away for anything that isn't run_command, and otherwise posts the command to your phone with Allow and Deny actions that call a URL you control.
  3. A loop that polls that URL until an answer appears, up to your limit.
  4. An answer for every path: {"decision":"auto_approve"}, {"decision":"deny","reason":"…"}, or {"decision":"force_ask","reason":"No answer"} when time runs out. Never print nothing, and never crash, or the command is blocked.

The parts a ready-made tool has already solved are the hard ones: knowing whether you're at the keyboard, so you aren't left staring at a command that looks stuck; making sure only your phone can answer; and keeping the command text private on the way. The PreToolUse guide covers the decisions in detail, and the security guide covers what to watch.

For one-way alerts only, a Telegram, Slack or Discord hook is simpler.

06What about Google's Remote Control?

Google added Remote Control with Antigravity 2.0 in August 2026. Turn it on in the desktop app's settings, or with /remote-control or agy --remote-control in the command line, and you can follow a session and answer its prompts from your phone's browser, signed in with the same Google account. It's free and built in, and it covers the desktop app, which Antigravity Notifier doesn't support yet. Remote Control vs a notifier app compares the two.

07FAQ

Can I approve a command for the whole session from the phone?

Yes. Allow for this session lets that tool through for the rest of the conversation. A new conversation starts asking again.

What if I approve on the phone and also press a key at the computer?

Whichever comes first wins. If the phone's answer arrives first, Antigravity acts on it. If you touch the keyboard first, the wait ends and you decide at the computer.

Does it work in the VS Code terminal, tmux or over SSH?

Yes. The hooks run wherever agy runs, so any terminal is covered, including Terminal, iTerm2, Ghostty, Windows Terminal, VS Code's terminal, tmux and SSH sessions.

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. Remote Control covers the desktop app.

Does it cost anything?

antigravity-notifier is free. The phone apps need a subscription or a one-off purchase. See pricing.

Antigravity Notifier Get a push on your phone when Antigravity finishes or needs you, then allow, deny or answer from there. The antigravity-notifier command line tool is free on Mac, Windows and Linux.