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.

llm-ledger terminal demo

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