Back to browse
GitHub Repository

Claude Tokens Counter

2 starsRust

A Claude Code token counter

by samjoch·Jun 1, 2026·4 points·0 comments

AI Analysis

●●SolidSolve My ProblemBig Brain

Reuses Claude Code's local OAuth so you never need an API key.

Strengths
  • Reads macOS Keychain directly to bypass API key authentication setup entirely.
  • Interactive TUI supports image pasting with accurate inline token counting.
  • Quiet mode outputs integers for easy scripting and automation pipelines.
Weaknesses
  • macOS-only Keychain dependency excludes Linux and Windows users from using it.
  • Depends on Claude Code installation just to count tokens independently.
Target Audience

Developers using Claude Code CLI on macOS

Similar To

Anthropic Token Calculator · tiktoken · llm-cost

Similar Projects

Developer Tools●●●Banger

Tree, but for Token Usage

Tree-like CLI reveals Claude costs 20-30% more tokens than OpenAI. Solves real context-window budgeting pain.

Solve My ProblemSlickShip It
likium
303mo ago
Developer Tools●●Solid

Ledger – Claude Code Token Spend Analyzer

Local SQLite ledger captures runaway Claude Code sessions before the bill shocks you.

Solve My ProblemCozy
tsv650
301mo ago
AI/ML●●Solid

Claude Code's $200 plan is a 17× subsidy on the raw API

150× token inflation finding — you pay to re-read, not generate.

Big BrainDark Horse
Hiteshjain118
92318d ago