Gateways and telemetry · Read with a key
LiteLLM proxy
Per-request spend logs from a self-hosted LiteLLM proxy: model, provider, tokens, key, team, end user and tags, written as request telemetry and priced by us. LiteLLM's own spend figure is kept for comparison only. Optionally pushes AI Spendbook budgets to LiteLLM virtual keys as max_budget (off unless turned on).
- How data moves
- AI Spendbook reads it on a schedule with a key, token or read-only role you give it.
- Credential
- API key or token
- What it covers
- request telemetry
- Money
- An estimate priced by AI Spendbook, never a bill
- Runs
- each scheduler run (daily on the hosted deployment)
- Freshness
- Spend logs are written when a request finishes; the trailing day is re-read.
- History on first sync
- Up to 365 days
- Not included
- billed cost, cache tokens
- Status
- Built from the vendor's public documentation and tested with recorded responses. Not yet run against a live account.
Set it up
- Enter the https URL of your LiteLLM proxy and a master or admin key.
- Tag requests with metadata or tags such as customer_id:<id> and feature:<name> to attribute them; the keys can be changed under the connection's attribution settings.
- We call GET /spend/logs/v2 only. To push budgets, turn on budget push and link each budget to a virtual key alias; nothing is written until an admin runs the push.
- Inside a private network, set Delivery to push under Sync options and run a forwarder that posts the endpoint's own JSON to POST /api/v1/ingest/push/<connection id> with an ingestion key; nothing is pulled.
What it needs
The LiteLLM proxy URL and a key that can read spend logs (the master key or an admin key). Pushing budgets also needs permission to call /key/update.