The QyrusAI Assure Plugin Developer Challenge is open. – Learn More

Download Chat History from Claude

Built-In Account Export
  • Steps: Open Claude on the web or desktop, select your profile/initials, go to Settings > Privacy, and click Export data. (Not available on iOS or Android.) [1, 2]
  • Download link: Anthropic emails a download link that requires signing in and expires after 24 hours. [1, 2]
  • Plan availability: Available to individual Free, Pro, Max, and Ultra accounts. On Team or Enterprise plans, an Owner or Primary Owner must enable member exports first. [1]
  • What is included: Conversation data, account user data, voice recordings shared with Anthropic, and saved monthly recaps (with exceptions). Original uploaded files and saved Personal Finance dashboard data are excluded. [1]

Download Chat History from Cursor

Cursor saves workspace and global state data locally under your user profile: [1]
  • macOS: ~/Library/Application Support/Cursor/User
  • Linux: ~/.config/Cursor/User
  • Windows: %APPDATA%\Cursor\User [1]
Inside this directory, conversations are split across globalStorage/ and workspaceStorage/ SQLite databases. [1]

Download Chat History from Codex

How you export chat history from Codex depends on whether you are using the Codex CLI, local session files, or ChatGPT account data exports. [1, 2, 3]

1. Local Codex CLI Session Files (.jsonl)

Codex CLI automatically saves session transcripts locally as .jsonl files under ~/.codex/sessions/<YEAR>/<MONTH>/<DAY>/rollout-xxxxxxxx.jsonl. [1, 2]

  • Copy or parse directly: Copy the .jsonl file directly, or process it with a CLI tool like jq to extract specific messages or tool outputs.

  • CLI export / community tools: A user on the OpenAI Developer Community noted that /export can be used in the Codex CLI and pointed to the local .jsonl session path. You can also use third-party utilities such as codex-session-export or Cooontext to convert local session logs into Markdown or shareable formats. [1, 2, 3, 4]

2. Full ChatGPT Account Data Export

If you use Codex through ChatGPT and want an account-level archive: [1]

  • Sign in to ChatGPT and open Settings > Data controls.

  • Select Export under Export data, then confirm.

  • Wait for the email or SMS notification (exports can take up to 7 days), then download the ZIP archive within 24 hours.

  • Extract the ZIP file and open index.html in your browser to browse your exported data locally, including Codex data when present in the archive. [1]

Download Chat History from Antigravity

 
You can download and export Antigravity chat history using built-in interface options or third-party tools that export conversations to Markdown and JSON. [1, 2, 3]
Built-In & CLI Options
  • Chat Panel Export: Open a chat session in the Google Antigravity IDE and click the Export icon in the top-right corner of the chat panel to save the conversation. [1]
  • View & Resume Conversations: You can view previous sessions via the clock or arrow icon at the top of the chat interface, or manage/resume sessions through the Antigravity CLI (agy -c for the most recent chat or agy --conversation <id> for a specific session). A single user on Reddit r/google_antigravity noted accessing past chats through this top icon, while also mentioning issues where the button is greyed out or older chats do not show up. [1, 2, 3]
Tools to Export & Recover Chat History
  • Antigravity History: An IDE extension (for VS Code ^1.85.0) that lets you browse, search, and do one-click exports to Markdown or JSON, plus recover unindexed conversations locally. [1]
  • antigravity-history: A Python CLI and library (aghistory) that exports conversations (including thinking chains, code diffs, and command outputs) to Markdown or JSON and scans .pb files to recover lost chats. [1]