Beautiful web interface for browsing your Claude Code conversation history with search, filtering, and syntax highlighting.
- π Search conversations - Find specific discussions across all your Claude Code history
- π Project organization - Browse conversations by project with session metadata
- π» Syntax highlighting - Code blocks with proper language detection and copy buttons
- π¨ Modern UI - Clean, responsive interface with dark/light theme support
- β‘ Fast pagination - Handle large conversation histories efficiently
- π§ Tool visualization - Clear display of tool usage and outputs
pip install claude-code-viewer
# Start with default settings (looks for ~/.claude/projects)
claude-viewer
# Custom Claude projects path
claude-viewer --projects-path /path/to/your/claude/projects
# Custom port
claude-viewer --port 8080
# Accessible from other machines
claude-viewer --host 0.0.0.0 --port 3000
Then open your browser to: http://localhost:6300
Browse all your Claude Code projects with session counts and quick stats.
View conversations with:
- Proper message formatting and line breaks
- Syntax-highlighted code blocks with copy buttons
- Tool usage visualization
- Search and filtering capabilities
claude-viewer --help
Available options:
--projects-path
- Path to Claude projects directory (default:~/.claude/projects
)--host
- Host to bind the server (default:127.0.0.1
)--port
- Port to run on (default:6300
)--version
- Show version information
Claude Code stores conversation history in JSONL files at ~/.claude/projects/
. This tool:
- Scans your Claude projects directory
- Parses JSONL conversation files
- Presents them in a beautiful web interface
- Enables search and filtering across all conversations
git clone https://github.com/desis123/claude-code-viewer
cd claude-code-viewer
pip install -e .
claude-viewer
claude-code-viewer/
βββ claude_viewer/ # Main package
β βββ cli.py # Command line interface
β βββ main.py # FastAPI application
β βββ utils/ # Utilities (JSONL parser)
βββ static/ # CSS, JavaScript
βββ templates/ # HTML templates
βββ setup.py # Package configuration
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
git clone <your-fork>
cd claude-code-viewer
pip install -e ".[dev]"
- Python 3.8+
- Claude Code (to generate conversation history)
- Modern web browser
Make sure Claude Code has been used and has created conversation files. The default path is ~/.claude/projects
.
Ensure you have used Claude Code and it has generated conversation history. Try specifying a custom path with --projects-path
.
Use a different port: claude-viewer --port 8080
Apache 2.0 License - see LICENSE file for details.
- Built with FastAPI and Bootstrap
- Syntax highlighting by Pygments
- Created for the Claude Code community
- π― Zero configuration for most users
- β‘ Sub-second startup time
- π Full-text search across all conversations
- π± Mobile responsive design
Made with β€οΈ for the Claude Code community