Open Issues Need Help
View All on GitHubAI Summary: This is a feature request to create a command-line interface (CLI) version of the existing TokenLens tool. The CLI would allow users to tokenize text directly in their terminal, supporting various encoders and potentially displaying token counts and estimated API costs. This would make TokenLens more accessible for scripting, automation, and users who prefer terminal-based workflows.
TokenLens is a Python‑based web app that helps you visualize how large language models tokenize text right in your browser. Instead of guessing how a prompt is broken up into tokens (which drives cost and behavior in services like OpenAI), TokenLens shows it live with colors and counts.