litellm - 💡(How to fix) Fix [Feature]: Compare daily usage across multiple keys of a single user in the Usage dashboard [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#28234Fetched 2026-05-20 03:40:47
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Fix Action

Fix / Workaround

Right now the only workaround is to hit /user/daily/activity API directly and plot it ourselves, which defeats the purpose of having a built-in dashboard.

RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

The Feature

The Feature

Allow selecting multiple API keys belonging to the same user and visualizing their daily usage (spend, tokens, requests) as comparable time series on a single chart in the Usage tab.

Current state

The backend already returns everything needed: GET /user/daily/activity?start_date=...&end_date=... includes breakdown.api_keys per day with spend / prompt_tokens / completion_tokens / api_requests. This is purely a UI gap.

Proposal

On the Usage tab (when scoped to a single user):

  • A multi-select listing that user's keys by key_aliases
  • A line chart with one series per selected key, x = date, y = spend, with a toggle for tokens / requests
  • Keep the existing aggregated view as default; the multi-key comparison is an opt-in mode

Motivation, pitch

In our deployment, individual users own many keys, typically one per tool/integration (Claude Code, Zed, internal scripts, CI jobs, etc.). The current Usage tab shows a breakdown by key, but there's no way to chart several keys of a single user as overlaid series on the same graph over a date range. This is the most natural way to:

  • See which tool/integration is driving spend over time
  • Detect spikes attributable to a specific key
  • Compare day-over-day behavior of multiple keys at once

Right now the only workaround is to hit /user/daily/activity API directly and plot it ourselves, which defeats the purpose of having a built-in dashboard.

What part of LiteLLM is this about?

UI Dashboard

LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING