Hey Product Hunt! Ever wonder where your tokens go in Claude Code? Mostly tool definitions you're not using. Jannal is a transparent proxy between your AI tools and the Anthropic API. One command: npx @buzzie-ai/jannal ✦ Real-time context window visualizer — color-coded by system prompt, tools, messages ✦ Per-turn cost tracking with real Anthropic pricing ✦ Tool filtering — strip 35 of 40 MCP tools, save big ✦ Accurate token counts via count_tokens API ~300KB. MIT licensed
Ever wondered where your tokens go when you use Claude Code? Spoiler: it's mostly tool definitions you're not even using.
Jannal is a transparent proxy that sits between your AI tools and the Anthropic API. One command, zero config:
npx @buzzie-ai/jannal
What you get:
- A gorgeous real-time inspector showing exactly how your context window is sliced up — system prompt, tools, messages, tool results, all visualized as a color-coded bar
- Per-turn cost tracking with actual Anthropic pricing (yes, Opus hurts, we know)
- Tool filtering — the killer feature. Running Claude Code with 40 MCP tools but only need 5? Create a profile, strip the rest, save tokens and money. Your wallet will thank you.
- Accurate token counting via Anthropic's own count_tokens API — not vibes-based estimation
- Session export to JSON/CSV for the data nerds among us
The nerdy details:
It's a ~300KB npm package with ONE runtime dependency (ws). No frameworks. No build step to use. Vanilla JS that would make a minimalist weep with joy.
Your API key passes through in headers — never stored, never logged. Everything runs on your machine.
Built this because I was bleeding tokens on Claude Code sessions and had no idea where they were going. Turns out 40k tokens of tool definitions per request adds up fast when you have a bunch of MCP servers connected.
MIT licensed. Two dependencies. The way software should be.
GitHub: https://github.com/Buzzie-AI/jannal
Superchat