[GH-ISSUE #23425] feat: per user model usage analytics #58647

Closed
opened 2026-05-05 23:37:31 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @amirparsadd on GitHub (Apr 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23425

Check Existing Issues

  • I have searched for all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Verify Feature Scope

  • I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions.

Problem Description

Handling user usage limits is very difficult in what we're doing. We have to first fetch all chats (300MB and growing), and then sum up all message usages to get per model usage per user

Desired Solution you'd like

it would be great if there was an analytics endpoint that would return model usage input/output tokens sum per user

Alternatives Considered

we have considered applying a patch to add that endpoint but that's not very clean/maintainable

Additional Context

No response

Originally created by @amirparsadd on GitHub (Apr 5, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23425 ### Check Existing Issues - [x] I have searched for all existing **open AND closed** issues and discussions for similar requests. I have found none that is comparable to my request. ### Verify Feature Scope - [x] I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions. ### Problem Description Handling user usage limits is very difficult in what we're doing. We have to first fetch all chats (300MB and growing), and then sum up all message usages to get per model usage per user ### Desired Solution you'd like it would be great if there was an analytics endpoint that would return model usage input/output tokens sum per user ### Alternatives Considered we have considered applying a patch to add that endpoint but that's not very clean/maintainable ### Additional Context _No response_
Author
Owner

@Classic298 commented on GitHub (Apr 5, 2026):

Can't you use the existing endpoints for that?

<!-- gh-comment-id:4188927875 --> @Classic298 commented on GitHub (Apr 5, 2026): Can't you use the existing endpoints for that?
Author
Owner

@amirparsadd commented on GitHub (Apr 5, 2026):

Can't you use the existing endpoints for that?

i dont think theres an endpoint for that
i need something like token usage, grouped by user, and then grouped by model

<!-- gh-comment-id:4189123771 --> @amirparsadd commented on GitHub (Apr 5, 2026): > Can't you use the existing endpoints for that? i dont think theres an endpoint for that i need something like token usage, grouped by user, and then grouped by model
Author
Owner

@Classic298 commented on GitHub (Apr 5, 2026):

You can get the analytics data from the existing analytics endpoint and then just work with the data from there?

<!-- gh-comment-id:4189163291 --> @Classic298 commented on GitHub (Apr 5, 2026): You can get the analytics data from the existing analytics endpoint and then just work with the data from there?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58647