/chatgpt-importer:export-all-conversationsfrom chatgpt-importer
Batch-export ChatGPT conversations (a priority subset, or incremental updates; a whole large history is rate-limited, so use the official export for that) (every chat, archived chats and chats inside Projects, all workspaces the login sees) from a logged-in chatgpt.com tab, then build one Parquet table with a row per conversation and a date column, optionally pushed to a private Hugging Face dataset. Use on "export all my ChatGPT chats", "batch export", "mine my ChatGPT history", "make a dataset of my chats", or when the official export is slow or refused.
Ships in chatgpt-importer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The web app's own backend lists and serves conversations; scripts/browser/capture-all-via-api.js walks it from
inside the tab (session token, ChatGPT-Account-Id per workspace) and saves JSONL files through browser downloads.
No message body passes through the agent's context.
https://chatgpt.com/.javascript_tool with OPTS.limit: 20. It returns at once; poll
JSON.stringify(window.__cgx.progress()). Check the files arrived (find them by name; Chrome's download
directory is not always ~/Downloads) and build a test table (step 4)./conversations) was not throttled: 12,190 chats listed in
~3 minutes, 10 pages in parallel. Conversation detail (/conversation/<id>) has its own limiter: a burst of
~150-200 goes through (40 at 10-way concurrency ran at 16.6/s), then every request gets 429 with headers
x-oai-history-detail-rate-limited: 1 and retry-after of 4 s at first, then 60 s: about one chat per
minute. Hammering it with concurrency 10 is what pushed it to 60 s. So a full history (10k+) is NOT a browser job:
use the official export (Settings → Data controls → Export, or a privacy-portal "download my data" request), and
use this script for (a) a priority subset via OPTS.ids, (b) incremental runs via updatedAfter, at
concurrency: 1. The script honours retry-after. How long the penalty lasts was not measured.
Keep the tab open; don't navigate it. Raw size is ~100-250 KB per chat on average.uv run --script scripts/build_dataset.py chatgpt-export-<run>-*.jsonl --out chats.parquet --tz <zone> \
[--merge previous.parquet] [--push <user>/<private-dataset>]
Report rows, date range, by_source, normalize errors and export failures (the -000 manifest lists them).OPTS.updatedAfter: '<ISO date of last run>', then --merge into the previous table.chatgpt.com/admin/api-reference, compliance-logs scopes chatgpt.enterprise.*) needs an
Admin API key. Admin console → Credentials on Business only offers personal access tokens with the scopes
Workspace Agents and Codex: no compliance or history scope. So it is not available on Business.So on Business the browser route here, throttled, is the only self-serve route to full conversation content.
| What | Request |
|---|---|
| Workspaces | GET /backend-api/accounts/check/v4-2023-04-27 (can list one workspace twice; dedupe by account_id) |
| List | GET /backend-api/conversations?offset=N&limit=100&order=updated&is_archived=false|true; total is a running count, not the real total, so stop on a short page |
| Projects | GET /backend-api/gizmos/snorlax/sidebar?conversations_per_gizmo=0[&cursor=], then GET /backend-api/gizmos/<id>/conversations?cursor=0 |
| One chat | GET /backend-api/conversation/<id> (same payload as capture-via-api) |
Headers: Authorization: Bearer <accessToken from /api/auth/session>, ChatGPT-Account-Id: <account id>. On 401
the script refreshes the token; on 429/5xx it backs off exponentially.
The output is the user's entire history. Never commit it; push only to a private dataset (build_dataset.py
refuses an existing public repo). In a Team/Business workspace these endpoints serve the
logged-in member's own sidebar (assumed from what the UI shows; not verified against another member's account).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/capture-via-apiCapture a ChatGPT conversation as raw JSON by calling the authenticated backend API from inside the browser tab. Use when importing from a chatgpt.com/c/ URL or a /share/ link. This is the primary, complete capture route./capture-via-domFallback capture of a ChatGPT conversation by scraping the rendered DOM with scrolling. Use only when capture-via-api fails. Lossy - no timestamps, branches, tool messages or artifact payloads./conversation-to-contextImport a ChatGPT conversation into the current repository as agent context. Use when the user wants to bring a ChatGPT thread into a project, pull a chat into context, or save a conversation for Claude to read later. Writes a Markdown transcript to context/ with the human labelled User./extract-artifactsPull generated documents, canvas docs, code blocks, images and attachments out of an imported ChatGPT conversation and save them as real files. Use when a conversation produced a document, code, or images worth keeping separately./extract-sourcesCollect the sources a ChatGPT conversation cited into a de-duplicated list, as a sources section, footnotes, or a standalone bibliography. Use when the user wants the references, links or citations from a chat./import-chatgpt-conversationImport a ChatGPT conversation into local files. Use when the user gives a chatgpt.com URL or shared link, asks to save/export/archive a ChatGPT chat, wants a transcript with user and assistant turns marked, or wants a ChatGPT thread as Markdown, JSON or PDF. Routes to the right capture and render path.chatgpt-importer@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin chatgpt-importer