OriginRouter CLIAntigravity integration

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.

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

CapabilityClaude Code / CodexAntigravity
Model sourceCloud, own provider, or remote route — or native configurationOfficial Antigravity account only
--provider / route setSupportedUnsupported; calls are rejected
Remote controlNative PTY / SDK / app-serverUnified native TUI + PTY + Hook forwarding and registered session
Device toolsAttached to managed sessionsAvailable after agy-integration install
In-session model / mode switch from the AppSupported in route modeSupported when idle (restarts child and resumes the exact conversation from account catalog)

Was this page helpful?