https://anthropic-token-counter.vercel.app/
A quick, simple token counting interface for Anthropic's API. This tool helps developers accurately count tokens for their Claude requests.
Uses Anthropic's official token counting API (https://docs.anthropic.com/en/docs/build-with-claude/token-counting).
- Clone the repository:
git clone https://github.com/jerhadf/token-counter.git
cd token-counter
- Install dependencies:
pnpm install
- Create a
.env.local
file in the root directory and add your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_here
- Run the development server:
pnpm dev
- Open http://localhost:3000 to view the counter.
- TypeScript
- Next.js
- Anthropic API
- Tailwind CSS
- Started with create-next-app
- Initial interface created with v0