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...
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...