AI Agent News/stories/pi-coding-agent-pull-request-adds-google-ai-ultra-plan-provider.md

Frameworks

Pi coding agent pull request adds Google AI Ultra plan provider

A pull request to the Pi coding agent adds a google-ai-plan provider that signs users in with Google and runs Gemini models on their Google AI Ultra plan. The change is still open on GitHub, and forks must register their own Google OAuth client to offer the same sign-in.

Source: github.com/earendil-works/pi/pull/12614

Pull request 12614 on the earendil-works/pi repository, opened by davidbrai, adds a provider called google-ai-plan. It lets users sign in with Google through a loopback OAuth flow that uses PKCE and DPoP-bound refresh tokens, then sends requests to Gemini models through the Interactions API. The default model is gemini-4-hydrogen.

The provider covers streaming, thinking with signed thought replay, tool calls and usage reporting. Plan-specific errors, including a daily limit that is not retried, a model not on the plan, and sign-in or eligibility failures, are handled separately. The coding agent passes its own Google client to the provider, while the pi-ai package ships none and other apps must register their own.

The pull request is still open and has not been merged. Commenters questioned whether Google's terms permit this kind of third-party use, and one asked how models that sit on other Google plan tiers would behave, since the provider and its docs refer only to Ultra.

Why it matters if you build agents

Developers who want Gemini inside Pi on a Google AI plan will get a built-in route once this lands. Anyone forking Pi needs their own Google-approved OAuth client to offer the same sign-in.

Until the change is merged, behaviour for plans other than Ultra is unconfirmed, so agents that depend on a specific Gemini model should check which tier that model requires.

Get stories like this every weekday

One short email with the day's agent tooling news.

Subscribe