Claude Code usage
Llm Usage Metrics
Token and cost reports for 17 AI coding agents (Claude Code, Codex, Gemini CLI, OpenCode, Copilot, pi and more), read from local session logs across all your machines
Install
npx skills add ayagmar/llm-usage-metrics --skill llm-usage-metrics --agent claude-codeFound in the project README. Check it for setup steps after installing.
git clone https://github.com/ayagmar/llm-usage-metrics.gitFrom the README
llm-usage-metrics Usage reports for AI coding tools, across all your machines. Documentation · Getting started · CLI reference · Contributing llm-usage-metrics reads local session data from 17 AI coding tools, on this machine and on others you reach over ssh, and converts it into one normalized usage history. Use it to review tokens and estimated cost by day, hour, project or session, compare periods, check usage against 5-hour plan windows and subscription prices, correlate usage with local Git activity, explore it all in an interactive HTML report, or export the events. The CLI parses session content on your machine. It discovers standard source locations and includes a bundled pricing snapshot, so the first report can run without configuration or network access. See Privacy for what it reads, stores, and sends over the network. Quick start Requires Node.js 22.16+ or 24+ (Node 23 lacks the SQLite busy timeout the ledger uses), or Bun 1.4+. With no command, llm-usage prints cost and tokens for today, the last 7 days, and month to date, a month-end projection (checked against monthlyBudgetUsd when you set one), what prompt caching saved you this month, a note when a day of the last 7 cost at least $1 and at least 3 times your median active day, then your current and longest streak, best day, and a year-long activity heatmap. llm-usage daily breaks the last 7 days down by day and source, and llm-usage weekly covers the last 8 weeks; add --since YYYY-MM-DD or --all for older usage. If the report is empty, check source discovery. doctor marks each source found, not installed, or unparseable and lists the paths it searched (--verbose adds the paths of sources that are not installed): Reports Common examples: Supported sources In the Real logs column,…
Details
- Repository
- ayagmar/llm-usage-metrics
- Language
- TypeScript
- License
- MIT
- Last updated
- 1 November 2026
- Topics
- aiai-codingclaude-codeclicodexcoding-agentscost-trackingdroidgeminigemini-cligithub-copilotllm
FAQ
What is Llm Usage Metrics?
Token and cost reports for 17 AI coding agents (Claude Code, Codex, Gemini CLI, OpenCode, Copilot, pi and more), read from local session logs across all your machines It is a usage for Claude Code, from ayagmar/llm-usage-metrics on GitHub.
How do I install Llm Usage Metrics?
Run npx skills add ayagmar/llm-usage-metrics --skill llm-usage-metrics --agent claude-code, then follow the setup in the README.
Is Llm Usage Metrics popular?
ayagmar/llm-usage-metrics has 35 GitHub stars and 5 forks. It was last updated on 1 November 2026.
More usage & cost trackers
tmux-ccusage
22recca0120/tmux-ccusage
Shows ccusage cost data in your tmux status bar.
CC Usage
36haishishushu/cc-usage
跨平台 AI 编程助手用量监控桌面应用 | Cross-platform AI coding usage monitor: track Claude / Codex quota, tokens & costs. Data stays local.
Cost Guardian
40Manavarya09/cost-guardian
Real-time cost tracking and budget management for Claude Code. Zero setup. No Docker. No Grafana. Just install and go.
AIUsageMonitor
33ansonliam/AIUsageMonitor
A compact Windows widget for real real time monitoring Codex, Claude Code, Antigravity, and Cursor usage and reset times.
CC Monitor Rs
24ZhangHanDong/cc-monitor-rs
Real-time Claude Code usage monitor with native UI built using Rust and Makepad.
Claude Session Keeper
33nomadictuba2005/claude-session-keeper
claude-session-keeper sends a simple "Hi" message to Claude Code every 5 hours, allowing your rolling clock to reset as early as possible. This can allow you to code a lot more, as if a session starts at 6 am instead of 9 am for example, you can have the same usage in the first session equivalent to 5 hours in just 2.
Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.