davidgereb/dsh-plugin-cost-lens ↗★ 0
dsh-plugin-cost-lens
Cost Lens for dsh web: DeepSeek API peak/off-peak rates, per-session cost tracking, schedule-to-off-peak sends, and cost displays in the sidebar, session cards, and chat stats
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-plugin-cost-lens
Cost Lens — DeepSeek API rates and per-session costs for dsh web.
- Sidebar rate pill (above Settings): current rate state (
Peak hours/Off-peak hours; until the peak/off-peak schedule starts it showsPeak hourswith the flat prices), anEnds in: hh:mmcountdown to the next change, and a click-to-expand detail withInput: $x.xxx/M · Output: $x.xxx/M. The peak/off-peak windows are shown in the browser's local timezone. A small spinner shows while rates refresh; a warning dot + tooltip appear when the last update failed ("working with data from last update date"). - Chat stats strip (under the prompt box):
≈ $0.35 · 1.2M in · 80k outfor the active session. - Session rows + hover cards (sidebar): a small cost next to the time field and a cost line in the hover card.
- Schedule to off-peak: long-press the send button to open a small menu
and queue the draft for the next off-peak window start; scheduled prompts
show above the composer (a distinct tint) with a cancel button. The host
half keeps the queue and fires each prompt via the session's agent
(
agent.followup) — it works while the dsh web server is running, with no browser open. - Workspace cost totals next to each workspace in the sidebar (sum of its sessions' costs).
- Account balance on the pill: shown in the expanded view and tooltip, with the last-updated time on hover; refresh interval configurable (5 minutes default).
- Config card (Settings → Plugins → Configurable): rate refresh interval, balance refresh interval, backfill window, per-surface display toggles (session rows, session cards, chat stats, workspace totals), Refresh now, and Recalculate costs buttons — the plugin configuration page.
Install / rebuild / revert
From GitHub
# install the plugin (and its host-half dependency,
# dsh-lib-context-injection, resolved as a git dependency)
dsh plugin --profile web add github:davidgereb/dsh-plugin-cost-lens
Then add the loader row to the profile patch file
($DSH_HOME/profiles/web/cordis.patch.yml):