Convert Codex session JSONL files from ~/.codex/ into clean, mobile-friendly HTML transcripts with pagination.
Inspired by https://github.com/simonw/claude-code-transcripts.
Use uv to install the tool:
uv tool install codex-transcriptsOr run without installing:
uvx codex-transcripts --helpThis tool supports three commands:
local(default) - pick from recent local sessions in~/.codex/sessionsjson- convert a specific JSONL fileall- convert all sessions into a browsable archive
codex-transcripts
# or explicitly
codex-transcripts localcodex-transcripts local --gist
codex-transcripts json ~/.codex/sessions/2025/12/24/rollout-...jsonl --gist-publicThis prints a GitHub gist URL plus a gistpreview.github.io link that renders the HTML.
The gist uses a descriptive HTML filename based on the session details.
codex-transcripts json ~/.codex/sessions/2025/12/24/rollout-...jsonl -o ./outputcodex-transcripts all -o ./codex-archiveAll commands support:
-o, --output DIRECTORY- output directory (default: temporary directory forlocal/json)-a, --output-auto- auto-name a subdirectory based on the session filename--open- open the generatedindex.htmlin your default browser--json- include the source JSONL file in the output directory--gist- create a GitHub gist from the generated HTML and output a preview URL (requires theghCLI)--gist-public- create a public gist instead of a secret gist
If no browser is available, the CLI prints a file:// URL you can open locally (useful for WSL2).
Run tests with:
uv run pytest