Antigravity
Track Google Antigravity (CLI, IDE and Antigravity 2.0) agent turns: prompts, model responses and reasoning, tool calls, terminal commands, files changed and how long each turn took.
No token or cost data
Antigravity doesn't report token counts to hooks or in its local logs, so Anosys can't show tokens or cost for it. You still see activity: model steps, tool calls, commands, files and durations.
Step 1. Get an API key
Create an endpoint of type Claude Code & Codex CLI and copy its API key from Collecting → Integration Options → API.
Step 2. Install
The installer asks for your API key and adds the Anosys hook to Antigravity's global hooks file (~/.gemini/config/hooks.json). To install it for one project only, add --workspace; the hook then goes into that project's .agents/hooks.json.
Result: run one Antigravity turn. The endpoint's activity graph shows calls within seconds.
Install without prompts
| Flag | What it does |
|---|---|
--api-key KEY |
Your API key (or set ANOSYS_HOOK_APIKEY) |
-y, --yes |
Accept defaults, no prompts |
--redaction / --no-redaction |
Mask prompts, tool arguments and responses (off by default) |
--workspace |
Install for the current project only |
--auto-update / --no-auto-update |
Write hooks.json automatically, or print instructions instead |
Commands
| Command | What it does |
|---|---|
anosys-antigravity install |
Add the hook |
anosys-antigravity status |
Show whether the hook is registered |
anosys-antigravity uninstall |
Remove the hook |
anosys-antigravity run |
What Antigravity calls during a turn. You don't run it yourself. |
Settings
Settings are saved in ~/.gemini/config/anosys-env.json. You can also set them as environment variables:
| Variable | What it does |
|---|---|
ANOSYS_HOOK_APIKEY |
API key |
REDACTION |
true to mask content |
ANOSYS_HOOK_DRY_RUN |
true to print what would be sent instead of sending it |