Ychris12138/dsh-usage-stats
Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.
dsh-usage-stats adds multi-provider account monitoring and token analytics to DSH's Web UI. See your API provider balance, subscription quotas, daily/monthly/cumulative token usage, cache hit rate, and a monthly calendar heatmap — all with per-date/provider/model drill-down. Supports New API, Sub2API, generic balance templates, and declarative JSON Pointer custom queries. Background refresh every 5 minutes; credentials stay server-side and never reach the browser.
Install
dsh plugin --profile web add "github:Ychris12138/dsh-usage-stats"After install, restart dsh web and hard-refresh browser. A Usage/Balance entry appears at the bottom of the sidebar.
Compatibility
DSH >= 0.1.0-rc.6 (web profile). Supports Windows/macOS/Linux. Credentials stay server-side; browser only requests the current provider.
Details
- Repo: Ychris12138/dsh-usage-stats
- Category: Usage & Billing
- Stars: 59
- Version: 0.2.0+
- Last push: 2026-08-17
- First seen: 2026-08-14
Recent updates
v0.2.0: monthly calendar heatmap, per-provider/model drill-down, extensible adapter system (New API, Sub2API, generic templates). Interface supports Chinese and English.
FAQ
- Does it send my API keys to the browser?
- No — credentials are parsed server-side and sent only to verified provider addresses. The browser requests only the currently selected provider's summary.
- What providers are supported?
- New API, Sub2API, and generic balance templates via declarative JSON Pointer queries. Custom providers can be added with a configuration adapter.
- How often does it refresh?
- Every 5 minutes in the background, regardless of whether the panel is open. Manual refresh updates usage, provider list, and forces a current-account refresh without bulk-requesting other providers.
Alternatives
Han-1413141/dsh-cost-meter · zh667/TokenLedger