feely0208/dsh-token-cost: View token spending and budget progress in the DSH sidebar.
DSH session logs write the usage of each call into `session.v4.jsonl.zstd`, so calculating costs usually requires manually assembling a zstd pipe. `feely0208/dsh-token-cost` (MIT, v0.1.1) turns these logs into a sidebar panel, displaying costs for today / the last 7 days / the last 30 days / this month, cache hit savings and hit rates, number of calls and total tokens, a budget progress bar, trends over the last 30 days, and rankings by model and by session (top 20 most expensive sessions including working directory and sub-agent status), with support for exporting to CSV or JSON. It defaults to reading multi-frame zstd logs located at `~/Library/Application Support/DeepWhale Desktop/dsh-home/sessions`, performing parsing within the local process without connecting to the internet or uploading data; configuration can be adjusted via `DSH_SESSIONS_DIR`, `DSH_ZSTD_BIN`, `DSH_TOKEN_COST_USD_CNY`, and `DSH_TOKEN_COST_BUDGET`. Prices are derived from a snapshot of the DeepSeek official pricing page dated 2026-10-29, distinguishing between peak/off-peak and cache hit unit prices. Installation is done via `dsh plugin --profile web add @deepwhale-cn/dsh-token-cost`, which requires `zstd` to be installed on the system. The figures are local estimates rather than official bills, and exclude non-logged calls (such as title generation), bonus credits, and holiday off-peak discounts.
Read Moredsh-token-cost: View Token Usage, Cost, and Balance per Round in Harness Web UI
dsh-token-cost is a DSH plugin maintained by BigFatFish4Wm that displays token usage, estimated costs, session totals, and balance beneath each completed conversation turn, and persists the data per session and per turn to the workspace at .dsh-token-cost/ledger.json. It supports pricing by provider/model and peak/off-peak time slots, DeepSeek account or budget/manual balance, as well as a bilingual interface and a secure summary API. Based on the official README, this article covers installation commands, configuration highlights, and usage considerations to help users enable it in the dsh web or desktop client.
Read Moredsh-token-cost: Estimate the Token Cost of the Current Session in DSH Web
dsh-token-cost is a DSH Web plugin maintained by yoggu. It reads settlement logs for sessions and sub-agents, utilizing the pi-ai catalog (shipped with @deepseek-ai/dsh-llm-pi-ai) and calculateCost to display estimated costs, rather than actual billing. A button in the bottom bar displays the total; clicking it reveals the breakdown for the Main agent, Subagents, and Total. Unpriced items and incomplete coverage are explicitly marked. To install, run `dsh plugin --profile web add` with the specified v0.2.2 Git URL. Requires Node >= 22.19.0 and is tested with pi-ai 0.99.1. Licensed under MIT.
Read Moredsh-token-cost: Token Usage and Estimated Cost Ledger in the Sidebar
dsh-token-cost is a DSH community plugin maintained by wojiao42. It displays token usage and estimated costs based on rate cards for all sessions and the current task at the bottom of the sidebar. Hovering over the display expands per-session details and per-turn previews. Data is sourced from official projections and Host read logs, involving no additional model calls. Based on the README, this article covers installation commands, UI elements, cold session forensics, rate cards, and how changes take effect after code modification, while clarifying that estimated costs are not official bills.
Read More