hn.today

Google adding official Google AI plan support to Pi coding agent

github.com30 points6 comments
Screenshot of Google adding official Google AI plan support to Pi coding agent

A draft change proposes adding Google AI Ultra as a provider in the Pi coding agent, letting eligible users access Gemini models through their subscription rather than supplying a separate API key. Sign-in uses Google OAuth through a local callback, with PKCE and refresh tokens bound to the device using DPoP. Requests go to Google’s Interactions API and a per-user quota endpoint; the proposal says Google approved this endpoint for Pi specifically, not for arbitrary applications. The default model is Gemini 4 Hydrogen.

The integration is designed to support streaming responses, model reasoning with signed thought replay, tool calls, and usage reporting. It also handles plan-specific failures, including daily quota limits, unavailable models, sign-in and eligibility problems, and a kill switch; daily-limit errors are not retried. Follow-up commits refine timeout handling, recognition of Google permission errors, privacy around stored account details, quota-reset reporting, documentation, and stream-conversion tests. The change notes that other apps using the shared AI library must register their own Google OAuth client, while Pi supplies its own. Discussion is strongly positive, but users ask whether plans below Ultra are supported; the provided details do not answer that. The change remains a draft, so its proposed support should not be mistaken for a completed release.

Read on github.com6 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.