↓Skip to main content
Zeitgeist — a spike by Chris Gathercole
  1. Creators/
  2. Simon Willison — Creator of Datasette; co-creator of Django/

ttok 0.4

Blog · Watch/Read · (gathered 2026-10-14)

  • Simon Willison released ttok version 0.4, an update to his CLI tool for counting and truncating text based on tokens, leveraging OpenAI’s open-source tiktoken library.
  • This release, the first in a couple of years, addresses a Click warning, updates CI, and introduces a new --list-models command to display available tokenization models.
  • ttok is designed to work seamlessly with uvx, enabling users to easily pipe text from various sources for token counting, such as cat file.txt | uvx ttok.