ttok 0.4

A small CLI tool by Simon Willison that counts tokens using OpenAI's tiktoken. The new version adds a --list-models command.

How to try it

  1. You need uv installed
  2. In a terminal, run: cat file.txt | uvx ttok
  3. For a list of supported models, run: uvx ttok --list-models

Price: free

Official link

More new tools