Pi coding agent draft PR adds Google AI Ultra sign-in for terminal Gemini quota

rickasaurus · x · 2026-11-28

A draft PR (#12614) in the open-source Pi coding agent would let Google AI Ultra subscribers run Gemini in the terminal on a separate daily quota — not per-token billing, and not Antigravity or the Gemini app. Fixed models: Gemini 4 Hydrogen, Neon, Carbon, and 3.5 Flash-Lite. Implementation uses loopback OAuth with PKCE, DPoP-bound refresh tokens, and the Interactions API's createPerUserQuota endpoint, with streaming, signed thought replay, tool calls and usage reporting. Pi says Google approved only its OAuth client; the PR is not merged yet and forks must register their own client.

Original post →

More from coding & agent

coding & agent channel →