https://github.com/bgeneto/open-webui-cost-tracker
open-webui function designed to manage and calculate the costs associated with user interactions and model usage in a Open WebUI.
https://github.com/bgeneto/open-webui-cost-tracker
costs models open-webui streamlit tokens usage
Last synced: 6 months ago
JSON representation
open-webui function designed to manage and calculate the costs associated with user interactions and model usage in a Open WebUI.
- Host: GitHub
- URL: https://github.com/bgeneto/open-webui-cost-tracker
- Owner: bgeneto
- License: mit
- Created: 2024-10-02T18:09:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T18:13:47.000Z (11 months ago)
- Last Synced: 2025-03-29T14:41:27.174Z (7 months ago)
- Topics: costs, models, open-webui, streamlit, tokens, usage
- Language: Python
- Homepage: https://open-webui-cost-tracker.streamlit.app/
- Size: 152 KB
- Stars: 27
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# open-webui-cost-tracker
This open-webui function is designed to manage and calculate the costs associated with user interactions with models in a Open WebUI appliance.
The number of (input and output) tokens, price and other metrics are shown in the message status area of Open Webui interface. This status appear right above the message content (see Fig. below)

## Install
Remember to enable the function globally (or by model):

## Streamlit App
This repo also provides a streamlit app to read and process the generated `costs.json` file containing model usage data for every user.
The `costs-.json` file is located in the open-webui `data` directory.A screenshot of the simple streamlit app is shown below.
[Streamlit app for costs processing](https://open-webui-cost-tracker.streamlit.app)
