dsh-token-ledger: Display Cumulative Token Usage for All Local DSH Sessions in the Conversation Top Bar
dsh-token-ledger is a DSH client plugin maintained by yinshipeng. It appears as a persistent capsule on the right side of the conversation title bar, aggregating the total token consumption across all local sessions on the machine. Data is sourced from DSH's tokenUsage projection cache and persistent ledger, so figures do not regress after session deletion or restart. It supports hover for a per-item breakdown and click to copy. The plugin is read-only, operates offline, and does not report any data. Installation is available via the dshopen index or through `dsh plugin add`. Requires DSH >=0.2.2-rc.1 and Node >=22.19.0.
Read Moredsh-token-ledger: DSH Native Token Usage Dual Ledger
dsh-token-ledger is a DeepSeek Harness sidebar plugin that maintains a local Token usage ledger. It features two independent ledgers ("Previous" and "Current"), a movable baselineAt boundary, and global filtering by week, month, day, and custom ranges. Statistics are precisely accumulated into four buckets: input, cacheRead, cacheWrite, and output, with full numbers displayed without K/M/B abbreviations. Data is stored at ~/.dsh/token-ledger, supporting ETag/304 polling and a fallback to browser local aggregation for legacy hosts. Installation requires linking and registering the bundle in the profile, with requirements for Node 18+ and DSH >=0.1.5-rc.1.
Read Moredsh-token-ledger: Cross-Project Aggregation of DSH Billing Tokens
dsh-token-ledger is a DSH admin-security plugin maintained by u-fw that reads all persisted sessions under the current profile and aggregates provider billing buckets (cache miss, cache read/write, output) by working directory. The panel provides two modes—precise deduplication and fast projection—routing views by project/model, time filters, and CSV export, accessible via Settings → Token stats and the sidebar. Installation requires plugin_manager or a link dependency pointing to a repo checkout; the Web service must be running, and Node >= 22.15 is required.
Read Moredsh-token-ledger: DeepSeek Harness Token Consumption Monitoring
`dsh-token-ledger` is a DeepSeek Harness plugin maintained by `doremifaso12345` for accurately monitoring daily token consumption. It does not rely on projection caches; instead, it directly parses local session logs to ensure data accuracy. The plugin provides four interaction entry points: a dashboard, an input box badge, chat commands, and model tools. The dashboard displays four non-overlapping usage buckets—uncached input, cache reads, cache writes, and output—and offers detailed metrics such as cache hit rate, cumulative/peak token counts, an activity heatmap, and tool rankings. Installation requires no build step and Node.js `^22.15.0` or later. It supports multi-frame zstd log decompression. Configuration options allow adjusting cache duration and specifying data sources. The plugin has zero third-party dependencies and supports CSV export.
Read Moredsh-token-ledger: A Transparent Token Ledger for DeepSeek Harness
`dsh-token-ledger` is a token-counting verification plugin designed for DeepSeek Harness (DSH). It folds persistent session logs into aggregate token totals, ensuring restart safety. Core features include an audit command (validating data consistency through diff), billing report generation (with CSV/JSON export support), and a lightweight, zero-dependency architecture. The tool is suitable for scenarios requiring defensive validation of token statistics, audit logs, or exportable billing reports, ensuring data accuracy by recomputing from raw logs.
Read More