Skip to content

neilwjsimpson/export-chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

export-chatgpt

A Claude Code plugin to export all your ChatGPT conversations to Markdown and JSON files.

Especially useful for ChatGPT Business/Team plans where the built-in export feature is disabled.

What it exports

  • All regular conversations (active and archived)
  • All Project conversations
  • Full message history with metadata
  • Output as human-readable Markdown and machine-readable JSON

Requirements

Install

claude plugin install neilwjsimpson/export-chatgpt

Usage

claude
> /export-chatgpt:export-chatgpt

Claude will:

  1. Open ChatGPT in Chrome (or use an existing tab)
  2. Verify you're logged in
  3. Discover all conversations including Projects
  4. Download every conversation's full content (progress shown in tab title)
  5. Present download buttons for you to click

You'll get two files:

  • chatgpt_export.md — all conversations as readable Markdown
  • chatgpt_export.json — full raw data with metadata, message trees, timestamps

How it works

The plugin uses ChatGPT's internal backend API (/backend-api/conversations) via the Chrome extension's JavaScript execution. It authenticates using the session token from /api/auth/session, which is only accessible from within the browser context.

Key technical details:

  • Auth tokens expire after ~1 hour
  • Project conversations use a separate endpoint: /backend-api/gizmos/{project-id}/conversations
  • Chrome blocks programmatic blob downloads, so the plugin creates visible download buttons
  • Large exports (1000+ conversations) take 5-10 minutes; the Chrome extension may disconnect but the script continues running in the page

License

MIT

About

Claude Code plugin to export all ChatGPT conversations (including Projects) to Markdown and JSON. Works on Business plans where built-in export is disabled.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors