โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
C O D E W R A P P E D
by Trollefsen
Your year with Claude Code, Spotify Wrapped style. โจ
A beautiful terminal experience that analyzes your local Claude Code conversation history and presents your coding year in a cinematic, Spotify Wrapped-inspired format.
No installation needed - Just run one of these commands:
# Using uvx (recommended - Python, no install)
uvx claude-wrapped
# Using npx (Node.js, no install)
npx @da-trollefsen/claude-wrapped
# Or install once and run anytime
pip install claude-wrapped
claude-wrappedThe tool launches in interactive mode with arrow-key prompts to guide you through all options. Press Enter to advance through your personalized stats!
โ Pro tip: Using Claude Code? Just paste this repo URL (
https://github.com/da-troll/claude-wrapped) into your conversation and ask Claude to install and run it for you. Sit back, sip your coffee, and let Claude handle the setup while you wait for your stats. Meta, right? ๐
- Total messages exchanged with Claude
- Coding sessions and project counts
- Tokens processed (input, output, cache)
- Cost estimates based on official Anthropic pricing
- Longest coding streak with start and end dates
- Current streak to keep you motivated
- Dramatic reveals - Stats appear one at a time, Spotify Wrapped style
- GitHub-style contribution graph - Visualize your coding patterns
- Movie-style credits - Featuring your top tools, projects, and models
- Fun facts & insights - Like "You coded after midnight 47 times"
Based on your coding habits, discover your type:
- ๐ฆ Night Owl - The quiet hours are your sanctuary
- ๐ฅ Streak Master - Consistency is your superpower
- โก Terminal Warrior - Command line is your domain
- ๐จ The Refactorer - You see beauty in clean code
- ๐ Empire Builder - Building across multiple projects
- ๐ Weekend Warrior - Passion fuels your weekends
- ๐ฏ Perfectionist - Only the best will do
- ๐ป Dedicated Dev - Steady and reliable
- HTML export - Beautiful web page with interactive graphs
- Markdown export - Clean, readable format for sharing
- JSON export - Raw data for your own analysis
- Timestamped filenames - Never overwrite previous exports
๐จ Interactive Mode (Recommended for beginners)
Simply run the command without any arguments:
claude-wrappedYou'll be guided through beautiful prompts to select:
- โณ Time period - Current year, specific year, or all-time
- ๐ค Export format - Terminal only, HTML, Markdown, or JSON
- ๐ฌ Animations - Show dramatic reveals or skip to dashboard
- ๐ Custom filename - Optional custom name for exports
No need to remember complex command-line arguments!
โก CLI Mode (For power users & scripts)
Pass arguments directly for quick access:
# Full cinematic experience (current year)
claude-wrapped 2025
# Skip animations, go straight to dashboard
claude-wrapped --no-animate
# All-time statistics
claude-wrapped all
# Export to HTML
claude-wrapped --html
# Export to Markdown
claude-wrapped --markdown
# All-time stats with exports
claude-wrapped all --html --markdown
# Export raw data as JSON
claude-wrapped --json# Custom filename (without extension)
claude-wrapped --html --output my-wrapped-2025
# Creates: my-wrapped-2025.html
# Default timestamped filenames
claude-wrapped --html
# Creates: claude-wrapped-2025-20260102-1430.htmlHave Claude Code backups in Dropbox, external drives, or exported conversations? Include them all:
# 1. Create a .env file
cp .env.example .env
# 2. Edit .env and add your backup locations (comma-separated)
CLAUDE_BACKUP_DIRS=~/Dropbox/claude-backups/.claude,~/exported-chats,/Volumes/backup/.claude
# 3. Run as normal - automatically combines all data
claude-code-wrappedThe tool auto-detects three different directory layouts:
backup-dir/
โโโ projects/
โ โโโ -Users-you-code-project/
โ โโโ session-uuid.jsonl
โโโ history.jsonl (optional)
projects-dir/
โโโ -Users-you-code-project1/
โ โโโ session.jsonl
โโโ -Users-you-code-project2/
โโโ session.jsonl
backup-dir/
โโโ session1.jsonl
โโโ session2.jsonl
โโโ session3.jsonl
- Messages are automatically deduplicated by
message_id - Order matters: Later directories override earlier ones for duplicates
- List most authoritative/complete sources last
Example:
# CORRECT: Pre-compaction backups listed last (highest priority)
CLAUDE_BACKUP_DIRS=~/.claude/backups/old,~/external-drive/pre-compaction
# WRONG: Pre-compaction backups will be overridden
CLAUDE_BACKUP_DIRS=~/external-drive/pre-compaction,~/.claude/backups/old- Python 3.12+ (with uvx, pipx, or pip)
- Or Node.js 16+ (for npx)
- Claude Code installed (
~/.claude/directory exists)
This tool is 100% local and private:
- โ
No network requests - All data read from local
~/.claude/directory - โ No data collection - Nothing sent to any server
- โ No API keys needed - Works entirely offline
- โ No secrets exposed - Only aggregated stats shown, not conversation content
- โ Open source - Inspect the code yourself
Your conversations never leave your machine.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CLAUDE CODE WRAPPED 2025
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
71,108 263 2.9B 40d
messages sessions tokens best streak
โญโโโโโโโโโโโโโโโ Activity ยท 90 of 365 days โโโโโโโโโโโโโฎ
โ Mon โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ Wed โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ
โ Less โ โ โ โ โ More โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
- ๐ต THE NUMBERS - Cost breakdown by model, total tokens
- ๐ TIMELINE - Journey start, active days, peak coding hour
- ๐ AVERAGES - Messages and cost per day/week/month
- ๐ฅ LONGEST STREAK - Your best consecutive coding days with dates
- ๐ฌ LONGEST CONVERSATION - Your epic coding session stats
- โญ STARRING - Your favorite Claude models
- ๐ PROJECTS - Top projects by message count
Reads your local Claude Code conversation history from ~/.claude/projects/ and aggregates:
- Message counts and timestamps
- Token usage (input, output, cache reads/writes)
- Tool usage (Bash, Read, Edit, Grep, etc.)
- MCP server usage (extracted from tool names)
- Model preferences (Opus, Sonnet, Haiku)
- Project activity (intelligently aggregates common subdirectories)
- Coding patterns (hourly distribution, weekday patterns, streaks)
- Cost estimates (based on official Anthropic API pricing)
The tool recognizes common subdirectories and aggregates them properly:
# Both of these become "my-project":
/Users/you/code/my-project/app
/Users/you/code/my-project/src
# Common subdirectories recognized:
app, src, lib, frontend, backend, api, server, client,
test, tests, public, static, dist, build, etc.uvx (Python ecosystem - most reliable):
uvx claude-wrapped- โ No installation needed
- โ Always runs latest version
- โ Isolated environment
- โ
Requires Python 3.12+ or
uvinstalled
npx (Node.js ecosystem):
npx claude-wrapped- โ No installation needed
- โ Works if you have Node.js 16+
โ ๏ธ Wrapper script that calls Python version
pip (system-wide Python install):
pip install claude-wrapped
claude-wrapped- Installs
claude-wrappedcommand globally - Requires Python 3.12+
pipx (isolated Python install):
pipx install claude-wrapped
claude-wrapped- โ Best of both worlds: installed command + isolated environment
- โ Doesn't pollute global Python packages
- Requires
pipx(installation guide)
Homebrew (macOS/Linux package manager):
brew tap da-troll/claude-wrapped
brew install claude-wrapped- โ Native macOS/Linux package manager
- โ
Easy updates with
brew upgrade - Tap repository: homebrew-claude-wrapped
From source (for contributors):
git clone https://github.com/da-troll/claude-wrapped.git
cd claude-wrapped
uv sync
uv run python -m claude_code_wrappedEditable install (makes claude-wrapped command available locally):
uv pip install -e .
claude-wrappedContributions are welcome! This project is open source and community-driven.
# Clone the repository
git clone https://github.com/da-troll/claude-wrapped.git
cd claude-wrapped
# Install dependencies with uv
uv sync
# Run from source
uv run python -m claude_code_wrapped
# Run tests
uv run python -m claude_code_wrapped.reader
uv run python -m claude_code_wrapped.statsMIT - see LICENSE for details.
If you found this useful, consider:
- Giving it a star on GitHub โญ
- Sharing your wrapped on social media
- Contributing improvements
Built with โค๏ธ for the Claude Code community
Originally inspired by Mert Deveci's concept. This project has since evolved into a completely independent codebase with a different architecture and feature set.