Claude Code Transcripts banner
simonw simonw

Claude Code Transcripts

Development community intermediate

Description

[](https://pypi.org/project/claude-code-transcripts/) [](https://github.com/simonw/claude-code-transcripts/releases) [](https://github.com/simonw/claude-code-transcripts/actions?query=workflow%3ATest) [](https://github.com/simonw/claude-code-transcripts/blob/main/LICENSE)

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

claude-code-transcripts

[](https://pypi.org/project/claude-code-transcripts/) [](https://github.com/simonw/claude-code-transcripts/releases) [](https://github.com/simonw/claude-code-transcripts/actions?query=workflow%3ATest) [](https://github.com/simonw/claude-code-transcripts/blob/main/LICENSE)

Convert Claude Code session files (JSON or JSONL) to clean, mobile-friendly HTML pages with pagination.

[Example transcript](https://static.simonwillison.net/static/2025/claude-code-microjs/index.html) produced using this tool.

Read [A new way to extract detailed transcripts from Claude Code](https://simonwillison.net/2025/Dec/25/claude-code-transcripts/) for background on this project.

[!WARNING]

The `web` commands for both listing Claude Code for web sessions and converting those to a transcript are both broken right now due to changes to the unofficial and undocumented APIs that these commands were using. See [issue #77](https://github.com/simonw/claude-code-transcripts/issues/77) for details.

Installation

Install this tool using `uv`:

uv tool install claude-code-transcripts

Or run it without installing:

uvx claude-code-transcripts --help

Usage

This tool converts Claude Code session files into browseable multi-page HTML transcripts.

There are four commands available:

  • local (default) - select from local Claude Code sessions stored in ~/.claude/projects
  • web - select from web sessions via the Claude API
  • json - convert a specific JSON or JSONL session file
  • all - convert all local sessions to a browsable HTML archive

The quickest way to view a recent local session:

claude-code-transcripts

This shows an interactive picker to select a session, generates HTML, and opens it in your default browser.

Output options

All commands support these options:

  • -o, --output DIRECTORY - output directory (default: writes to temp dir and opens browser)

...