Who am I (ChatGPT)
Report which ChatGPT account the browser is signed into: id, name, email, picture, identity provider — or loggedIn:false when the browser is anonymous. Reads the session endpoint the app itself hydrates auth from; never returns the session's access token.
Input
None
Output
user requiredThe signed-in account; null when the browser is anonymous.
loggedIn requiredFAQ
Ask ChatGPT
Open a new ChatGPT chat, send one question, wait for the answer to finish (up to 3 minutes), and return the answer, the sources it cited, and the web searches it ran. `answers` is a list: ChatGPT sometimes answers twice and asks which reply you prefer, so check its length before reading answers[0]. `references` are the pages the answer cited; `sources` is the wider set of pages its searches found. An empty `references` means that reply cited nothing — the same question may search on one run and not the next, so repeat it before drawing conclusions. `webSearchQueries` lists what ChatGPT searched for, `searches` groups those queries by round with their results, and `calls` lists each search call with every result's type, position, snippet and date. `model`, `stopReason` and `searchContext` say which model answered and how. Signed in, it answers in Chat mode only: when the browser is in Work mode it fails with an error that says so; switch back with set_mode (a Chat choice lasts about four hours). Works signed in or signed out, on a Reduck cloud browser or your own paired browser, in any display language. Signed in, every field is filled, and the account's saved memory can influence the answer. Signed out, ChatGPT shows its citations but not the pages behind them, so `references`, `sources`, `searches`, `calls` and `webSearchQueries` are null (unknown, not none); `answers` and `conversationId` are filled.
ChatGPT billing: list your ChatGPT subscription invoices
ChatGPT subscription invoices, not the OpenAI API platform (that is platform.openai.com/list_invoices). List the billing history of every ChatGPT account the signed-in user belongs to — the personal account and each Business, Team or Enterprise workspace — whichever one the browser currently has open. Each invoice comes with its date, amount, currency, payment status, the plan it paid for, a link to the receipt, and the account it belongs to; a separate accounts list shows each account, how many invoices it has, and whether its billing could be read. The full history is returned, not only the most recent entries. Amounts come back in the currency's smallest unit, so 1917 means 19.17 EUR. When the browser is not signed in to ChatGPT, the result says so with signed_in set to false and empty lists; check it before reading an empty list as an account that was never billed. Feed hosted_invoice_url to invoice.stripe.com/download_invoice_pdf to get the PDF.
OpenAI (ChatGPT) login (Google SSO)
Log into OpenAI / ChatGPT via Google SSO — picks the right account when several are signed in, and does nothing if you're already logged in. If Google interrupts the flow with a password re-confirmation or a 2FA step-up, the script can't complete that step on its own; sign in once manually in the same browser to clear the step-up, then re-run. It may also occasionally fail to complete a fresh login due to the site's own anti-automation checks — if that happens, try again shortly.
