Hacker News new | past | comments | ask | show | jobs | submit login
Claude Token Counter (simonwillison.net)
3 points by handfuloflight 61 days ago | hide | past | favorite | 1 comment



Source code is here: https://github.com/simonw/tools/blob/main/claude-token-count...

It works by calling the new Claude token counting API directly from your browser, so you'll need to give it an API key (stored in localStorage)

I got Claude to build most of it: https://gist.github.com/simonw/d6797005adf1688427470f9fcb8d2... and then https://gist.github.com/simonw/ebc1e32b9f3ddc0875ce8d875d710...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: