Antigravity
Antigravity (agy) is the third agent entry point OriginRouter supports. Unlike Claude Code and Codex, Antigravity always uses its own account sign-in and model configuration: OriginRouter never injects a provider or route for it, and only layers session remote control and device tools on top of the native experience.
originrouter agy requires agy to be signed in with the official Google account flow. A custom modelProvider in the agy configuration is rejected, and --provider and route commands do not apply to agy.
Install
Interactive originrouter setup detects agy on PATH and offers to install it through Google's official installer when it is missing. Include it explicitly in automation:
originrouter setup --with-agy
After installation, setup --verify checks both agy --version and agy acp --help.
Launch
originrouter agy
Native arguments pass through unchanged, for example originrouter agy --mode plan or originrouter agy --resume <id>. Informational invocations such as --help, --version, and --print keep native pipe behavior; interactive invocations enter a registered control session that an App or another trusted device can follow.
Session remote control
Managed sessions install the OriginRouter hooks automatically (SessionStart, PreToolUse, PostToolUse, and related event forwarding) while preserving any other Antigravity hooks already configured. To manage them by hand:
originrouter agy-hooks install
originrouter agy-hooks uninstall
Device-tool integration
originrouter agy-integration install
originrouter agy-integration uninstall
Beyond the hooks, this registers an originrouter_native_device MCP server so agy sessions can use device tools such as remote environments and scheduled tasks. Writes under ~/.gemini/config/ add or remove only OriginRouter's own entries; the rest of the MCP configuration is preserved.
Differences from other agents
| Capability | Claude Code / Codex | Antigravity |
|---|---|---|
| Model source | Cloud, own provider, or remote route — or native configuration | Official Antigravity account only |
--provider / route set | Supported | Unsupported; calls are rejected |
| Remote control | Native PTY / SDK / app-server | Unified native TUI + PTY + Hook forwarding and registered session |
| Device tools | Attached to managed sessions | Available after agy-integration install |
| In-session model / mode switch from the App | Supported in route mode | Supported when idle (restarts child and resumes the exact conversation from account catalog) |