rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:iamwaller/dsh-usage-spend
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Shows the session's token usage and an estimated spend under the DSH composer, priced at DeepSeek's peak and off-peak rates, and appends the amount to the built-in per-turn usage action. Currency and exchange rate are configured on the Plugins page.
85.3M tok · ≈¥3.09 · cache hit 99.4%, replacing the built-in usage row.用量 85.3M tok becomes 85.3M tok · ≈¥3.09, priced at that turn's end time.余额 ¥12.34 at the bottom of the sidebar, refreshed every 60 seconds or on click; the grant is in the tooltip; collapsed the sidebar shows a compact amount. A 峰 / 谷 / 混 badge after the amount describes this session's billing-window mix, and the tooltip spells it out. Can be turned off.dsh plugin --profile <profile> add dsh-usage-spend
Or in DSH Desktop / Web open Plugins → Add plugin, enter dsh-usage-spend, then choose Enable now. Restart or reload afterwards.
Open Plugins and expand the Usage and spend card to confirm the usage-cost row is on.
Click Configure on the row; changes apply immediately. They are written to the profile's cordis.patch.yml:
- id: usage-cost
name: 'dsh-usage-spend'
config:
currency: CNY # CNY | USD | BOTH
usdToCny: 7.2
showBalance: true
Turning the row off removes the pill, the per-turn amount and the sidebar balance; turning it back on restores them.
Rates come from DeepSeek's official card (api-docs.deepseek.com/zh-cn/quick_start/pricing, checked 2026-11-07), in CNY per 1M tokens, and the table below is the off-peak rate:
| Model | Input (cache miss) | Input (cache hit) | Output |
|---|---|---|---|
deepseek-flash (DeepSeek-V4.1-Flash-1017) |
1 | 0.02 | 4 |
deepseek-v4-pro (DeepSeek-V4-Pro-0813) |
4.5 | 0.15 | 13.5 |
deepseek-v4-flash and deepseek-v4-flash-vision-exp are retired names that still work: requests are served by V4.1-Flash and billed at the Flash price, so they share its rates. deepseek-chat and deepseek-reasoner were discontinued on 2026-07-24 and are no longer priced.
DeepSeek charges half the peak price off-peak, so peak = twice the table.
09:00–12:00 and 14:00–18:00How the numbers are produced:
谷 off-peak only, 峰 peak only, 混 when it spans both (with the percentage in the card / tooltip)峰 / 谷Write localStorage["dsh.cost.prices"] from the browser console, keyed by model name (CNY per 1M tokens, off-peak; peak doubles it):
{
"deepseek-flash": { "input": 1, "cacheRead": 0.02, "cacheWrite": 1, "output": 4 }
}
Keys may be the full model name, provider/model, or the bare model name. Reload to apply.
0.1.0 overrides were USD; 0.2.0 switched to CNY and added the peak multiplier, so old overrides need re-entering in the new unit. 0.2.2 prices the session total hour by hour from its log, falling back to the live window only when the log is unreadable.
0.2.2-rc.1.用量 N tok and never affects the session./api/dsh-usage-spend/window. It only reads and aggregates the session log by hour, never uploads the log and never calls a pricing API; the route is owner-only.account.getBalance (DeepSeek account) and shows -- when signed out or when the read fails. It is the platform's balance, not a local estimate.localStorage (dsh.cost.currency / dsh.cost.usdToCny).MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。