AI-generated text
ttok 0.4 released: command-line token counter with updates
Tools · October 8, 2026

The ttok command-line tool version 0.4 was released, using OpenAI's open-source tiktoken library for token counting.
The ttok command-line tool version 0.4 was released, using OpenAI's open-source tiktoken library for token counting. According to the developer, the program had not been updated for a few years, but now the Click warning was fixed, continuous integration was updated, and a --list-models command was added to list available models and help check compatibility and token costs. The release version 0.4 indicates smaller but useful improvements. ttok also works with uvx (e.g., cat file.txt | uvx ttok), which is helpful for automated workflows and scripts that require piping. The updated CI improves code quality and deployment reliability, and the Click warning fix reduces distracting runtime messages. The changes are mainly of interest to developers and MLOps engineers and help simplify tokenization and more accurate cost estimation for OpenAI models. The project is tagged with projects, ai, openai, generative-ai, llms, and tokenization.
Related articles More from the section.
Anthropic rewrites its messaging API in Rust
Anthropic recently rewrote its Messages API service from Python to Rust.
Tools · November 25, 2026fx offers developer tools in six megabytes
According to the creators of fx, as artificial intelligence advances, the implementation details of permissions, code changes and tool calls are becoming less visible to users.
Tools · November 25, 2026OpenAI begins testing shared ChatGPT usage limits for Chat and Work
OpenAI has begun introducing a unified Chat and Work experience to a small group of ChatGPT Pro subscribers.


