Sulat.com / Writing on AISaturday, November 28, 2026
Agent Engineering/28 November 2026

What Pi’s Google AI Ultra plan sign-in does and how to try it

Pi has a draft pull request that signs in with a Google AI Ultra plan instead of an API key. This is what the X thread claims, what the code shows, and how to try it.

Glossy 3D Pi and Google logos side by side, a key card above and a glowing line to a stack of quota tokens, for Pi's Google AI Ultra sign-in
Illustration: Sulat, featuring the Pi and Google logos

At a glance

  • An X thread on 27 November says Google approved Pi's OAuth client for Google AI Ultra plan sign-in, a claim Pi's own README makes and that I found no Google statement to confirm.
  • Pi's draft pull request 12614 signs in with a Google desktop client, binds the refresh token to a P-256 key stored in auth.json, and calls Google's per-user quota endpoint.
  • Pi's README says forks and apps built on its packages must register their own Google OAuth client, because the approved client belongs to Pi alone.
  • Pi hard-codes four models, retries per-minute limits, and stops at daily limits, which a code comment says reset at midnight Pacific time.

Pi, the open-source coding agent from Earendil, has a draft pull request that lets people sign in with a Google AI Ultra plan and use its Gemini quota instead of an API key. A widely shared X thread on 27 November says Google approved Pi for this; Pi’s own README says the same, and Google hasn’t published anything I could find that confirms it.

The sign-in runs through a Google OAuth client that Pi says Google approved for Pi alone, so a fork can’t copy it. I read the pull request’s code, checked each claim in the thread against it, and went through the replies and the other agents that touch the same Google endpoint. I didn’t run the sign-in, because it needs an Ultra account and Pi’s approved client. How to try it is below.

Unicorn (@ohayou792) on X, 27 November: a thread on Pi’s Google AI Ultra sign-in, written in Chinese.

What the thread says, and what holds

The thread’s author says they read pull request 12614, which Pi’s repository listed that day as a draft not yet merged into its main branch. They say Pi applied to Google for its own approved OAuth client, that Google makes each tool register a separate desktop app and submit it for review, and that the refresh token is bound to a key made on the user’s machine. They add that requests go to a new personal-quota endpoint open only to AI Ultra, and that Google can switch off a single app at any time.

Claim in the threadWhat the code and docs showVerdict
Google approved Pi’s OAuth clientPi’s README says the client is one “Google approved for pi only”. I found no Google statement.Pi’s claim, not confirmed by Google
Pull request 12614 is a draft, not mergedThe thread said so on 27 November. I read the branch that day and haven’t rechecked its state since.Held when the thread was posted
Each tool needs its own approved desktop clientPi’s README and its AI package README both say apps must register their own client, and the package ships none.Holds, per Pi
The refresh token is tied to a key made on your machineThe sign-in code generates a P-256 key, stores it beside the refresh token, and signs each refresh request with it (a scheme called DPoP).Holds
Requests go to a new per-user quota endpointThe code posts to /v1beta/interactions:createPerUserQuota on Google’s Generative Language API.Holds
Only AI Ultra works, not ProPi’s code and messages name only the Ultra plan. One reply says a Pro account worked and a free one didn’t; I couldn’t test either.Ultra is Pi’s target; Pro is unverified
Google can disable one app at a timePi’s error handling has a message for a blocked client: “The Google AI Ultra plan is currently unavailable in pi.”Holds, per Pi’s code
Reverse-engineered and shared-credential plugins will stop workingThis is the author’s prediction. Nothing I read measures it.Opinion
Source: the thread, pull request 12614 and Pi’s READMEs.

How the sign-in works

The flow is a standard Google desktop sign-in with an extra lock on top. Pi opens a browser page where the user approves access. It listens for the reply on a loopback address (a port on the user’s own machine), and it uses PKCE, a code check that stops a stolen reply from being reused. The scope it asks for is generative-language.peruserquota, which is Google’s name for quota that belongs to the person rather than to a cloud project.

Hand-drawn four-step diagram: approve Pi in the browser, Pi makes a key pair, Google ties the refresh token to the key, Gemini chat runs on your plan
Pi makes the key itself, so the refresh token only works on the machine that signed in.

The lock is DPoP, a standard (RFC 9449) that ties a token to a key the client holds. Pi generates a P-256 key on the user’s machine, keeps it in auth.json next to the refresh token, and signs every refresh request with it. A copied refresh token without the key is useless. The flip side is that auth.json now holds both halves, so it needs the same care as a password file.

Chat requests then go to Google’s Interactions API at the per-user quota address, with the access token as a bearer credential and streaming over server-sent events. Pi sends store: false and the whole conversation each time, so Google isn’t asked to store the conversation between turns.

Hand-drawn comparison: an API key bills every token, while plan sign-in draws on your Google AI Ultra monthly quota
An API key bills every token; plan sign-in draws on the subscription’s quota.

Which models, and what happens at a limit

Google’s plan has no endpoint that lists models, so Pi hard-codes four. A code comment says Google’s partner docs require a fixed list. Cost is set to zero because the plan covers usage.

ModelPi model IDThinking levels
Gemini 4 Hydrogen (default)gemini-4-hydrogenlow to xhigh
Gemini 4 Neongemini-4-neonlow to xhigh
Gemini 4 Carbongemini-4-carbonlow to high
Gemini 3.5 Flash-Litegemini-3.5-flash-liteminimal to high
Source: Pi’s provider catalogue in pull request 12614. Each takes text and image input, with a 1,048,576-token context window and up to 65,536 output tokens.

The error handling is the most careful part of the change. A per-minute 429 is retried. A daily limit isn’t: Pi stops and tells the user to switch model or use a Gemini API key, and a code comment says the daily limit resets at midnight Pacific time, which is about 9pm in New Zealand while Pacific time is on standard time. A model the plan doesn’t include fails at once with “Choose another model”. A 401 asks the user to run /login again, and a 402 or 403 points to the plans page at one.google.com/ai.

Hand-drawn grid of four error cases: per-minute cap retries, daily cap stops, model not on plan, client switched off
Only the per-minute cap is retried; every other failure stops with a plain message.

One comment in the refresh code matters for daily use. It says Google’s docs treat an expired grant, listed as 7 days, or a revoked one as final, and Pi then asks the user to sign in again. A sign-in that lapses after a week is Pi’s reading of Google’s documentation; I haven’t seen it happen.

What it means for other harnesses

The rule that matters is in Pi’s own README: the approved client belongs to Pi, and “forks and other apps built on pi’s packages must register their own Google OAuth client and replace pi’s”. The AI package ships no client, and its README shows the one-line change for an app that has its own: googleAiPlanProvider({ clientId, clientSecret }). The hard part is getting Google to approve the client, and I found no public guide from Pi on how.

Hand-drawn three-step list: Google approves each app's own client, a fork cannot reuse Pi's client, so apply for your own client first
A fork needs its own approved Google client; Pi’s can’t be copied.
HarnessWhere it standsSource
PiOwn Google client, approved for Pi per its README. Code is in a draft pull request, not a release.Pull request 12614
Hermes AgentThe Solstice plugin signs in through a Nous Portal broker that holds the Google client secret. In late October, users reported a Google 403 saying the app was in testing mode. The agent’s own Google provider code now calls the same per-user quota endpoint.Solstice issue 3, account_client.py
oh-my-piA Pi fork whose code already contains a Google Interactions provider for the same endpoint. I couldn’t tell which client it signs in with.google-interactions.ts
PiGA Pi-based project with an open issue asking its maintainer to get its own OAuth client approved.Issue 585
Status as I read each repository on 27 and 28 November.
Hand-drawn grid comparing Pi, Hermes Agent, oh-my-pi and PiG and how each reaches Google AI plan quota
Four harnesses, four routes: only Pi’s own client is described as approved by Google.

Google’s stance toward third-party agents until now was an API key. I covered that for Hermes on 20 November in Hermes Agent has no Gemini plan sign-in, where Google’s Gemini CLI FAQ says piggybacking on its OAuth sign-in violates its terms. A per-app approval is a different arrangement: Google decides which tools get plan quota, and each tool carries its own client that Google can turn off.

The cautionary case is on the other side of that line. T3 Code removed an Antigravity quota probe that read Google sign-in tokens in version 0.1.13; I set that out in the T3 record. A tool that reuses someone else’s tokens is exposed to bans; a tool with its own approved client is exposed to a kill switch. For any harness, the first step is the same: ask whether Google will approve your client, because copying Pi’s won’t work.

How to get started

Pi’s sign-in isn’t in a release yet, so there are two paths. I couldn’t run either end to end, so treat the steps as what Pi’s docs and the pull request describe, not as something I reproduced.

If you use Pi and have an AI Ultra plan. Wait for the pull request to merge and ship, then update and sign in. The installer and npm commands below are from Pi’s quickstart; it needs Node.js 22.19 or newer for the npm route.

Code
curl -fsSL https://pi.dev/install.sh | sh
# or
npm install -g --ignore-scripts @earendil-works/pi-coding-agent

If you want to try it before it ships. Run Pi from the pull request’s branch. Pi’s README gives the development commands; the first two lines fetch the branch, and the build step refreshes model data over the network.

Code
git clone https://github.com/earendil-works/pi.git
cd pi
git fetch origin pull/12614/head:pr-12614
git checkout pr-12614
npm install --ignore-scripts
npm run build
./pi-test.sh

Then, inside Pi:

  1. Run /login and pick the Google AI Ultra plan provider, labelled “Sign in with Google (AI Ultra)” in the code.
  2. Approve access on the Google page that opens. Pi catches the reply on a local port; a manual-code prompt is the fallback.
  3. Run /model and choose Gemini 4 Hydrogen, the provider’s default, or another of the four models.
  4. Check that auth.json in your agent directory now holds the sign-in, keep it out of backups and repositories, and expect to sign in again if Google expires the grant.

If you build on Pi’s packages, register a Desktop app client in your own Google Cloud project, get Google to approve it for the plan, and pass it to googleAiPlanProvider. Set your app’s name and version as its identity as well, because the AI package README says Google identifies apps by User-Agent.

If you seeIt meansDo this
“Run /login to sign in again”A 401, or a scope problemSign in again
“does not have an eligible Google AI Ultra plan”A 402 or 403 for your accountCheck the plan at one.google.com/ai, or use a Gemini API key
“Daily limit reached for” a modelThe model’s daily quota is spentSwitch model; the limit resets at midnight Pacific
“currently unavailable in pi”Google has blocked the clientNothing on your side; use an API key meanwhile
Source: Pi’s error handling in pull request 12614.

What I didn’t check

I didn’t sign in, so I can’t say how the Google consent page reads, whether a Pro account works, or how long a session lasts. I didn’t compare quota on the plan with API pricing, and Pi’s code sets cost to zero without stating Google’s limits. Google hasn’t commented in anything I found. The pull request was a draft when the thread was posted, so any of the details above can change before it merges.


Sources


Discover more from Sulat AI & Tech News

Subscribe to get the latest posts sent to your email.