Skip to main content

Track your AI usage across Claude Code, Cursor, ChatGPT, Gemini, and more

Project description

Token Hoggers

Gamified, tool-agnostic AI usage leaderboard. Track and compete on your AI usage across Claude Code, Cursor, Gemini, ChatGPT, Copilot, and more.

Inspired by claude_rank but tool-agnostic, with an RPG character system built on the AMI (AI Maturity Index) framework.

How It Works

  1. Install the CLIpip install tokenhoggers
  2. Sign in — Google OAuth at tokenhoggers.com
  3. Synctokenhoggers sync reads your local AI tool stats (counts only, never content)
  4. Compete — See your rank, level, tier, and RPG stats on the leaderboard

Privacy-First

We collect counts and timestamps only. Never prompt text, code, file paths, or API keys.

Collected Never Touched
Token counts (in/out) Prompt/response text
Message & session counts Project/repo names
Tool call counts File paths, code, diffs
Model names API keys, credentials
Timestamps Working directories

RPG Character System

Built on the AMI (AI Maturity Index) — 4 dimensions that measure how you use AI, not just how much.

          MST (Mastery)
             |
   PRC ──────+────── VRS
             |
          END (Endurance)
Stat Measures
Mastery Power-user behavior (tool calls/session, model diversity)
Precision Output per effort (efficiency)
Versatility Multi-tool range
Endurance Consistency (streaks, active days)

Tiers: Bronze → Silver → Gold → Platinum → Diamond

Supported Tools

Tool Data Source Parser
Claude Code ~/.claude/stats-cache.json CLI
Cursor state.vscdb (SQLite, read-only) CLI
Gemini CLI ~/.gemini/tmp/*/logs.json CLI
ChatGPT Web request counting Browser Extension
Gemini Web Web request counting Browser Extension
Claude Web Web request counting Browser Extension

Quick Start

CLI

pip install tokenhoggers

# Check what data is available locally
tokenhoggers status

# Sign in at the web app, copy your token, then:
tokenhoggers config --url https://aaxkbwyolbhjgovmcael.supabase.co/functions/v1/sync
tokenhoggers config --token <YOUR_TOKEN>
tokenhoggers sync

# Re-sync all historical data
tokenhoggers sync --force

Desktop App (macOS)

Menu bar app that shows your stats at a glance.

cd desktop/src-tauri
source ~/.cargo/env
cargo run

Browser Extension

Tracks request counts on ChatGPT, Gemini, and Claude web (never captures content).

cd extension/icons && python3 generate.py
# Chrome → chrome://extensions → Developer Mode → Load unpacked → select extension/

Architecture

collectors/cli/        Python CLI — parses local AI tool stats
web/                   Frontend (vanilla HTML/JS/CSS) — hosted on Vercel
supabase/              Backend — PostgreSQL, Auth, Edge Functions, Realtime
desktop/               Tauri 2.x macOS menu bar app
extension/             Chrome MV3 browser extension

Tech Stack

  • Backend: Supabase (PostgreSQL + Auth + Edge Functions + Realtime)
  • Frontend: Vanilla HTML/JS/CSS (Claude Rank-inspired design)
  • CLI: Python 3.9+
  • Desktop: Rust / Tauri 2.x
  • Extension: Chrome MV3

Contributing

PRs welcome! See CONTRIBUTING.md.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tokenhoggers-0.1.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tokenhoggers-0.1.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file tokenhoggers-0.1.0.tar.gz.

File metadata

  • Download URL: tokenhoggers-0.1.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tokenhoggers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3d64ba514eaa7a6796289172f715e59f72a809a2eecddfe67b2de21a17e97a43
MD5 6865124817be62f3f7b26ee2a10bbc50
BLAKE2b-256 492f7a1c4244b068d477b020ffee823d2b4566cf432e1f7f12791b3629d173a4

See more details on using hashes here.

File details

Details for the file tokenhoggers-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tokenhoggers-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tokenhoggers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec24bfaffde498c3492947878dbf2a145f55904abce712a223c4b4358055d66
MD5 12d853b0502b8a54c76977c501930b0a
BLAKE2b-256 9c6da2a16a479eef560924cbb71b6d649db5bbfcd38d7d60082fd1ec574926fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page