Trending storyDeveloping
ttok 0.4 ships with a new model list command
1 report1 sourceupdated 4 hours ago
What happened
AI digest
On October 9, 2026, Simon Willison released ttok 0.4, a CLI token counting tool built on OpenAI's open-source tiktoken library. This version fixes Click warnings, updates CI, and adds a --list-models command so users can list available models. The post also covers running the tool directly with uvx, for example `cat file.txt | uvx ttok` to count the tokens in a file's text.
Written by AI from the coverage · updated 1 hour ago
Coverage
Follow the reports to see the story from different sides.
Oct 9
- Simon Willisonttok 0.4
Simon Willison 发布基于 OpenAI 开源 tiktoken 库的 CLI token 计数工具 ttok 0.4,修复了 Click 警告、更新了 CI,并新增 --list-models 命令用于列出可用模型。该工具可通过 uvx 直接运行,例如 `cat file.txt | uvx ttok` 即可统计 token 数。
Heat over time
Not enough continuous observations to draw a trend yet.