Existing option that Theo Browne uses (i.e. cliproxy + clickhouse etc.): https://gist.github.com/t3dotgg/59a521d2ee8d70aaf90e280c1750... via https://www.youtube.com/watch?v=D8PikZ1KhUo or https://github.com/pingdotgg/t3code/blob/e07585e5fba9bdc112a...
garritfra/llmtee
llmtee
garritfra/llmtee
llmtee
Self-hosted LLM proxy that logs every request with tokens, cost, latency, and time to first token. Supports OpenAI, Anthropic, and OpenAI-compatible providers. Single binary with SQLite storage.
Visit project- First shared
- Nov 11, 2026
- HN activity
- 102
Show HN@garritfraNov 11, 2026
Show HN: Log every LLM call with tokens, cost, latency, and time to first token
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.
Community