Show HN: Tok - A Claude Code token counter (no ANTHROPIC_API_KEY required) (github.com)

🤖 AI Summary
A new command-line tool called "Tok" has been introduced that serves as an exact token counter for the Claude AI model, streamlining the process for developers by eliminating the need for an ANTHROPIC_API_KEY. Instead, Tok utilizes local OAuth credentials stored in the macOS Keychain, making token counting more accessible and user-friendly. Users can interactively type prompts to see real-time token counts and estimated costs, alongside features like smart pasting of images and a range of command options for different use cases. This development is significant for the AI/ML community as it simplifies the workflow for users integrating Claude into their applications, ensuring cost transparency while facilitating token management. Tok accurately interfaces with Anthropic's official token counting API, providing reliable cost estimates based on selected models. Developers can utilize various commands to count tokens from different inputs, including text prompts and image attachments. Overall, Tok represents an essential tool for those working with Claude, enhancing both productivity and accuracy in managing AI interactions.
Loading comments...
loading comments...