By wakatime
Track time spent prompting AI, lines of code generated, and overall AI usage metrics in Claude Code sessions using WakaTime. Hooks automatically log data on lifecycle events including user prompts, tool use, compacting, and session end for productivity insights.
Track your AI usage, lines of code generated, time spent prompting AI, etc. using the WakaTime plugin for Claude Code.
WakaTime is an open source plugin for metrics, insights, and time tracking automatically generated from your programming activity.
claude plugin marketplace add https://github.com/wakatime/claude-code-wakatime.git
claude plugin i claude-code-wakatime@wakatime
Add your API key to ~/.wakatime.cfg:
[settings]
api_key = waka_123
claude plugin marketplace update
New: See the lines of code generated by AI on your dashboard!
Visit https://wakatime.com to see your coding activity.

npm run watch
Diagnostic tool for troubleshooting the installation and health of Claude Code and plugins:
claude doctor
Make sure you have node.js installed and in your $PATH:
node -v
Run claude with verbose logging to see any plugin load errors:
claude --debug
Look for errors in the wakatime-cli log file:
grep error ~/.wakatime/wakatime.log | grep -v backoff
Matches all tools
Hooks run on every tool call, not just specific ones
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimnpx claudepluginhub wakatime/claude-code-wakatime --plugin claude-code-wakatimeReal-time session dashboard for Claude Code — cost tracking, analytics, and smart alerts
Tracks Claude Code session usage (tokens, costs, skills, MCP, subagents) and sends data to a self-hosted dashboard.
Live API usage in Claude Code statusline - colored progress bars, Git info, tokens, session metrics, device tracking, and more
Session analytics hook for Claude Code — 15 configurable sections (models, cost, cache, tools, files, git diff, RTK savings...)
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques