Skip to content
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.
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.

12K 2 0
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

10K 14 7
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..

5K 93 21
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

5K 4 0
g0GobliN
sutra-agent

A stone gate for the context window.⛩️

4K 2 1
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

4K 1 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

4K 1 0
seangeng
ai-quota-swap

Claude Code and Codex account switcher: keep multiple Claude Pro/Max and Codex accounts, see each one's 5-hour and weekly usage limits, and auto-switch before a rate limit without logging out. CLI, TUI dashboard, macOS menu bar, token costs, usage resets, API key fallback with a budget. Codex is experimental. Based on claude-swap (cswap).

3K 5 1
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.

3K 0 0
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.

3K 753 80
magna56
fiscallm

Open-source AI cost and margin per user. Matches each user's OpenAI, Claude and Gemini cost to what they pay you (RevenueCat, Stripe, CSV). Self-hostable. TypeScript and Python SDKs.

3K 1 3
YauhenBichel
context-handoff

Claude Code plugin: meter what each turn costs, write a handoff note, resume cheaply after /clear

2K 0 0
seangeng
qswap

Claude Code and Codex account switcher: keep multiple Claude Pro/Max and Codex accounts, see each one's 5-hour and weekly usage limits, and auto-switch before a rate limit without logging out. CLI, TUI dashboard, macOS menu bar, token costs, usage resets, API key fallback with a budget. Codex is experimental. Based on claude-swap (cswap).

2K 5 1
nhinata
tallyline

Claude Code status line that tallies your token usage and API-equivalent cost by day, month and year

2K 3 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 6 0
androidZzT
cc-statistics

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

2K 116 14
Moviw
codex-statusline

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

2K 22 5
psychofict
codexwatch-cli

See where your OpenAI Codex tokens, dollars and plan limits go: every response counted once, live 5-hour and weekly limits from your own logs, quota forensics, a web dashboard, menu bar and tray, an MCP server and a share card. Python, no dependencies, no login.

2K 0 0
shangliy
kvleak

Cut Claude Code token cost: find where your prompt-cache money leaks and fix it with one command. Also Codex CLI, Gemini CLI, OpenCode.

2K 3 1
TarekAwwad
checkyouragent

Local analytics for Claude Code project exports

2K 26 4
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 78 4
xiaoran007
tokencat

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

2K 2 0
peterwkdev-creator
claude-context-cost

How much each source (CLAUDE.md, rules, skills, memory, tool results) costs in the context of a Claude Code session, counted from the API usage in its transcript. Also a context budget for CI, and the git version of each file a session loaded.

2K 0 0
douglasmonsky
codex-usage-tracking

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

2K 197 18
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology