ttok 0.4
Blog · Watch/Read · (gathered 2026-10-14)
- Simon Willison released
ttokversion 0.4, an update to his CLI tool for counting and truncating text based on tokens, leveraging OpenAI’s open-sourcetiktokenlibrary. - This release, the first in a couple of years, addresses a Click warning, updates CI, and introduces a new
--list-modelscommand to display available tokenization models. ttokis designed to work seamlessly withuvx, enabling users to easily pipe text from various sources for token counting, such ascat file.txt | uvx ttok.