Claude Code usage
Claude Code Leaderboard
(189 ⭐ This CLI automatically monitors your token usage and posts your stats to the leaderboard after each Claude Code session.
Install
npx claude-code-leaderboardFound in the project README. Check it for setup steps after installing.
git clone https://github.com/grp06/claude-code-leaderboard.gitFrom the README
Claude Code Leaderboard CLI Track your Claude Code usage and compete on the global leaderboard! This CLI automatically monitors your token usage and posts your stats to the leaderboard after each Claude Code session. Quick Start Follow the setup prompts to authenticate with Twitter and start tracking your usage automatically. How It Works The CLI integrates with Claude Code's hook system to automatically track your usage: 1. Automatic Setup: Installs a tracking hook in your Claude Code configuration 2. Usage Monitoring: After each Claude Code session ends (STOP command), your token usage is collected 3. Data Submission: Usage data is automatically sent to our backend service 4. Leaderboard Updates: Your stats appear on the public leaderboard at claudecount.com What Gets Tracked - Input tokens used - Output tokens generated - Cache creation/read tokens - Session timestamps - Model used (e.g., claude-sonnet-4) Your actual prompts and responses are never collected - only usage statistics. Understanding Claude Code Hooks What Are Hooks? Claude Code hooks are user-defined shell commands that execute automatically at specific points during Claude Code's execution lifecycle. They allow you to inject deterministic, programmatic actions directly into the agent's workflow - ensuring that key tasks always occur exactly when intended, rather than relying on the AI to remember to do them. Hook Types Claude Code supports hooks at different lifecycle events: - Start: When a Claude Code session begins - Stop: When a Claude Code session ends - PreTool: Before any tool or command is executed - PostTool: After a tool or command completes How This Project Uses Hooks This leaderboard CLI specifically uses a Stop hook, which means: - Every time you finish a Claude Code session…
Details
- Repository
- grp06/claude-code-leaderboard
- Language
- JavaScript
- Last updated
- 7 August 2025
- Listed in
- jqueryscript/awesome-claude-code
FAQ
What is Claude Code Leaderboard?
(189 ⭐ This CLI automatically monitors your token usage and posts your stats to the leaderboard after each Claude Code session. It is a usage for Claude Code, from grp06/claude-code-leaderboard on GitHub.
How do I install Claude Code Leaderboard?
Run npx claude-code-leaderboard, then follow the setup in the README.
Is Claude Code Leaderboard popular?
grp06/claude-code-leaderboard has 189 GitHub stars and 27 forks, and is included in 1 curated Claude Code list. It was last updated on 7 August 2025.
More usage & cost trackers
Toktrack
197mag123c/toktrack
Ultra-fast token & cost tracker for LLM Token Usage (e.g. Claude Code)
Claude Codex Usage Dashboard
173frankchiu-dev/claude-codex-usage-dashboard
A local Windows dashboard for Claude Code and Codex usage limits.
Claude Esp
157phiat/claude-esp
Stream Claude Code's hidden output (thinking, tool calls, subagents) to a separate terminal in real-time
Loongsuite Pilot
237alibaba/loongsuite-pilot
Local-first telemetry collector for AI coding agents — unified OpenTelemetry events for Claude Code, Codex, Cursor and more. Token usage, cost, traces and security audit, exported anywhere.
claudetop
212liorwn/claudetop
htop for Claude Code sessions showing real-time cost, cache efficiency and alerts.
Claude Warmup
181vdsmon/claude-warmup
Manipulate Claude Code's 5-hour usage window into resetting when you actually need it.
Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.