A Python CLI tool that converts Claude Code transcript JSONL files into readable HTML and Markdown
open sourceMITself-hostablefree
claude-code-log turns the transcripts Claude Code stores under ~/.claude/projects/ into readable HTML pages and Markdown: an index of every project, a combined page per project and a page per session, with token usage, tool calls, thinking and images, filters to show or hide message types, a zoomable timeline and natural-language date ranges ("last week"). It also has a terminal UI for browsing sessions, exporting them and resuming one with claude -r, a serve command that serves the archive locally with full-text search across every project, and a watch mode that keeps a page or Markdown file current while a session runs. Its --depth and --compact options write condensed Markdown meant for feeding a past session back to a model. Exports of single Codex CLI and Antigravity CLI sessions are experimental.
Problems it solves
- review all my Claude Code conversations in a readable format
- what did I work on with Claude yesterday or last week
- search my entire Claude Code history for a past conversation
- how many tokens are my Claude Code sessions using
- share a Claude Code conversation with someone as a single web page
- feed a past agent session back to an LLM as compact Markdown
- see which tools Claude used in a project and what they returned
- keep a Markdown copy of each Claude Code session in my Obsidian vault as it runs
- browse and resume old Claude Code sessions from a terminal UI
- archive Claude Code transcripts before they're cleaned up and restore them later
- convert raw JSONL transcript files into HTML I can actually read
Features
- converts all of ~/.claude/projects into an index, combined project pages and per-session pages
- HTML and Markdown output, plus JSON for tooling
- interactive terminal UI to browse, export, archive, delete, restore and resume sessions
- serve command with full-text search across every project and session
- watch mode that re-renders a session as it is written
- per-message and per-session token usage
- runtime filters to show or hide message types
- zoomable interactive timeline
- natural-language date range filters such as yesterday or last week
- --depth and --compact options for LLM-friendly Markdown
View 3 more
- classic and minimal themes, with sub-agents and rewind forks as foldable branches
- links commit SHAs in transcripts to GitHub, GitLab, Bitbucket or a self-hosted forge
- experimental single-session exports from Codex CLI and Antigravity CLI
Limitations
- Doesn't export whole Codex CLI or Antigravity CLI archives: support for them is experimental and converts one session at a time1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what claude-code-log does.
- Claude Code Trace Claude Code session log viewer for JSONL files in ~/.claude/projects: browse conversations, tool calls, tokens, and live tail sessions on desktop, web, and TUI
- Claude Code Viewer A full-featured web-based Claude Code client that provides complete interactive functionality for managing Claude Code projects
- claude-code-transcripts Tools for publishing transcripts for Claude Code sessions
- cc-viewer A request monitoring system for Claude Code that captures and visualizes all API requests and responses in real time
- cass (coding-agent-search) Index and search your local coding agent session history across 30+ agents in one timeline
