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 headac

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.
If you use uv, you can spin up the local proxy immediately without installing anything: