SIAgentNews.com
AI-made picture for the story: Pi coding agent gets a draft change to sign in with a Google AI plan
GeminiPicture made with AI
← All news
DevelopingGeminiAgents

Pi coding agent gets a draft change to sign in with a Google AI plan

A draft GitHub change would let Pi's users run Gemini models on their existing Google AI plan. It is unmerged, but other open tools are copying it.

3 min readMade with AI

The short version

  • The draft, #12614 in the earendil-works/pi repository, bundles 13 commits from contributor davidbrai
  • It adds a google-ai-plan provider with Google sign-in and access to the plan's Gemini models
  • Daily-limit errors are not retried, and the code also handles models not on the plan and eligibility failures
  • Pi's coding agent would use Pi's own Google client; other apps must register their own
  • Two other projects, nanocode and Hermes Agent, already target the same Google route

What the draft proposes

As github.com showed, a pull request (a proposed code change that maintainers review before merging) numbered #12614 has been opened against the Pi coding agent's repository. It is marked as a draft, meaning the author does not yet consider it ready to merge. Contributor davidbrai is behind it, and it bundles 13 commits.

The change adds a new provider called google-ai-plan. A provider is the part of a coding agent that knows how to talk to one company's AI models. This one lets a user sign in with Google and then use the Gemini models included in their Google AI plan.

One caution on the framing. Our newsletter described this as Google adding official support. The page we saw shows a draft from a contributor, and it does not confirm that it was merged or released. Treat it as a proposal in progress.

13 commitsbundled in the draft pull request

Why it matters

If you pay for a Google AI plan, tools like Pi may let you use that plan directly instead of buying separate API credit. The change is still a draft, so nothing is promised yet. It is also a sign that Google's plan-based route is becoming a shared way for outside coding tools to connect.

How the sign-in is built

The sign-in uses OAuth, the standard way to log in through Google without handing an app your password. The description lists two extra protections. PKCE is a check that stops a stolen one-time login code from being reused. DPoP ties the long-lived refresh token (the credential that keeps you signed in) to a key held by the app, which makes a stolen token less useful.

The sign-in flow is described as a loopback one. This means Google sends the login result back to a temporary address on your own computer, rather than to an outside server.

For the models themselves, the code calls Google's Interactions API through a per-user quota endpoint. A quota is simply the usage allowance attached to your plan. The draft supports streaming replies, the model's reasoning steps, tool calls and usage reporting.

When the plan says no

The draft spends real effort on failure cases. It recognizes a daily limit and does not retry once you hit it, which avoids hammering a quota that is already used up. It also has distinct handling for a model that is not on your plan, a sign-in problem, an eligibility problem, and what the description calls a kill switch.

The page does not explain how the kill switch works or who controls it. It also does not list the plan's prices or its daily caps, so we cannot say how much coding you could do on it.

The description mentions a default model, but the text is cut off in our copy. We will not guess at what it is or at which plan tier it needs.

Whose Google client?

Sign-in through Google requires the app to have its own registered client, an identity Google recognizes. The draft says Pi's AI library ships without one. Instead, the coding agent hands in Pi's own client, and any other app built on the library must register its own.

That detail matters because other projects have already picked up the idea. A fork of Pi ported the draft into its own code. A separate project, nanocode, added the same route and notes that Pi and Hermes Agent already aim at it. Nanocode's own note says it has not yet been tried against Google, because it has no approved client.

So the technical work can be copied quickly, but access depends on Google approving each app's client. That approval step is the part outside developers do not control.

What to expect next

For now this is a small, early integration. The page we saw showed little discussion and no sign of a merge. Release timing is still open.

What to look for is whether the draft is merged into Pi and whether other tools get their clients approved. If they do, signing in with a plan could become a common option for coding agents. If you do not use Pi or a Google AI plan, there is nothing to do.

What to watch

  • Will the draft be merged into Pi, and when would it ship?
  • Will Google approve sign-in clients for other tools like nanocode?
  • What daily limits and plan tiers apply when you use Gemini this way?

Try it

If you pay for a Google AI plan and use Pi, open pull request #12614 in the earendil-works/pi repository and read it for how sign-in is enabled and which limits apply.

Up nextGoogle's Gemini 4 Neon tops a coding-agent ranking at $3 per million input tokens

More stories

Say why

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

Sources

The reporting and documents this story is built from. Each link opens the original.

Written with AI by the SI Agent News Desk from the reporting above. Every number is checked against it.Spot a mistake? Corrections.

More AI news