Look for this API call in Dev Tools: https://chatgpt.com/backend-api/conversation/<uuid>
It uses the pagefind project so it can be hosted on a static host, and I made a fork of pagefind which encrypts the indexes so you can host your private chats wherever and it will be encrypted at rest and decrypted client-side in the browser.
(You still have to trust the server as the html itself can be modified, but at least your data is encrypted at rest.)
One of the goals is to allow me to delete all my data from chatgpt and claude regularly while still having a private searchable history.
It's early but the basics work, and it can handle both chatgpt and claude (which is another benefit as I don't always remember where I had something).
Check this project I've been working on which allows you to use your browser to do the same, everything being client-side.
https://github.com/TomzxCode/llm-conversations-viewer
Curious to get your experience trying it!
The html file is just a big JSON with some JS rendering, so I wrote this bash script which adds the timestamp before the conversation title: