Antigravity MCP for OpenAI Codex: use Gemini 4 from Codex
OpenAI Codex speaks MCP, so it can drive Google Antigravity through antigravity-mcp. You can then compare Codex with Gemini 4 on the same task, or hand Gemini the work your Codex quota should not pay for.
Register the server
git clone https://github.com/aristidew1/antigravity-mcp
node antigravity-mcp/src/cli.mjs install --client codex
This adds a table to ~/.codex/config.toml, after backing the file up. It never edits a file it cannot parse safely. To add it by hand:
[mcp_servers.antigravity]
command = "node"
args = ["/absolute/path/to/antigravity-mcp/src/cli.mjs"]
Use it
Restart Codex, then ask for things like "use antigravity_task to get Gemini's review of this diff". Long runs return a job_id. Collect it with a single antigravity_job call: it blocks until the run finishes, so there is no polling loop. Jobs survive a Codex restart.
Why route through Antigravity
- A second model family for reviews: Gemini or Claude reviewing Codex's work.
- Separate quota: Antigravity runs count against your Antigravity plan, not your Codex quota.
- Isolation:
isolation: "worktree"keeps each agent on its own branch.