Count tokens from your terminal.

Pass a file, pipe a diff, or type a string. Get the input count directly from OpenAI, Anthropic, or Google.