Antigravity CLI
Launch Google's Antigravity CLI (agy) through Edgee, on your Edgee key or on your Google plan, and manage its dedicated coding-agent key.
Antigravity CLI is Google's coding agent, launched by the agy executable. Select Antigravity CLI when enrolling its coding-agent key, not a Google Gemini BYOK provider key.
Choose how agy runs
edgee launch agy | edgee relay agy | |
|---|---|---|
| Model traffic runs on | Your Edgee key and the Edgee model catalog | Your own Google plan |
| Google sign-in | Skipped: it cannot be combined with gateway mode | Kept |
| Platforms | Where Google documents gateway mode: macOS (arm64) and Linux (x86_64) | macOS and Linux |
| Trust store change | None | A dedicated Edgee CA (see below) |
Both modes are measured under the same antigravity key, so sessions appear as Antigravity CLI in the console either way. edgee launch agy is the recommended path.
Launch through Edgee
Install Antigravity CLI (version 1.2.15 or newer) so agy is available on your PATH, then install the Edgee CLI.
edgee launch agy
If needed, Edgee starts sign-in automatically. Complete sign-in and select your organization when prompted. The CLI provisions a dedicated key with the coding-assistant identifier antigravity.
Everything after agy is passed through unchanged, so edgee launch agy -c continues your last conversation. When the session ends, the CLI prints a link to its usage and cost in the console.
edgee launch agy acp runs Antigravity's editor integration (Zed, JetBrains) through Edgee. It needs agy 1.3.0 or newer. Because the editor reads the command's output, this mode never prompts and prints no session summary. If your profile still needs sign-in or an organization, run edgee launch agy once in a terminal first.
With Edgee aliases installed using edgee alias, use your usual command:
agy
Choose a model
agy has no model discovery in gateway mode, so Edgee passes it your organization's model list. The session starts on google/gemini-3.1-pro-preview when your organization can use it, otherwise on the first Google model in the list. To start on another model, set EDGEE_AGY_MODEL before launching:
EDGEE_AGY_MODEL="google/gemini-3.5-flash" edgee launch agy
The list follows your organization's model access rules. Google models get agy's full output limit and thinking support. Models from other providers run at agy's conservative defaults.
What Edgee changes on your machine
Routing is configured through environment variables for the session, so nothing is written for it. The one exception is the Edgee MCP server: agy has no per-launch MCP option, so Edgee adds a temporary edgee entry to ~/.gemini/config/mcp_config.json (restricted to your user) and removes it when the session ends. If a launch is killed, the entry stays until the next launch. Two launches running at once share the entry, so the earlier one reports to the later one's session.
Keep your Google plan
To keep agy signed in to Google and billed to your Google plan, use the relay instead:
edgee relay agy
Arguments for agy go after --, for example edgee relay agy -- -c.
The relay decrypts only agy's inference requests to Google's Code Assist hosts and forwards them on your own Google token. Everything else, including Google sign-in, telemetry, and updates, passes through untouched. Edgee records the requests for observability but does not compress them or change the model, and your usage is not charged to Edgee credits.
To make agy trust the relay, Edgee creates a dedicated Edgee Antigravity CA, limited to the two Code Assist hosts:
- macOS: the CA is added once to the System keychain, which can ask for an administrator password.
- Linux: the CA is made visible to agy alone, through
SSL_CERT_DIR. The system trust store is not changed.
On macOS, remove the CA at any time:
edgee relay agy --untrust
On Windows, the relay is refused: use edgee launch agy there.
Limits to know about
- On
edgee launch agy, requests are billed to your Edgee key and your Google account plan is not used. Useedgee relay agyto keep the plan. - A machine-level
admin_settings.json(/etc/antigravityon Linux,/Library/Application Support/Antigravityon macOS,%ProgramData%\Antigravityon Windows) outranks the environment. If it pins another gateway withgateway.url, or is not valid JSON,edgee launch agyrefuses to start and tells you to ask your administrator to fix it. - Gateway mode is documented by Google for macOS (arm64) and Linux (x86_64).
- Google telemetry, the auto-updater, and error reporting are not routed through Edgee. Web fetch runs locally.
- Antigravity CLI does not receive plugins yet, and routing strategies cannot send its traffic to another provider.
- Edgee's tools are available to the model, but it is not prompted to name the session.
Manage settings
edgee settings antigravity
Settings apply to the selected organization's Antigravity CLI key. Organization and squad rules can lock settings; see Gateway settings and inheritance. Compression settings have no effect on Antigravity CLI traffic yet.
Manage the key in the console
- Open the Edgee Console and select your organization.
- Click Set up coding agent or +, select Antigravity CLI, and enroll it. If already enrolled by the CLI, use its existing entry.
- Open its settings to manage the coding-agent key.
Do not use a standard LLM Router API key in place of the dedicated coding-agent key.
Verify a session
Launch Antigravity CLI through Edgee and complete at least one model request. Open Sessions in the same organization and check the agent, requests, and cost. See Sessions and Troubleshooting.