# ttok 0.4

DevFeed: [ttok 0.4](<https://devfeed.tech/articles/ttok-0-4-77518.md>)

Original publisher: [Read original article](<https://simonwillison.net/2026/Oct/8/ttok/>)

Author: Simon Willison

Published: 2026-10-08T23:34:28Z

Content type: release

Language: en

Sources: [Simon Willison's Weblog](<https://devfeed.tech/sources/simon-willison-s-weblog.md>)

Topics: [tokenization](<https://devfeed.tech/topics/tokenization.md>), [Git](<https://devfeed.tech/topics/git.md>), [OpenAI](<https://devfeed.tech/topics/openai.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-2-271](<https://devfeed.tech/tags/ai-2-271.md>), [cli](<https://devfeed.tech/tags/cli.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [generative-ai-2-013](<https://devfeed.tech/tags/generative-ai-2-013.md>), [library](<https://devfeed.tech/tags/library.md>), [llms](<https://devfeed.tech/tags/llms.md>), [llms-1-979](<https://devfeed.tech/tags/llms-1-979.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openai](<https://devfeed.tech/tags/openai.md>), [openai-474](<https://devfeed.tech/tags/openai-474.md>), [projects](<https://devfeed.tech/tags/projects.md>), [projects-556](<https://devfeed.tech/tags/projects-556.md>), [release](<https://devfeed.tech/tags/release.md>), [source](<https://devfeed.tech/tags/source.md>), [tokenization](<https://devfeed.tech/tags/tokenization.md>), [tokenization-15](<https://devfeed.tech/tags/tokenization-15.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [tool](<https://devfeed.tech/tags/tool.md>), [updated](<https://devfeed.tech/tags/updated.md>), [using](<https://devfeed.tech/tags/using.md>)

## AI overview

ttok 0.4 updates the command-line token-counting tool with a Click warning fix, updated CI, and a command to list supported models. It uses OpenAI's open-source tiktoken library and runs through uvx.

## Source excerpt

Release: ttok 0.4 ttok is my CLI tool for counting tokens, using OpenAI's open source tiktoken library. It hasn't been in updated in a couple of years, but I finally fixed a Click warning, updated CI, and added a --list-models command to list available models. It works with uvx, so you can count tokens in anything like this: cat file.txt | uvx ttok Tags: projects, ai, openai, generative-ai, llms, tokenization