Posted on Nov 24
I built a local-first CLI proxy to track LLM tokens, latency, and USD cost across providers
When working across multiple side projects and LLM APIs (OpenAI, Anthropic, Gemini, OpenRouter), keeping track of exact token usage and real-time USD cost gets messy fast. Most observability tools require routing your prompts through a hosted third-party SaaSβwhich is overkill (and a privacy headache) if you just want to know how much your scripts are spending.
So I built llm-ledger (llm-ledger-cli)βa lightweight, local-first HTTP proxy and Rich CLI dashboard written in Python.
Try it in 10 seconds (zero install)
If you use uv, you can spin up the local proxy immediately without installing anything:
bash
uvx --from llm-ledger-cli llm-ledger start