Settings

Theme

Show HN: Log every LLM call with tokens, cost, latency, and time to first token

github.com

5 points by garritfra · 2 comments · 1 min read

Reader

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.

1 thread
jbloggs777

I remember when Hello World was the first program we'd write.

I too wrote an LLM gateway.. then I did it again, with protocol translation. ;-)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection