dsh-plugin-cost-ledger: Tracking Every Model Call in a Monthly JSONL Cost Ledger

`dsh-plugin-cost-ledger` is a DeepSeek Harness plugin that listens for session usage under `accounting: own`, prices entries using DeepSeek's official rates and token bucket pricing, and writes results to JSONL on a monthly basis. It provides the `/ledger` monthly report, `/ledger-export` CSV export, and the `ledger_query` tool; models without pricing are discarded without any price guessing. Installation requires `dsh plugin add`, merging `cordis.patch.yml`, and restarting. Its division of labor with `price-aware` is persistent ledger versus real-time usage. The README notes that live mount verification has not yet been performed; the plugin reads and writes `~/.dsh/cost-ledger` with the permissions of the `dsh` process.

Read More