Agent Usage Tracker — AI skill for Claude Code
Passive, subscription-safe token & model usage tracker for coding agents (Claude Code, Codex, Cursor, Pi).
How to install Agent Usage Tracker
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open rhnfzl/agent-usage-tracker and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Usage Tracker does
Passive, subscription-safe token & model usage tracker for coding agents (Claude Code, Codex, Cursor, Pi). Reads local logs, normalizes, ships to a self-hosted sink.
Alternatives in AI
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Token Monitor — Local-first desktop widget for tracking token usage, costs, and limits across 32+ AI coding tools—including Cl 1.8k ★
README
agent-usage-tracker (`aut`)
[](https://github.com/rhnfzl/agent-usage-tracker/actions/workflows/ci.yml) [](https://www.python.org/downloads/) [](LICENSE)  
Coding agents on a subscription do not tell you what they cost. There is no per-session invoice line, no dashboard that adds up across tools, and the flat monthly fee hides everything underneath it.
This reads the logs **Claude Code, Codex CLI, Cursor, and Pi already write to disk**, normalises every assistant turn into one event, and pushes it to a sink you host yourself (an n8n webhook by default, or Postgres/TimescaleDB directly over Tailscale).
Two collectors are opt-in because they need something the others do not:
cursor_sdk, for agents built on the Cursor Agent SDK. Those write no session logs, because the SDK returns usage in-process and the app persists it. Pointcursor_sdk_manifestsat the runmanifest.jsonfiles such an app writes and their per-run tokens flow through the same pipeline.cursor_api, for accurate Cursor usage. The localcursorcollector is only a lower bound, and thecursor-agentCLI writes no token counts to disk at all. This one pulls your own per-event usage from Cursor's dashboard API using the locally stored session token, which the tool never persists. On a team plan it scopes strictly to your own user and re-checks every event, so a teammate's usage is never captured. It makes authenticated network calls, so it stays off until you setcursor_api = true.
Why not a proxy?
Because these agents log in with an **OAuth subscription, not an API key** (Cla
Related Skills
TokenTracker
Local-first AI token usage & cost tracker for 31 coding tools incl. Claude Code, Codex, Cursor, Gemini & DeepS
Claude Code Flash
Cut Claude Code token usage: hooks, Sonnet/Opus subagents, orchestration rules and /review + /task commands th
Herdr Agents Tracker
Herdr plugin that shows your AI subscription usage: account limits in the tab bar, a context meter per agent,
Skill Cost
Multi-harness token-usage cost reporter for AI agent sessions (pi, Claude Code, Codex, opencode). Reads JSONL
AI CLI Observability
Self-hosted OpenTelemetry observability stack for Codex, Claude Code, and Gemini CLI, with Grafana dashboards
Usage Radar
用量雷達 Usage Radar: a private, self-hosted dashboard for your AI subscription quotas (Claude, Codex, Gemini via
Related Agents
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
Usage Scout
Read-only scout for session, token, and cost code in this FastAPI tracker. Use when the user asks where usage
Token Tracker
Logs token usage estimates for each agent run to .claude/token-stats.json. Call this after any agent completes