PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Token Usage Python Packages

Python packages with the GitHub topic token-usage. Sorted by monthly downloads, with stars and forks.
mikehasa
agentacct

See what your coding agents did and what it cost. Breaks each task down into work steps — tools used, files changed, tests run, time and tokens spent. Local-first dashboard for Claude Code, Codex, OpenCode, and more. No login, no telemetry.

11K 767 82
JingbiaoMei
tokdash

Agent Dashboard: Visualization and analytics for Sessions and Quota Usage. Track, analyze, and optimize token usage across providers with heatmaps, cost tracking, token counting and quota resets..

9K 85 21
sblattj
agentic-coding-harness

Run, watch, and meter Claude Code, Codex CLI, Gemini CLI, OpenCode, and Kiro from one CLI. Normalized events, cache-aware token usage, cost accounting verified against each agent's own records, budget caps, OpenTelemetry gen_ai spans, Langfuse traces, and a live web dashboard + MCP server.

9K 1 0
Moviw
codex-statusline

Status bar for Codex CLI and Claude Code: context, 5h/weekly quota with reset times, tokens.

6K 15 4
serkankorkut
tokenmeter-dashboard

Claude Code token usage and cost dashboard. Cost per prompt, cache misses and usage limits for Claude Code, Codex and GitHub Copilot CLI, read from local logs. Zero dependencies, nothing leaves your machine.

6K 23 0
shiki-yusuke
coding-agent-cost

Measure AI coding agent token usage and estimate costs from local logs (Claude Code / Codex CLI) — zero dependencies, zero network

5K 1 0
gaurav-gandhi-2411
adk-tracegauge

See what your Google ADK agent costs (per-invocation USD from token usage) and fail CI when it gets more expensive.

5K 0 0
RedRobotKK
replay-doctor

If the agent bill went up and nothing errored, a prompt cache broke. Replay Doctor names the turn it broke on, the cause, and the tokens re-billed at write prices. Reads Claude Code and Codex transcripts already on disk. Local Go CLI, zero third-party dependencies, no account, and no network request you did not type.

4K 3 0
knight22-21
codeprism-ai

Standalone Python package + MCP server that builds and maintains a persistent knowledge graph of any codebase, exposing precise, token-efficient context to AI coding agents.

4K 5 8
us-urvin
worklog-for-claude-code

Daily work log and token report across Claude Code accounts and devices, synced through your own private git repo

3K 3 0
androidZzT
cc-statistics

AI Coding stats dashboard — track costs, tokens, and efficiency across Claude Code / Gemini CLI / Codex / Cursor

3K 116 14
nicktoumpelis
clocwork

Lines per language, AI co-authored commits and token cost over a repository's whole history, as one dashboard.

2K 2 0
PaulMorrisDev
claudeglass

Are you using Claude Code well? Finds the habits and settings that waste tokens, from the transcripts on your machine. Local dashboard, stdlib-only Python.

2K 3 0
KrishBhimani
argus-code

See what Claude Code and Codex actually did. Local-first observability for every session: which tools ran, what each sub-agent was told, which turn blew the budget. Cost, tokens, error alerts, full-text search. SQLite on your machine, nothing leaves it.

2K 9 1
yaoyuxiang-gnn
agent-budget-guard-py

Budget caps, runaway-loop detection and circuit breakers for AI agents. Zero dependencies, framework agnostic.

2K 20 0
Socialpranker
agentburn

Which 5-hour window took you out — and where the money goes. Local profiler for Claude Code, OpenClaw & Hermes Agent: usage windows, burn by source (cron/chats/subagents), the overnight bill, why it burns (loops, retries, idle wake-ups), ready config fixes. Zero deps, nothing leaves your machine.

2K 112 3
Mai0313
vibe-coding-tracker

Track AI coding costs in real-time — a lightweight Rust CLI/TUI for Claude Code, Codex, Copilot & Gemini usage and cost analytics

2K 14 7
pach-boop
tokencur

The CUR for your tokens — convert multi-provider AI/LLM usage into FOCUS-conformant cost datasets, validated by the FinOps Foundation's focus-validator

2K 0 0
czoido
burnie

Local cost analytics for Claude Code.

2K 1 0
douglasmonsky
codex-usage-tracking

Local-first MCP tools and dashboard for investigating Codex token usage, credits, costs, caching, and thread patterns.

2K 195 20
arsentev-ai
contextburn

How much of what your coding agent spends is actually work: the share of paid tokens that became output, not context re-reading. Local, no network calls.

2K 0 0
xiaoran007
tokencat

Local token and cost analytics for coding agents and subagents. macOS app + CLI; no provider credentials required.

1K 2 0
llm-measurement
llm-sketchkit

Count distinct LLM users and find top token consumers across services, days and tools. Fast, small, portable summaries in Go and Python.

1K 3 0
boldsamurai
cc-monitor

Real-time Claude Code token usage and cost monitor in your terminal

1K 0 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology