Harnesses 🇷🇺 10.08.2026 09:02

Claude Code History Viewer: A Browser-Based Viewer for Claude Code Sessions

AnthropicAnthropic OpenAIOpenAI Google/DeepMindGoogle/DeepMind CursorCursor ClineCline GitHubGitHub ZedZed
The article introduces Claude Code History Viewer, an open-source tool that visualizes Claude Code session history in the browser. It supports 28 clients, local processing, and offers features such as global search, token statistics, and cost estimation. The author provides a detailed tutorial on deploying it via Docker and highlights several practical tips.
Claude Code logs every session in ~/.claude/projects/<project-path>/<uuid>.jsonl. The format is machine-oriented; jq can be used but is cumbersome. Claude Code History Viewer (jhlee0409/claude-code-history-viewer, MIT, Rust + Tauri) builds a UI from these files, offering dialogue trees with tool calls, global search, and token/cost stats. It also understands history from 27 other clients like Codex CLI, Gemini CLI, Cursor, Cline, Copilot, Goose, and Zed. Transcripts are processed locally, and the project claims no telemetry. Two modes exist: a desktop app and a headless server that serves the same UI in the browser. The author deploys the server on a Linux machine using a Docker image built from precompiled binaries. The article details the Dockerfile, authentication token handling, and API endpoints. The UI shows project trees, session dialogs, tool calls, thinking blocks, diffs, and command outputs. Global Statistics page reveals 22.5 billion tokens, 414,800 messages, 9862 sessions, and an estimated cost of $12,824 (with 35.4% pricing coverage). The API allows direct access via POST /api/<name> with Bearer. The author notes pitfalls: memory limit, first scan time, default 30-day retention, missing git package in the image, a harmless 405 error in server mode, and security considerations.
Abbreviations
Docker = Docker — контейнеризация
API = Application Programming Interface — программный интерфейс
MIT = Massachusetts Institute of Technology — лицензия MIT
CLI = Command-Line Interface — интерфейс командной строки
UI = User Interface — пользовательский интерфейс
ANSI = American National Standards Institute — кодировка ANSI
HTTP = Hypertext Transfer Protocol — протокол передачи гипертекста
URL = Uniform Resource Locator — единый указатель ресурса
JSON = JavaScript Object Notation — формат данных
Source: Habr — хаб ИИ — original
Our earlier posts on this topic ↓
Fresh news