feat: add Tampermonkey userscript for AI Studio auth extraction#125
Open
xjetry wants to merge 1 commit into
Open
feat: add Tampermonkey userscript for AI Studio auth extraction#125xjetry wants to merge 1 commit into
xjetry wants to merge 1 commit into
Conversation
Minimal browser-side auth extractor that runs on aistudio.google.com.
Extracts only the 9 essential Google auth cookies via GM_cookie API
and saves as {email}.json compatible with AIStudioToAPI's auth format.
Member
|
这个方式提取的 auth 有效期你试过没?之前看过这种方法,听说过期很快? |
Author
|
试过可用,有效期还没有验证 |
|
我试了一下有效期大概在1天左右,比较短 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/auth/extract-auth.user.js) that extracts Google AI Studio auth directly from the browser{email}.jsoncompatible with AIStudioToAPI'sconfigs/auth/auth-N.jsonformatHow it works
aistudio.google.com(logged in){email}.jsonauth-N.jsonand place inconfigs/auth/Minimal cookie set (9 cookies)
SIDHSIDSSIDSAPISIDSIDCC__Secure-1PSID__Secure-1PAPISID__Secure-1PSIDCC__Secure-1PSIDTSWhy not more cookies?
__Secure-3P*variants are for third-party contexts — Playwright visits AI Studio as first-partyNIDis Google Search preferences — not needed for auth_ga*/_gcl_auare Google Analytics/Ads trackinglocalStorageitems are regenerated by AI Studio on page loadTest plan
auth-N.json, place inconfigs/auth/, verify AIStudioToAPI can use it