Google adding official Google AI plan support to Pi coding agent github.com · 8 ...
HN Best 200 @best
Google adding official Google AI plan support to Pi coding agent github.com · 8 points · 3 comments · HN thread
TL;DR A pull request to the Pi coding agent (earendil-works/pi) adds a new google-ai-plan provider that lets users sign in with Google and run Gemini models against their Google AI plan quota through the Interactions API. The PR description covers OAuth with PKCE and DPoP-bound refresh tokens, streaming, thinking, tool calls, and plan-specific error handling. The thread is mostly short enthusiastic reactions, plus a few questions about which plan tiers and models are actually covered.
- Adds a google-ai-plan provider: sign in with Google via loopback OAuth with PKCE and DPoP-bound refresh tokens.
- Uses Gemini models through the Interactions API's per-user quota endpoint (:createPerUserQuota).
- Supports streaming, thinking with signed thought replay, tool calls and usage reporting.
- Handles plan errors: daily limit (not retried), model not on plan, sign-in and eligibility failures, and a kill switch.
- pi-ai ships no Google OAuth client; coding-agent passes pi's own client to googleAiPlanProvider(), while other apps must register their own.
- Default model is gemini-4-hydrogen.
Discussion The thread is mostly short, excited reactions (many in English and Chinese, such as 'amazing', 'Huge if true', 'Let's go!') with several people asking when it ships or wanting it on other harnesses like opencode. A few commenters raise doubts: one questions whether Google's terms allow third-party apps to use plan quota, and another asks which plan tiers actually work, since the PR text mostly says Ultra while the catalog includes models that Google places on different tiers. Mood is positive and hype-driven with some practical skepticism.
- Excited; glad to see Gemini on a Google plan in Pi (most): Most comments are brief enthusiasm, such as 'amazing', 'Finally, official Gemini in pi!' and 'I love Google'. Several say they have waited for a way to use the new Google models through their plan.
- Only Google AI Ultra appears to be supported (some): Commenters reading the code and PR text note that the sign-in and error hints mention only the Ultra plan. One person asks what happens for Google AI Pro subscribers, given that some catalog models are supposedly available on lower tiers.
- Terms of service may block third-party use (a few): One commenter doubts Google would permit this kind of third-party use of plan quota and thinks the PR may not land for that reason.
- Wants the same support in other harnesses (a few): Some people ask for equivalent support in other coding agents such as opencode, suggesting Google may offer the feature to more harnesses.