gptme-wrapped

Year-end analytics for your gptme usage - inspired by Spotify Wrapped. plugins/gptme-wrapped View on GitHub

gptme-wrapped

Year-end analytics for your gptme usage - inspired by Spotify Wrapped.

Features

Installation

pip install -e plugins/gptme-wrapped

Configuration

Add to your gptme.toml (user or project level):

[plugins]
paths = ["path/to/gptme-contrib/plugins"]
enabled = ["gptme_wrapped"]  # Optional: limit which plugins load

Standalone Usage (without loading into gptme)

Run directly from the command line:

# Show your wrapped report
python -m gptme_wrapped

# Show activity heatmap
python -m gptme_wrapped heatmap

# Show stats for a specific year
python -m gptme_wrapped report 2024

# Get raw stats as JSON
python -m gptme_wrapped stats

# Export to HTML
python -m gptme_wrapped export --format html > wrapped.html

# From the workspace with uv
cd /path/to/gptme-contrib
uv run python -m gptme_wrapped

Usage in gptme

Once installed, the wrapped tool is available in gptme:

# Get your Wrapped report
print(wrapped_report())

# Get detailed stats
stats = wrapped_stats(2025)

# Export to JSON/CSV/HTML
print(wrapped_export(format='json'))

Example Output

🎁 gptme Wrapped 2025 🎁
========================================

📊 Your Year in Numbers:
  • 847 conversations
  • 12,543 messages
  • 45.2M input tokens
  • 2.1M output tokens
  • $127.34 total cost

🤖 Top Models:
  1. claude-sonnet-4-20250514 (67%)
  2. gpt-4 (21%)
  3. claude-3-opus (8%)

⏰ Peak Usage:
  • Most active hour: 14:00-15:00
  • Most active day: Wednesday

💾 Cache Efficiency:
  • Cache hit rate: 73%
  • Cached tokens: 33.0M
  • Est. savings: $89.50

📅 Monthly Breakdown:
  2025-01: $8.23    ████
  2025-02: $12.45   ██████
  ...

Note on Data Availability

Token and cost metadata tracking is relatively recent in gptme. For the best analytics:

Historical conversations without metadata are still counted but won't contribute to token/cost totals.

Related