I built Offtoco (https://github.com/PacifAIst/Offtoco) — a zero-knowledge offline token counter for GPT, Claude and Gemini
Tired of pasting prompts into online token counters that send your text to a server you don't control? I built Offtoco to fix that.
It counts tokens for GPT (o200k_base), Claude and Gemini simultaneously, gives you a SHA-256 fingerprint of your text, and does all of it 100% locally — no API calls, no telemetry, no internet required after download.
It ships three ways:
- Web app — unzip, open index.html in any browser. Works on a USB stick, an air-gapped machine, or any static server. No Node.js required.
- CLI — standalone executables for Windows, Linux and macOS (~90 MB, no dependencies). Pipe text, pass files, get JSON output for scripting.
- Windows desktop — system tray app with Explorer right-click integration. Right-click any file → token count popup instantly.
GPL-3.0. Everything in the repo, audit it yourself.

Top comments (0)