A desktop application for counting tokens using the Claude API.
- 🔢 Accurate token counting using Claude API
- 🔐 Secure API key storage using system keychain
- 📝 Token count history tracking and display
- 🎯 Support for multiple Claude models
- 🖥️ Cross-platform support (Windows, macOS, Linux)
- Download the latest installer from the releases page
- Run the installer to install the application
- Get your API key from Anthropic
- Set up your API key in the application settings
- Node.js 22.12.0
- mise (recommended for Node.js version management)
- Biome (for linting and formatting)
# Clone the repository
git clone https://github.com/HeavenOSK/claude-token-counter-desktop-app.git
cd claude-token-counter-desktop-app
# Install dependencies
npm install
# Start in development mode
npm run dev
npm run dev
- Start in development modenpm run build
- Build the applicationnpm run dist
- Create distribution packagenpm run type-check
- Run TypeScript type checkingnpm run clean
- Clean build directoriesnpm run build-renderer
- Build Next.js frontendnpm run build-electron
- Build Electron main processnpm run pack-app
- Create unpacked applicationnpm run release
- Create release buildnpm run lint
- Run Biome linternpm run lint:fix
- Run Biome linter with auto-fix
Directory | Description |
---|---|
/renderer |
Next.js frontend |
/electron-src |
Electron main process |
/main |
Built Electron code |
/dist |
Distribution package |
This project uses Biome for linting and formatting. Configuration can be found in biome.json
.
Lefthook is used for managing Git hooks. It's automatically installed when you run npm install
through the prepare
script.