← Today's brief

Tools · Updated 9 Oct, 05:04 am IST

Simon Willison updates ttok CLI to version 0.4

Why it matters for readers: If you want to see how many tokens your text uses for models, ttok gives a quick local way to check.

  • ttok 0.4 is an update to a CLI tool for counting tokens built on OpenAI's open-source tiktoken library.1
  • The update fixes a Click warning and refreshes continuous integration (CI) configuration.1
  • A new --list-models command was added to list available models.1
  • ttok works with uvx, so you can pipe file contents into ttok (for example: cat file.txt | uvx ttok).1

Get a brief like this every morning

Uzha reads hundreds of sources and gives you the stories that matter for your work, with every source linked. Free.

Get started