# Log every LLM call with tokens, cost, latency, and time to…

Hi HN, Llmtee is a lightweight llm proxy. I built this project because I needed a simple way to log llm calls across my agents. Existing options require running Postgres, ClickHouse and Redis, or have me use an SDK. llmtree is just a single binary. You point your provider base url to llmtee, it wil…

- **Page:** https://magpie.gallery/i/log-every-llm-call-with-tokens-cost-latency-and-ti-4p3b
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Tags:** llm, proxy, logging, observability, sqlite

## Source

Web · garritfra: Log every LLM call with tokens, cost, latency, and time to first token

- **Original:** https://news.ycombinator.com/item?id=50451943

> Hi HN, Llmtee is a lightweight llm proxy. I built this project because I needed a simple way to log llm calls across my agents. Existing options require running Postgres, ClickHouse and Redis, or have me use an SDK. llmtree is just a single binary. You point your provider base url to llmtee, it will pass the traffic through chunk by chunk and log the usage to an SQLite database (or optionally Postgres). The container image is ~25 MB. Memory footprint is around ~40 MB and added latency is ~0.2 ms. https://github.com/garritfra/llmtee

## GitHub projects

- https://github.com/garritfra/llmtee

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
