Repository

RimantasZ/ctoken

ctoken

Simple CLI utility to estimate size of directory or file in tokens

3stars

Open github.com

RimantasZ/ctoken

ctoken

CLI utility to count LLM tokens in files, directories, or standard input.

Visit project

Show me a random project

First shared
Jul 21, 2026
HN activity
40

Show HN@iezhyJul 21, 2026

Show HN: Ctoken – CLI util to count LLM tokens in files, dirs or input

Useful when implementing AI skills, knowledge bases, MCP descriptions etc - its much easier to use CLI tool than web calculator (especially for multiple files)

Community

Hacker News discussion

Loading the thread…