Pi coding agent adds Google AI Ultra plan sign-in: what the draft PR does
A draft pull request to the Pi coding agent adds "Sign in with Google" for Google AI Ultra subscribers, so Gemini 4 models run on plan quota instead of an API key. It isn't merged yet, Google hasn't announced it, and its README says the OAuth client is approved for Pi only.
A draft pull request to Pi, the open-source terminal coding agent from earendil-works/pi, adds a "Sign in with Google" option for Google AI Ultra subscribers. Once signed in, Pi would run Gemini 4 models on the quota that comes with the plan instead of a paid Gemini API key. The PR, #12614, was opened on November 27 by davidbrai, a Pi contributor who also authored the v1.6.1 release commit, and it was still an unmerged draft on November 28.
It spread fast, with a long thread of excited comments on the PR, including several in Chinese, because Google stopped serving Pro and Ultra plan requests in Gemini CLI on June 18 and pointed subscribers to its own Antigravity CLI. Here is what the code actually does, what is still unconfirmed, and what to check before you sign in with your main Google account.
Quick facts
- Status: draft PR, open, not merged, no description and no maintainer reply in the comments as of November 28, 2026. You can't get it from a normal Pi release yet.
- Plan: the provider, login label and error messages all say Google AI Ultra. Nothing in the PR mentions Google AI Pro.
- Models in the PR's catalog: Gemini 4 Hydrogen (the default), Gemini 4 Neon, Gemini 4 Carbon and Gemini 3.5 Flash-Lite, each listed with a 1,048,576-token context window and 65,536 output tokens.
- Cost: the catalog sets every token price to zero, with the comment "Usage is covered by the plan: no cost". Daily limits still apply.
- Who can use the sign-in: Pi only. Its README says the OAuth client is one "that Google approved for pi only", and forks must register their own.
How the Google AI plan sign-in works
In short, it is a normal Google OAuth sign-in tied to a client that Google approved for Pi, plus a new API path that bills your plan instead of an API project. The PR adds a provider called google-ai-plan. Sign-in uses a Google "Desktop app" OAuth client with a loopback redirect and PKCE, and asks for a per-user quota scope (generative-language.peruserquota) on top of your basic profile.
The refresh token is DPoP-bound: Google ties it to a key pair created on your machine, and every token refresh carries a proof signed with that key. Model calls then go to the Gemini Interactions API's createPerUserQuota endpoint on generativelanguage.googleapis.com, which counts requests against your plan rather than a Cloud project. Code comments refer to Google's "partner docs" for the model list and error rules, which suggests Google is giving selected apps documentation for this; we couldn't find those docs in public.
The error handling shows how the quota is meant to behave. A per-minute 429 is retried. A daily limit fails at once with a hint to switch models or use a Gemini API key. A daily limit of zero is read as "this model is not on your plan". An account without an eligible plan gets a link to upgrade at one.google.com/ai, and there is a kill-switch message saying the plan "is currently unavailable in pi".
Is it official? What we can and can't confirm
The only evidence that Google approved it is Pi's own README text in the PR. We found no Google announcement, blog post or public doc about third-party apps using Google AI plans, and no statement about it from Google or from Pi's maintainers outside the PR itself. One commenter on the PR insists "This is the official Google endpoint for Pi", though only by quoting the README back; another, HazAT, doubts Google's terms would allow it.
Two other comments matter if you want to try it early. On November 28 a tester building upstream commit 628d2cc reported that Google returned "Error 401: disabled_client" before the consent screen, and asked whether the client is switched off while the PR is a draft. There was no reply at the time of writing. Two commenters also mention December 2 as a launch date. Neither Pi nor Google has confirmed that date in any source we could check.
Does it work with Google AI Pro?
Not as written: the PR targets Ultra, and whether Pro accounts get anything is an open question on the PR. Commenter Andy8647 points out a mismatch. Per Google's plan docs as he reads them, Hydrogen is on every plan including Free, Neon is on Pro and Ultra, and Carbon is Ultra-only, yet the provider is labelled Ultra-only. The code's rule that a zero daily limit means "not on your plan" would fit a per-model setup where a Pro account gets some models and not others, but that is our inference from the code, not something Google or Pi has said.
Why forks like oh-my-pi can't just copy it
Approval is attached to the OAuth client ID, not to the code. The pi-ai library README in the PR says Google approves each app's client separately and does not allow apps to share one, so the reusable library (pi-ai) ships no Google client at all. Other apps have to register their own Desktop app client in their own Google Cloud project, get Google to approve it, and identify themselves with a User-Agent of the form app/version.
oh-my-pi, a Pi fork, got the same answer in issue #20891 from its automated maintainer bot: being a fork gives no claim to Pi's client, and reusing Pi's client ID would mean impersonating Pi. The reply also points to an earlier user report (#19303) of an Antigravity account suspension after using oh-my-pi's OAuth route, and advise anyone who can't risk their account to use a paid Gemini API key or Vertex instead.
Background: Google cut off Gemini CLI sign-in in June
This matters because the main route for using a Google AI plan in a terminal agent closed in mid-2026. Google said on May 19, 2026 that from June 18, Gemini CLI and the Gemini Code Assist IDE extensions would stop serving requests for Google AI Pro and Ultra users and free individual accounts, and pointed them to Antigravity CLI. Paid Gemini API keys kept working. For comparison, Gemini CLI's docs list daily sign-in quotas of 1,500 requests for Google AI Pro and 2,000 for Ultra. The PR doesn't state any quota numbers for the new endpoint.
What to do now
- Wait for the merge and a release note. Pi's README already says to run /login inside Pi to connect a subscription or API key; if this lands, the Google option would appear there.
- Don't paste Pi's client ID into another tool or fork. The approval is per app, and oh-my-pi's maintainer bot calls that impersonation.
- If you test the draft branch, use an account you can afford to lose, and know that one tester hit a disabled_client error, so it may not work yet.
- For work that can't stop, keep a paid Gemini API key or Vertex set up as a fallback. Both work today without consumer OAuth.
Try it with your AI. Paste this into your coding agent to check whether your installed Pi already has the Google AI plan sign-in, without signing in or changing anything.
I use the Pi coding agent (npm package @earendil-works/pi-coding-agent). Check, without
changing anything, whether my installed version includes the Google AI Ultra plan
sign-in from earendil-works/pi PR #12614.
1. Run `npm ls -g @earendil-works/pi-coding-agent` and show me the installed version.
2. Find the installed package directory with `npm root -g`, then search it read-only for
the strings `google-ai-plan` and `createPerUserQuota`. Report which files match.
3. If nothing matches, tell me the feature is not in my version and stop.
4. If it matches, list the Google models you find in the provider catalog, but do not
run /login and do not start any sign-in. Ask me first.
Rules: do not install, update or uninstall anything, do not read or print files under
~/.pi or any credential or token file, and do not print or copy any OAuth client ID or
secret.Known limits of this report
Everything above comes from the PR's code, its README changes and public comments as of November 28, 2026. Draft PRs change: the plan name, model list and limits could all be different when, or if, it merges. We haven't run the sign-in ourselves; it needs an Ultra account and, per the tester's report, the client wasn't working yet.
FAQ
Can I use my Google AI Ultra subscription in Pi today? Not in a released version. The support lives in draft PR #12614, which hadn't been merged on November 28, and a tester reported a disabled_client error when signing in from the branch.
Does Pi's Google sign-in work with Google AI Pro? The PR only targets Google AI Ultra. Whether Pro accounts can use some models, such as Hydrogen or Neon, is an open question on the PR with no answer yet.
Which Gemini models does the Pi Google AI plan provider include? Gemini 4 Hydrogen (default), Gemini 4 Neon, Gemini 4 Carbon and Gemini 3.5 Flash-Lite, per the PR's catalog file.
Did Google announce this? We found no Google announcement. The claim that Google approved Pi's OAuth client comes from Pi's README text in the PR.
Can other agents like oh-my-pi or opencode use the same sign-in? Not with Pi's client. Each app needs its own Google-approved OAuth client, according to the PR's README text and oh-my-pi's maintainer bot.
Which thinking levels does each model support in Pi? Per the PR's catalog, Gemini 4 Hydrogen and Neon run from low to xhigh, Carbon from low to high, and Gemini 3.5 Flash-Lite from minimal to high. All four take text and image input.
Related on claudefox
- Google Antigravity Orchestrator explained: how it works, who gets it and when to use it
- Gemini 4 Neon vs Claude Opus 5.5 and Sonnet 5.5: price, per-task cost and when to switch
- How to call Gemini 4 Hydrogen from Claude Code: gemini-api CLI, Docs MCP and skills
- Gemini 4 Hydrogen costs $1.50/$7.50, and it only gets much cheaper than Carbon on December 1
Source: earendil-works/pi PR #12614: Google AI plan, Pi coding agent README, oh-my-pi issue #20891: Google AI plan sign-in for forks, Google for Developers Blog: Transitioning Gemini CLI to Antigravity CLI (May 19, 2026), Gemini CLI docs: Quotas and pricing
This story first appeared in the claudefox daily briefing for November 28, 2026.