dsh-cost-ledger: Add a tab to view DSH costs by day and by model.
This is a technical article introducing the DSH plugin `looriann/dsh-cost-ledger`. It adds a "Cost" tab to DSH to track token spending by day and by model, aligning the interface with the DeepSeek official console (stacked bar charts by day and hover details). The core feature is price querying based on the "Provider + Model" pair, incorporating official RMB prices for 142 Ali Bailian (Qwen) models to prevent calculation errors from price discrepancies among providers with the same weight. Unpriced models are marked as such and allow for on-the-spot entry; once historical data is filled, recalculation occurs immediately. The article details the official installation command, three-step usage, price priority, reconciliation mechanism, and local data structure, along with applicable scenarios and safety precautions (running with current DSH process permissions and checking the source code and MIT license before installation).
Read Moredsh-cost-ledger: Verifiable DSH Token Cost Ledger
dsh-cost-ledger provides token and CNY accounting for individual LLM/stream calls in DeepSeek Harness. It features an append-only JSONL ledger, hourly/daily/session aggregations, JSON/CSV exports, and dry-run capabilities, while supporting side-by-side comparison of manually entered platform bills against local estimates. It includes the official DeepSeek price list and peak/off-peak pricing rules, marking unknown providers or models as "unpriced". Licensed under MIT, it can be installed via `dsh plugin add github:dingchenhui0618-arch/dsh-cost-ledger` and provides a "Cost Ledger" panel in the conversation view.
Read Moredsh-cost-ledger: DSH Cross-Session Token Cost Ledger Plugin
`dsh-cost-ledger` is an MIT-licensed plugin for DeepSeek Harness (DSH) designed to address the lack of unified tracking for LLM token usage. The plugin achieves cross-session persistence using SQLite, automatically subscribes to `llm/stream` events, and records detailed metrics including input, output, cache, and costs. It features a built-in DeepSeek pricing model and supports custom price configuration. The plugin provides three Agent tools—`record_cost` (manual recording), `query_cost` (to query costs), and `set_budget` (to set budgets)—to facilitate usage monitoring and budget control. Installation requires Node.js ^22.19.0 or higher, via `dsh`...
Read More