6 ms·
Claude Token Counter
- simonw 2y agoSource code is here: https://github.com/simonw/tools/blob/main/claude-token-counter.html 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/d6797005adf1688427470f9fcb8d287f https://gist.github.com/simonw/d6797005adf1688427470f9fcb8d2... and then https://gist.github.com/simonw/ebc1e32b9f3ddc0875ce8d875d7100bd https://gist.github.com/simonw/ebc1e32b9f3ddc0875ce8d875d710...
- deleted 2y ago[deleted]