bowenliang123/dsh-context
bowenliang123/dsh-contextDSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
右侧面板展示 DeepSeek API 费用(当前会话 + 全部会话累计)与账户余额,内置官方计价与峰谷计价支持。
DeepSeek Harness plugin (desktop 0.2.x): shows your DeepSeek API spend and account balance in a top-right overlay card, with a live pill in the conversation header (left of the session-log button).
GET /user/balance)web/deepseek-search-llm-request event counts one call. Local web_fetch
(HTTP provider) is free and not counted.zh / en)bash install.sh
The installer copies the package to ~/.dsh/vendor/dsh-calculator, adds it as
a file: dependency of the desktop profile, activates it as a profile
bundle, and links it with the app's bundled pnpm. Restart DeepSeek Harness
after installing; the pill appears in the conversation header and the card
opens below the header.
Manual install: put the package in ~/.dsh/vendor/dsh-calculator, then in
~/.dsh/profiles/desktop/package.json set
"dependencies": { "dsh-calculator": "file:../../vendor/dsh-calculator" } and
add "dsh-calculator" to dsh.profile.bundles, then run
pnpm install in that profile.
CNY per 1M tokens (official DeepSeek rates, api-docs.deepseek.com 2026-10-19):
| 模型 | 缓存命中输入(高峰/半价) | 缓存未命中输入(高峰/半价) | 输出(高峰/半价) |
|---|---|---|---|
| deepseek-flash / deepseek-v4.1-flash(2026-10-17 起) | ¥0.04 / ¥0.02 | ¥2.0 / ¥1.0 | ¥8.0 / ¥4.0 |
| deepseek-v4-flash / vision-exp(2026-10-17 前) | ¥0.10 / ¥0.05 | ¥3.0 / ¥1.5 | ¥9.0 / ¥4.5 |
| deepseek-v4-pro | ¥0.30 / ¥0.15 | ¥9.0 / ¥4.5 | ¥27.0 / ¥13.5 |
web_fetch 走本地 HTTP,不计费assistant/message 的 usage +
message.source),按 (provider, model, period, 价格版本) 记账;fork
子会话按 message.id 去重web/deepseek-search-llm-request 事件计数GET https://api.deepseek.com/user/balance(30 秒缓存)rm -rf ~/.dsh/vendor/dsh-calculator
# 并从 ~/.dsh/profiles/desktop/package.json 移除 dsh-calculator 依赖与 bundle
# 然后在该 profile 目录运行 pnpm install
本项目与 DeepSeek 官方无任何关联,价格与余额为接口实时数据,费用为估算。