chenmiao8563/dsh-token-ledger
Folds the durable session log into token totals that survive restarts, then recomputes the same numbers from the raw logs so you can diff what the host recorded against what actually happened.
This is a ledger rather than a dashboard. It folds the durable DSH session log into token totals that stay correct across restarts, and the audit command recomputes the same figures from the raw logs and diffs them against what the running host recorded, reporting scanned logs, events, forked sessions, call counts and totals on both sides with a match or mismatch verdict. That is the part that matters when a number has to be defended rather than displayed. Since 0.5 the settings page has three tabs: Overview with the ledger and what each period cost, Rates with a per-vendor price list for the newest models plus a live USD/CNY rate, and Bill, which turns the same usage into money across four groupings and five periods.
Install
dsh plugin --profile web add @chenmiao8563/dsh-token-ledgerThe scoped npm line documented in the README; @chenmiao8563/dsh-token-ledger@1.1.2 resolves its registry repository to this repo. The README also lists a github: route, which it notes works immediately because there are no install scripts to approve.
Compatibility
Requires DSH ^0.2.0-rc.1, with 0.2.0-rc.2 as the verified target; the floor is written that way because of how this ecosystem spells the range. Installing from a git URL needs no build allowance, since the package ships no install scripts.
Details
- Repo: chenmiao8563/dsh-token-ledger
- Category: Usage & Billing
- Stars: 1
- Version: 1.1.2 (npm); MIT
Alternatives
vitkuz573/dsh-token-saver · kelearns/dsh-token-usage · YZz-S/dsh-token-cost-meter