ctoc is a lightweight tool designed for analyzing token-level information within codebases. It is built upon gocloc, offering exceptionally fast performance. This tool enables developers to gain deeper insights into their code, particularly when dealing with large code repositories, aiding them in more efficiently identifying and resolving issues. ctoc supports a variety of programming languages, including Go, XML, YAML, Markdown, and more. It also provides advanced features such as viewing and sorting token counts by individual files, and offers multiple output formats to meet diverse needs. In the context of large language models (LLMs), token counting plays a crucial role in shaping the memory and dialogue history of LLMs. ctoc supports multiple LLM models, making interoperability with different models highly significant.