Skip to main content

Export Codex session logs to a self-contained, browsable static HTML site (ZIP archive)

Project description

codex-export-tool

Export Codex session logs to a self-contained, browsable static HTML site.

Installation

pip install codex-export-tool

Or from source:

git clone <repo-url>
cd codex-export-tool
pip install -e .

Usage

Interactive mode

codex-export-tool

Shows a list of available sessions, then lets you pick records to export.

Non-interactive mode

# Export entire session by ID
codex-export-tool --session <session-id>

# Custom output path
codex-export-tool --output my_export.zip

# Standalone HTML (no ZIP)
codex-export-tool --session <session-id> --format html

# Open in browser after export
codex-export-tool --session <session-id> --open

# Filter by role
codex-export-tool --session <session-id> --role user
codex-export-tool --session <session-id> --role assistant

# Exclude file diffs
codex-export-tool --session <session-id> --no-diffs

# Time range filter
codex-export-tool --session <session-id> --after "2026-01-01T00:00:00Z" --before "2026-06-01T00:00:00Z"

# Custom session directory
codex-export-tool --session-dir ~/custom/sessions

Output

The output is a ZIP archive (or standalone HTML with --format html). Extract the ZIP and open index.html in any modern browser.

Features

  • Turn structure — Messages are grouped into conversational turns for easy reading
  • TOC sidebar — Jump between turns from the sidebar (mobile-friendly toggle)
  • File diffs — File edits shown with green (add) / red (delete) highlighting
  • Dark mode — Toggle with toolbar button or t key; follows system preference
  • Search — Real-time full-text search with highlighted matches
  • Copy buttons — One-click copy for code blocks
  • Keyboard shortcutsj/k for navigation, / for search, t for dark mode, ? for help

Configuration

Add a .codex-export.toml file in your home or project directory:

[display]
date_format = "%Y-%m-%d %H:%M:%S"
summary_length = 60

[export]
max_file_size_kb = 200
max_diff_lines = 500

License

MIT

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

codex_export_tool-0.1.0.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

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

codex_export_tool-0.1.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file codex_export_tool-0.1.0.tar.gz.

File metadata

  • Download URL: codex_export_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for codex_export_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56b5f0f7c32172f80ff90660db75efd78fb179d8e2d978017653069737ff195b
MD5 f26bfba04b96af690000f9d6da79db5b
BLAKE2b-256 31ac4d09dbd69e42dc67517e4defae080d26addf5d7b7bf80934b0e4d2f982d4

See more details on using hashes here.

File details

Details for the file codex_export_tool-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for codex_export_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 183266981b588892c9f44ef477fb68c602016e5620c81cd8fc0485fd321f347c
MD5 cd75d851a4bef061cf3328f3215d7c0d
BLAKE2b-256 b23406f2cf87f243a08bf69353dd85c0b332b7c243eedfe629ab078a73d3563d

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