dsh-billing: DSH Web GUI Real-time Billing Monitoring Plugin
dsh-billing is a real-time billing monitoring plugin for the DSH Web GUI, centrally managing local model call usage, balance, and cost estimation. Its core features include a sidebar displaying real-time balance (refreshes every 2 seconds) and status alerts, as well as an expandable panel for viewing consumption details, token usage, and recent transactions. It supports DeepSeek v4 peak-valley pricing and multi-vendor unit price matching, and allows syncing of official balances and unit prices via API Key. The plugin offers a settings page for configuring thresholds, unit price tables, and data management, and integrates the `billing_balance` Agent tool for querying. Ledger data is stored persistently and automatically restored upon restart. Installation requires no build and supports direct installation from GitHub or locally. Please note that it only tracks local calls, API keys are stored in plain text locally, and billing is estimated. It is suitable for real-time monitoring scenarios.
Read More