// the find
rawandahmad698/PyChatGPT
⚡️ Python client for the ChatGPT API with, conversation tracking, proxy support and more.
A reverse-engineered Python client for ChatGPT from the pre-API era (late 2022), when OpenAI hadn't released an official API and the only way to automate it was to mimic the browser login flow via a TLS client. It handles token acquisition, conversation tracking, and proxy support without launching a browser.
The auth flow is genuinely clever — it walks the full Auth0 state-token chain using a TLS client rather than Selenium, which is fragile but fast. Conversation tracking with file persistence is a real feature, not just passing message history around. Proxy support is built in at the session level, not bolted on as an afterthought. The options object gives clean separation between configuration and runtime state.
This whole approach was obsoleted in March 2023 when OpenAI shipped the official ChatGPT API. The reverse-engineered login flow will break whenever OpenAI changes their auth flow, and the changelog is already full of 'fixes for part N of token authentication' — a sign of constant chasing. Storing credentials in auth.json on disk is a bad security default. The repo has had no meaningful new development since early 2023 and there is no test suite anywhere in the tree.