ttok 0.4 released with a --list-models command
AI summary
Simon Willison released version 0.4 of ttok, his command-line token counting tool built on OpenAI's open source tiktoken library. The update fixes a Click warning, refreshes the CI setup, and adds a --list-models command for listing available models. The tool runs via uvx, so tokens can be counted with a command like cat file.txt | uvx ttok.
In-depth insight
Lightweight token counters remain handy for developers estimating context limits or API costs.
Recent articles
- Hello Python 3.15, goodbye 3.10, and now I can use 3.11 - 12th October 2026
- A new feature for my blog, built using my voice - 9th October 2026
- Claude Haiku 5.5 - 7th October 2026
- We're going to need default hard budget caps on pretty much everything - 3rd October 2026