mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-10 23:13:20 -05:00
[GH-ISSUE #23425] feat: per user model usage analytics #58647
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @amirparsadd on GitHub (Apr 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23425
Check Existing Issues
Verify Feature Scope
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
@Classic298 commented on GitHub (Apr 5, 2026):
Can't you use the existing endpoints for that?
@amirparsadd commented on GitHub (Apr 5, 2026):
i dont think theres an endpoint for that
i need something like token usage, grouped by user, and then grouped by model
@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?