📐 Fast and lightweight token estimation for any LLM without requiring a full tokenizer
-
Updated
Jun 2, 2025 - TypeScript
📐 Fast and lightweight token estimation for any LLM without requiring a full tokenizer
tokdu (Token Disk Usage) is a terminal-based utility that helps you analyze and visualize token usage in your codebase. Similar to the classic du (disk usage) command, tokdu shows you how many tokens your files and directories consume, which is essential when working with Large Language Models (LLMs) that have token limits.
Tiktoken-counter as standalone API
Live floating token counter for OpenWebUI — estimates tokens as you type or paste into the editor. Compatible with TipTap.
Display prompt in 75-token chunks alongside the token counter.
Add a description, image, and links to the token-counter topic page so that developers can more easily learn about it.
To associate your repository with the token-counter topic, visit your repo's landing page and select "manage topics."