Giter Site home page Giter Site logo

chatgpt-backup's Introduction

Backup your ChatGPT conversations

A single client side script to backup your entire conversation history on chat.openai.com. The output is a single JSON file of your history.

Progress

How to use

  1. Visit https://chat.openai.com
  2. Make sure you are logged in
  3. Open chrome console (F12 on keyboard)
  4. Click on "Console" tab
  5. Copy the entire script content found in file backup.js and paste into the console input field at the bottom
  6. Press enter, script starts and will log progress to console Progress
  7. If it fails at any point you can check the console logs to see the offset it failed at
  8. You can run from any offset by adjusting the script offsets found at the bottom of the script:
const START_OFFSET = 0;
const STOP_OFFSET = -1;

How it works

This uses the same frontend API that is used by your client browser.

Benefits

Some of the key benefits:

  • Nothing to download
  • Nothing to install
  • Tested on chrome
  • Fully client side
  • Single script
  • Copy paste to run
  • Respects rate limits
  • Fails early
  • Adjust offsets if you have many conversations, ex. start at 0 to 500, then run 500 to 1000
  • Fully auditable code in the backup.js file, no third parties

Use cases

  • Backup your conversation history offline
  • The model output from the current OAI terms state that they belong to you
  • Useful if you need to look back when the service is down
  • Intended as a read-only backup (the ids aren't stored)

Notes

  • Tested with 700+ conversations
  • Current rate is 60 conversations/minute
  • Roughly 10 minutes for 600 conversations
  • Roughly 1 hour for 6000 conversations
  • This is to respect the OAI API rate limits
  • Keep your browser tab open, you don't need it to be focused for this to finish
  • Chrome may prompt you to download the file once it's completed

chatgpt-backup's People

Contributors

abacaj avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.