{"id":25663493,"url":"https://github.com/bgeneto/open-webui-cost-tracker","last_synced_at":"2025-04-22T11:34:30.743Z","repository":{"id":265516864,"uuid":"866700111","full_name":"bgeneto/open-webui-cost-tracker","owner":"bgeneto","description":"open-webui function designed to manage and calculate the costs associated with user interactions and model usage in a Open WebUI.","archived":false,"fork":false,"pushed_at":"2024-11-29T18:13:47.000Z","size":156,"stargazers_count":27,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T14:41:27.174Z","etag":null,"topics":["costs","models","open-webui","streamlit","tokens","usage"],"latest_commit_sha":null,"homepage":"https://open-webui-cost-tracker.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bgeneto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-02T18:09:26.000Z","updated_at":"2025-03-13T21:35:25.000Z","dependencies_parsed_at":"2024-11-29T18:43:43.442Z","dependency_job_id":null,"html_url":"https://github.com/bgeneto/open-webui-cost-tracker","commit_stats":null,"previous_names":["bgeneto/open-webui-cost-tracker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgeneto%2Fopen-webui-cost-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgeneto%2Fopen-webui-cost-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgeneto%2Fopen-webui-cost-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgeneto%2Fopen-webui-cost-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgeneto","download_url":"https://codeload.github.com/bgeneto/open-webui-cost-tracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250232829,"owners_count":21396715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["costs","models","open-webui","streamlit","tokens","usage"],"created_at":"2025-02-24T05:16:30.911Z","updated_at":"2025-04-22T11:34:30.704Z","avatar_url":"https://github.com/bgeneto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# open-webui-cost-tracker\n\nThis open-webui function is designed to manage and calculate the costs associated with user interactions with models in a Open WebUI appliance.\nThe 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)\n\n![image](https://github.com/user-attachments/assets/1d7a975b-84b2-4af1-93b3-2bfb3363f575)\n\n\n![image](https://github.com/user-attachments/assets/ad373135-9ead-465f-adb1-d10f6262a705)\n\n## Install\n\nRemember to enable the function globally (or by model): \n\n![image](https://github.com/user-attachments/assets/07cb5d0e-f6eb-4e5b-98dd-6d29510af972)\n\n## Streamlit App\n\nThis repo also provides a streamlit app to read and process the generated `costs.json` file containing model usage data for every user. \nThe `costs-\u003cyear\u003e.json` file is located in the open-webui `data` directory. \n\nA screenshot of the simple streamlit app is shown below. \n\n[Streamlit app for costs processing](https://open-webui-cost-tracker.streamlit.app)\n\n![image](https://github.com/user-attachments/assets/9529ae29-9dd6-4295-8417-9371430f8a88)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgeneto%2Fopen-webui-cost-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgeneto%2Fopen-webui-cost-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgeneto%2Fopen-webui-cost-tracker/lists"}