Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Token Counter Python Packages

Python packages with the GitHub topic token-counter. Sorted by monthly downloads, with stars and forks.
behrouzbk
prompt-tokensaver

Count tokens across AI models and get concrete, priced suggestions to cut your prompt costs. Runs offline.

4K 7 2
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
abhijitgunjal
llm-token-guard

Track LLM token usage, enforce rate limit & budget policies, and trigger alerts across OpenAI, Groq, OpenRouter, and AWS Bedrock.

1K 21 2
CAOShurong
contextcost

Measure how many tokens an AI agent pays to read your repo, and verify that cuts actually save tokens.

386 0 0
MukundaKatta
agentfit-py

Fit your messages into the LLM context window. Token-aware truncation with multiple strategies, pluggable tokenizers. Python port of @mukundakatta/agentfit.

297 0 0
arian24b
aitc

CLI that counts tokens in text, files or stdin with tiktoken and estimates input cost on GPT, Claude and Gemini models; compares two files and can use live OpenRouter prices.

276 0 0
jmuncor
tokentap

Token tracker for LLM CLI tools with live terminal dashboard

191 811 37
lalPratheesh
context-clipper

✂️ Lightweight, framework-agnostic Python library for intelligent LLM context window management and memory heap packing. Zero dependencies.

171 0 0
thisisiron
vt-calc

Calculate the number of tokens used for images in VLMs

155 1 0
unitythemaker
tokdu

A token counting TUI tool that respects .gitignore and skips binary files

135 7 0
YaronKoresh
pakem

pakem is a repository packaging system designed to convert source trees into portable artifacts for analysis, indexing, sharing, and restoration workflows.

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