一键提取 Google AI Studio 认证信息(最小化),保存为 {email}.json
一键提取 Google AI Studio 的登录认证信息,导出为 JSON 文件,供 AIStudioToAPI 项目使用。
{邮箱}.json 文件configs/auth/auth-N.json 完全兼容本脚本需要读取 httpOnly Cookie(如 __Secure-1PSID),请按以下步骤配置 Tampermonkey:
注意:本脚本仅支持 Tampermonkey(需要 GM_cookie API)。Violentmonkey / Greasemonkey 不支持。
你的邮箱@gmail.com.jsonauth-0.json(多账号依次为 auth-1.json、auth-2.json...)configs/auth/ 目录仅提取 .google.com 域下的 9 个核心认证 Cookie,不包含任何跟踪或分析 Cookie:
| Cookie | 用途 |
|---|---|
SID |
主会话 ID |
HSID |
HTTP 会话绑定 |
SSID |
Secure 会话绑定 |
SAPISID |
API 认证签名计算 |
SIDCC |
会话 consent |
__Secure-1PSID |
HTTPS 主会话 |
__Secure-1PAPISID |
HTTPS API 认证 |
__Secure-1PSIDCC |
HTTPS consent |
__Secure-1PSIDTS |
会话时间戳 |