Skip to main content

Build a browsable local mirror site from ChatGPT or Claude data exports

Project description

logactyl

Build a browsable, fully offline local mirror site from your ChatGPT or Claude data exports.

What it does

logactyl takes an official data export ZIP from ChatGPT or Claude and generates a static HTML site that you can open directly in any browser (no server required). The site includes:

  • Per-conversation pages with rendered messages, code blocks, TeX math, and attachments
  • Full-text offline search across all conversations
  • Project/folder grouping and an interactive organizer
  • Optional AES-256-GCM encryption at rest

Installation

pip install logactyl

With optional dependencies for rich markdown rendering and encryption:

pip install "logactyl[all]"

Or pick what you need:

pip install "logactyl[markdown]"   # markdown-it-py for CommonMark rendering
pip install "logactyl[encrypt]"    # cryptography for AES-256-GCM encryption

Known issues

There is currently no way to derive project names via inference using the official export archives. When either OpenAI or Anthropic add some mapping for projects in their exports it will be added to this tool.

Quick start

ChatGPT export:

logactyl --chatgpt-zip ~/Downloads/chatgpt-export.zip -o ~/chatgpt-mirror

Claude export:

logactyl --claude-zip ~/Downloads/claude-export.zip -o ~/claude-mirror

Both together (merged site):

logactyl \
  --chatgpt-zip ~/Downloads/chatgpt-export.zip \
  --claude-zip ~/Downloads/claude-export.zip \
  -o ~/chat-mirror

Then open index.html in the output directory.

Appending new exports

Re-run with --append to merge new exports into an existing site without losing organizer edits:

logactyl --chatgpt-zip newer-export.zip -o ~/chatgpt-mirror --append

Encryption

Encrypt the generated site at rest with a passphrase:

logactyl --chatgpt-zip export.zip -o ~/private-mirror --encrypt

Requires pip install "logactyl[encrypt]".

Decrypt or re-key an existing encrypted site:

logactyl --decrypt ~/private-mirror
logactyl --rekey ~/private-mirror

Options

Flag Description
--chatgpt-zip PATH Path to a ChatGPT data export ZIP
--claude-zip PATH Path to a Claude data export ZIP
-o, --output DIR Output directory (default: derived from input)
--append Merge into an existing site instead of overwriting
--encrypt Encrypt the output site with a passphrase
--decrypt DIR Decrypt an existing encrypted site
--rekey DIR Change the passphrase on an encrypted site
--render-markdown Enable CommonMark rendering (needs markdown-it-py)
--no-render-markdown Disable markdown rendering (raw text)
--zip Produce a .zip of the output site
--add-search DIR Add search to an existing site that was built without it

Run logactyl --help for the full list.

Running as a module

python -m logactyl --chatgpt-zip export.zip -o ~/mirror

Requirements

  • Python 3.9+
  • No required third-party dependencies (stdlib only)
  • Optional: markdown-it-py for rich markdown rendering
  • Optional: cryptography for site encryption

License

This repository ships under 0BSD; see LICENSE.

Licensing / provenance notice

This repository may include AI-generated material and minimal human-authored material. To the extent any portion of this repository is not copyrightable, it is made available without restriction.

No bundled third-party source trees, copied dependency code, or shipped upstream license texts were identified in this source tree during this review. Separately installed dependencies remain under their own upstream licenses. See NOTICE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logactyl-0.1.5.tar.gz (122.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logactyl-0.1.5-py3-none-any.whl (111.7 kB view details)

Uploaded Python 3

File details

Details for the file logactyl-0.1.5.tar.gz.

File metadata

  • Download URL: logactyl-0.1.5.tar.gz
  • Upload date:
  • Size: 122.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for logactyl-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3c2df9c83ec31432bf508bbdab1918807265ffaaaf91c06cbdd3223e0a257130
MD5 4a8443cf23bfdc138f836a5668299687
BLAKE2b-256 be2bce8f8adef6c3352c23280159949565b7af70719107320ac75e94f053fd47

See more details on using hashes here.

File details

Details for the file logactyl-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: logactyl-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 111.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for logactyl-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a6574e6d63b5c7c9c9b809944a899c3fb67f584dbc05c7f5d945aae22afdb8bb
MD5 103dcd8de08b756f45a3b535a3da1b81
BLAKE2b-256 57adfeccf42221926b3aaa21a69d46443e6ac26a48dabdc38c42b566f09bce82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page