Claude Trace Viewer
An alternate web-based viewer for trace logs generated by @mariozechner/claude-trace.
About
This tool provides a complementary viewing experience for trace logs created by @mariozechner/claude-trace. While the original tool creates the trace files during Claude Code conversations, this viewer offers an alternate way to explore and analyze those logs with features like sub-agent detection and timeline visualization and a UI inspired by the browser developer tools network tab for viewing details about individual requests.
What are claude-trace files?
Running claude-trace launches Claude Code and generates JSON logs during the conversations. These files contain detailed information about tool usage, timing, and the flow of operations during a Claude session.
By default, trace files are stored in .claude-trace directory where you launch claude-trace. Each trace file represents a single conversation or task execution, allowing you to analyze Claude's decision-making process and performance.
Prerequisites
First, install @mariozechner/claude-trace to generate trace files:
npm install -g @mariozechner/claude-trace
This will enable trace logging for your Claude Code conversations.
Installation
# Run directly with uvx (no installation needed)
uvx claude-trace-viewer
# Or install with pip/uv
pip install claude-trace-viewer
# or
uv add claude-trace-viewer
Usage
# View traces in current directory (has a `.claude-trace` folder)
claude-trace-viewer
# Specify a different directory
claude-trace-viewer --trace-dir /path/to/directory/that/contains/.claude-trace
# Use a different port, ex: 5000
claude-trace-viewer --port 5000
Click the link printed in the terminal to open the web interface in your browser, defaults to http://127.0.0.1:8080.
Features
- Choose from any of the available trace files in the specified directory
- Interactive timeline visualization
- Sub-agent detection and visualization
- Search and filter capabilities
- Export trace data
- Browser Developer Tools-like interface for detailed request inspection
Development
# Clone the repository
git clone https://github.com/bkrabach/claude-trace-viewer.git
cd claude-trace-viewer
# Install in development mode
pip install -e .
Troubleshooting
No trace files found
If the viewer shows no trace files, ensure that:
- You're pointing to the correct directory (default is
.claude-tracein the current working directory) - Claude has generated trace files during your conversations, go to
.claude-traceand verify that there are JSON files present - You have read permissions for the trace directory
License
MIT
Release files for claude-trace-viewer 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| claude_trace_viewer-0.2.1.tar.gz | 31.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_trace_viewer-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.6 kB
Release files / claude_trace_viewer-0.2.1.tar.gz
| Download URL | claude_trace_viewer-0.2.1.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49762604db4b65b04284d6c79afb64f6af2442857ea80073a7b520f714801fb0
|
|
BLAKE2b-256 checksum How to use checksums |
8160b916fdc9c355115618cf089630076678e6df9aba3eb64aa2546bb4cf13fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2025.
Transparency logRelease files / claude_trace_viewer-0.2.1-py3-none-any.whl
| Download URL | claude_trace_viewer-0.2.1-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07a88651852ae5e419781a5222989b1df590af57b1cc89f562959cf840a62a41
|
|
BLAKE2b-256 checksum How to use checksums |
890c7eb557d6a2f458e4a71526e391ab86df3efa6db6b61e015130f0e889fe6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2025.
Transparency log