GitHub - ryoppippi/ccusage: A CLI tool for analyzing Claude Code usage from local JSONL files.
A CLI tool for analyzing Claude Code usage from local JSONL files. - ryoppippi/ccusage
repo-tokens-calculator is a Python CLI tool that counts tokens in files or directories using OpenAI's tiktoken library, operating fully offline after initial setup.
It supports various model tokenizers, filters by common code and data file types, skips files over 1MB, uses git for fast file discovery if available, and caches results for speed. No API keys or environment variables are required, and output formats range from compact counts to detailed summaries.
A quick and easy command line tool I made to easily calculate the token usage of a particular directory or repository