Skip to content

ttok updated from 0.4 to 1.0

2 reports 1 reporting sources first reported Updated 2026-10-09

Understand the event

Report summary

Simon Willison's token-counting CLI tool ttok has been updated to 0.4, fixing Click warnings, updating CI, and adding a --list-models command for listing available models. The tool is based on OpenAI's open-source tiktoken library and can be run directly via uvx, for example `cat file.txt | uvx ttok`.

From Simon Willison

Read next

More changes in today’s briefingGemini Connects to Google Wallet for Personal Finance Insights

Developments

2 developments

  1. 10/9 08:34 (UTC+8) · 1 reports
    ttok 1.0 released, default tokenizer switched to GPT-5/6
    Simon Willison:ttok 1.0 released: default tokenizer switches from GPT-4 to GPT-5/GPT-6
  2. 10/9 07:34 (UTC+8) · 1 reports
    ttok 0.4 released, adds --list-models
    Simon Willison:ttok 0.4 released with a new --list-models command

Report timeline

Follow the reports to explore different sides of the event.

10/9
  1. ttok 1.0 released: default tokenizer switches from GPT-4 to GPT-5/GPT-6

    Simon Willison released ttok 1.0, switching its default tokenizer from GPT-4 to GPT-5/GPT-6.

  2. ttok 0.4 released with a new --list-models command

    Simon Willison's token-counting CLI, ttok, has been updated to 0.4. The release fixes a Click warning, updates CI, and adds --list-models to list available models. The tool is based on OpenAI's open-source tiktoken library and can be run directly with uvx, for example: `cat file.txt | uvx ttok`.

Keep up with AI, one email a day

Model releases, price changes and compute developments, with original sources. Free, confirmed by email, and easy to unsubscribe. Read a past issue