Developer shares userscript to extract ChatGPT Account ID locally
11/11/2026 — 11/11, 22:16·1 sources (all)·1 reports (all)
Key takeaways
- A V2EX user shared a Tampermonkey userscript that calls /api/auth/session locally in the browser and pulls out only the account.id field, so…
Background & analysis
On 2026-11-11 at 21:28, a V2EX user posted a self-written Tampermonkey userscript for extracting a ChatGPT Account ID locally in the browser. According to the post, the JSON returned by chatgpt.com/api/auth/session carries the current session's accessToken in plaintext at the bottom. Within its validity window, obtaining that field is described as equivalent to holding a full login session, allowing API calls or account actions without going through password and 2FA. The field that actually distinguishes account ownership, however, is account.id, a UUID-style Account ID that carries no credential information. The userscript issues a same-origin request to /api/auth/session inside the local browser and extracts only account.id, so that copying the full JSON manually does not drag the accessToken out along with it. The author also offered a lightweight alternative for one-off checks: after signing in to chatgpt.com, open the DevTools Console and run a single fetch('/api/auth/session') one-liner, which returns the Account ID without installing anything. The materials show no further developments after that initial post.
AI-generated from 1 reports · updated 2 days ago
Related AI tools
- Heat index
- 25
- All sources
- 1
- All reports
- 1
- First seen
- 2 days ago
Reports on this story headlines open the original
A V2EX user shared a Tampermonkey script that requests /api/auth/session locally and pulls only the account.id field, so users don't accidentally copy the accessToken embedded in the full JSON response. A one-line browser console command is offered as a temporary alternative.
V2EXAI score 54
Other stories people are talking about
- Heat index 83Study Shows 84% of Local Merchants Are Never Mentioned in ChatGPT and Gemini Recommendations1 sources
- Heat index 119OpenAI Rolls Out Businesses in ChatGPT for Businesses2 sources
- Heat index 2236Nvidia stock plunges after Jensen Huang resigns, with retail investors buying the dip35 sources
- Heat index 1463RisingGoogle Opens Gemini 4 Hydrogen to All Users as High-Speed Model21 sources
- Heat index 1429SurgeJensen Huang exits as NVIDIA CEO, leadership vacuum lingers16 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

