r/DuckDB • • 8d ago

A LiteLLM callback that writes each request to DuckLake

I wrote a small LiteLLM proxy callback that writes one row per request into DuckLake (Apache-2.0).

It’s a callback for the LiteLLM proxy. Each request lands as one row in a DuckLake table, partitioned by day: model, tokens, spend, latency, status, team and key. Prompts and responses are optional. Any DuckDB can query it.

Repo: https://github.com/starlake-ai/litellm-ducklake-sink

2 Upvotes

0 comments sorted by