[GH-ISSUE #1404] [FEAT]: Track Token Costs During Chat and Record Statistics #897

Closed
opened 2026-02-22 18:22:05 -05:00 by yindo · 2 comments
Owner

Originally created by @chalitbkb on GitHub (May 15, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1404

What would you like to see?

Is it possible to calculate the token cost used in each conversation at the bottom of the chat box and keep a record of all statistics, including total expenses, on the dashboard?

Example
image

image

Originally created by @chalitbkb on GitHub (May 15, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1404 ### What would you like to see? Is it possible to calculate the token cost used in each conversation at the bottom of the chat box and keep a record of all statistics, including total expenses, on the dashboard? Example ![image](https://github.com/Mintplex-Labs/anything-llm/assets/32437546/4dd04a78-0c4f-46c8-97f8-1651b153b75b) ![image](https://github.com/Mintplex-Labs/anything-llm/assets/32437546/de2691ca-2bdb-4d45-ad89-a8072a730896)
yindo added the enhancementfeature request labels 2026-02-22 18:22:05 -05:00
yindo closed this issue 2026-02-22 18:22:05 -05:00
Author
Owner

@CaffiendDevKit commented on GitHub (Feb 22, 2025):

I would also like to see this.

I would be happy to manually enter the costs when selecting the specific model, either default or per workspace.

I can see some complications in that some providers offer a flat rate for in and out, some offer a different price for in and out.

But would be a great feature to see implemented

@CaffiendDevKit commented on GitHub (Feb 22, 2025): I would also like to see this. I would be happy to manually enter the costs when selecting the specific model, either default or per workspace. I can see some complications in that some providers offer a flat rate for in and out, some offer a different price for in and out. But would be a great feature to see implemented
Author
Owner

@timothycarambat commented on GitHub (Jul 10, 2025):

We have now had metrics recording for a while now and they can be see when hovering over any LLM response as well as clicking them will show them instantly as reported

@timothycarambat commented on GitHub (Jul 10, 2025): We have now had metrics recording for a while now and they can be see when hovering over any LLM response as well as clicking them will show them instantly as reported
yindo changed title from [FEAT]: Track Token Costs During Chat and Record Statistics to [GH-ISSUE #1404] [FEAT]: Track Token Costs During Chat and Record Statistics 2026-06-05 14:37:48 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#897