Skip to content

Releases: ArcanePivot/dsh-api-balance

API $$ v0.4.2

Choose a tag to compare

@ArcanePivot ArcanePivot released this 15 Aug 01:57
Immutable release. Only release title and notes can be modified.
1a648da

What changed

  • Sidebar footer now shows both the DeepSeek API balance and today's estimated local cost.
  • Chinese: API 余额 ¥xx · 今日使用 ¥xx
  • English: API Balance ¥xx · Today ¥xx
  • Usage loads in the background when the expanded sidebar is visible.

Today's cost reuses the existing per-call model and time-of-day pricing calculation. It covers retained local DSH sessions only and is not the official DeepSeek billing ledger.

Compatibility

  • @deepseek-ai/dsh@0.1.0-rc.6 only
  • Windows 10/11 and macOS
  • Successful uninstall restores both official DSH files and removes all project-created installation state

See the README and install guide for the pinned installation commands.

API $$ v0.4.1

Choose a tag to compare

@ArcanePivot ArcanePivot released this 15 Aug 01:43
Immutable release. Only release title and notes can be modified.
6c663cb

API $$ v0.4.1

这是一个卸载完整性补丁。v0.4.0 能恢复两份官方 DSH 文件,但成功卸载后仍会保留项目创建的备份目录与清单;v0.4.1 修复了这一点。

This patch release completes teardown behavior. v0.4.0 restored the two official DSH files but retained project-created backup state after a successful uninstall; v0.4.1 removes that residue.

修复 / Fixes

  • 成功卸载后删除 backup/backup-macos/、校验清单和原件副本
  • 目标文件已经恢复为官方原件时,也会清理剩余安装状态
  • 重复卸载保持幂等,不会重新创建文件
  • 首次安装中途失败时,恢复官方文件并删除本次刚创建的备份
  • 目标文件未知或被篡改时继续拒绝卸载,并保留恢复依据,不冒险强删
  • Successful uninstall removes all project-created backup state
  • Already-pristine and repeated-uninstall paths leave no residue
  • Failed first install removes newly created recovery state after rollback
  • Unknown or tampered targets remain fail-closed with recovery data preserved

验证 / Verification

  • macOS 与 PowerShell 隔离生命周期测试:安装前后 DSH 目录逐字节一致
  • Windows 10 / Windows PowerShell 5.1 实机隔离测试通过
  • -WhatIf--dry-run 保持零写入
  • PR、main 与正式标签的 GitHub Actions 全部通过

边界 / Boundary

API $$ 仍是锁定 @deepseek-ai/dsh@0.1.0-rc.6 的非官方补丁包,不是原生 Cordis 插件。卸载后必须重启原 DSH 进程,才能清除内存中已加载的旧代码。用户自行下载的源码目录属于安装介质,卸载器不会冒险自删;确认不再需要后可正常删除。

API $$ remains an unofficial patch package locked to @deepseek-ai/dsh@0.1.0-rc.6, not a native Cordis plugin. Restart the original DSH process after uninstall to unload resident code. The user-downloaded source checkout is installation media and is not self-deleted.

安装与升级:中文手册 · English guide

API $$ v0.4.0

Choose a tag to compare

@ArcanePivot ArcanePivot released this 15 Aug 01:08
Immutable release. Only release title and notes can be modified.
04fdfe5

API $$ v0.4.0

v0.3.0 的本机 DSH 用量统计上,新增 V4 Flash / V4 Pro 分模型查看DeepSeek 官方人民币单价估算。现在可以从余额、Token、每日趋势一路看到每款模型在不同价格时段预计花了多少。

Adds V4 Flash / V4 Pro usage views and CNY cost estimates based on DeepSeek's official pricing to the retained-local-session analytics introduced in v0.3.0.

主要变化 / Highlights

  • 全部 / V4 Flash / V4 Pro 三档可点选视图
  • 每档独立显示今日、本周、本月、累计 Token、预计费用与每日柱状图
  • 生效前、空闲、高峰三套官方每百万 Token 单价可切换查看
  • 界面标出当前价档、北京时间高峰区间与官方价格来源
  • 缓存命中、缓存未命中和输出 Token 分别计价
  • 未识别模型继续统计 Token,但明确标为未计价
  • 中文、英文、桌面与 390 px 移动端布局
  • 候选版升级到正式版时,仅提升安装清单版本,不重复覆盖相同运行文件
  • Selectable All / V4 Flash / V4 Pro views
  • Per-view today, week, month, all-time Token totals, estimated cost, and daily chart
  • Inspectable pre-change, off-peak, and peak official per-million-Token prices
  • Separate cache-hit, cache-miss, and output pricing
  • Chinese, English, desktop, and 390 px mobile layouts

价格边界 / Pricing scope

费用按每次请求实际发生时刻选择价档:北京时间 2026-08-17 00:00 前使用旧价;之后的高峰窗口是 09:00-12:0014:00-18:00,其余时间使用空闲价。DSH 的 outputTokens 已包含思考 Token,不会再次叠加 reasoningTokens

The price tier is selected from each call's actual timestamp. Prices before 2026-08-17 00:00 Beijing time remain on the earlier schedule; after that, peak windows are 09:00-12:00 and 14:00-18:00.

价格来源:DeepSeek API 官方定价。面板金额是本机日志估算值,最终扣费以 DeepSeek 官方账单为准。

数据边界 / Data scope

Note

用量和费用只覆盖本机仍保留的 DSH 会话,不包含已删除日志、其他电脑、其他客户端或直接 API 调用。

Usage and cost estimates cover retained local DSH sessions only. Deleted logs and calls from other machines or clients are excluded.

/api/llm.usage 不需要 API Key、不访问外部服务,也不返回提示词或回复正文。

兼容性 / Compatibility

Important

仅支持 @deepseek-ai/dsh@0.1.0-rc.6。这是非官方、版本锁定的补丁包,不是原生 Cordis 插件。

Supports @deepseek-ai/dsh@0.1.0-rc.6 only. This is an unofficial, version-locked patch package, not a native Cordis plugin.

  • Windows 10 / 11
  • macOS with Bash 3.2 or newer

安装与升级 / Install and upgrade

请阅读中文安装手册英文安装手册

Read the Chinese install guide or English install guide.

v0.2.0v0.3.0v0.4.0-rc.1 升级时,优先复用原安装目录及其校验备份。完整变化见 CHANGELOG.md

API $$ v0.3.0

Choose a tag to compare

@ArcanePivot ArcanePivot released this 15 Aug 00:04
Immutable release. Only release title and notes can be modified.

API $$ v0.3.0

在余额面板中新增本机 DSH Token 用量统计:今日、本周、本月、累计、今日缓存命中率,以及可切换月份的每日柱状图。

Adds retained-local-session Token analytics beside the DeepSeek balance: Today, This week, This month, All time, today's cache-hit rate, and a month-switchable daily bar chart.

主要变化 / Highlights

  • 今日 / 本周 / 本月 / 累计四档统计;每周从周一开始
  • 按浏览器时区归日,支持月度每日柱状图与月份切换
  • 自动回溯本机仍保留的 DSH 会话
  • 排除分叉会话复制的历史前缀,最终用量替换临时 chunk,避免重复累计
  • 中文、英文、桌面与 390 px 移动端布局
  • Windows PowerShell 5.1 的 -WhatIf SHA-256 预检修复
  • Today / This week / This month / All time totals; Monday-based weeks
  • Browser-timezone grouping and month-switchable daily chart
  • Backfill from retained local DSH sessions
  • Fork-history and provisional-chunk deduplication
  • Chinese, English, desktop, and 390 px mobile layouts
  • Windows PowerShell 5.1 -WhatIf hashing fix

统计边界 / Scope

Note

用量来自本机仍保留的 DSH 会话,不是 DeepSeek 官方全账户账单。已删除日志、其他电脑、其他客户端或直接 API 调用不会计入。

Usage comes from retained local DSH sessions, not the official account-wide billing ledger. Deleted logs and calls from other machines or clients are excluded.

/api/llm.usage 不需要 API Key、不访问外部服务,也不返回提示词或回复正文。

/api/llm.usage needs no API key, makes no external request, and returns no prompts or response text.

兼容性 / Compatibility

Important

仅支持 @deepseek-ai/dsh@0.1.0-rc.6。这是非官方、版本锁定的补丁包,不是原生 Cordis 插件。

Supports @deepseek-ai/dsh@0.1.0-rc.6 only. This is an unofficial, version-locked patch package, not a native Cordis plugin.

  • Windows 10 / 11
  • macOS with Bash 3.2 or newer

安装与升级 / Install and upgrade

请阅读中文安装手册英文安装手册

Read the Chinese install guide or English install guide.

v0.2.0 升级时,优先复用原安装目录及其校验备份;若使用新目录,先用旧目录卸载恢复官方文件。

完整变化见 CHANGELOG.md

API $$ v0.2.0

Choose a tag to compare

@ArcanePivot ArcanePivot released this 14 Aug 19:59
Immutable release. Only release title and notes can be modified.

API $$ v0.2.0

首个公开版本。把 DeepSeek API 余额放进 DSH 侧边栏,点击即可查看账户状态、币种、充值余额、赠送余额与更新时间。

First public release. API $$ keeps the DeepSeek API balance in the DSH sidebar and opens account status, currency, topped-up balance, granted balance, and update time in one click.

主要功能 / Highlights

  • 中文 API 余额 与英文 API Balance 界面
  • API Key 仅由 DSH 宿主端读取,不进入浏览器请求
  • Windows 与 macOS 安装、卸载和重启辅助脚本
  • 官方原件 SHA-256 校验、自动备份、失败回滚与篡改拦截
  • 低余额警示、手动刷新和移动端窄屏布局
  • Simplified Chinese and English UI
  • Host-side API key handling; the browser never receives the key
  • Windows and macOS install, uninstall, and restart helpers
  • SHA-256 guards, pristine backups, failure rollback, and tamper detection

兼容性 / Compatibility

Important

仅支持 @deepseek-ai/dsh@0.1.0-rc.6。这是非官方、版本锁定的补丁包,不是原生 Cordis 插件。不要绕过安装器的版本或校验限制。

Supports @deepseek-ai/dsh@0.1.0-rc.6 only. This is an unofficial, version-locked patch package, not a native Cordis plugin. Do not bypass installer version or checksum guards.

  • Windows 10 / 11
  • macOS with Bash 3.2 or newer

安装 / Install

请先阅读中文安装手册英文安装手册。安装器会先检查 DSH 版本和官方文件,不符合条件时不会覆盖。

Read the Chinese install guide or English install guide first. The installer validates the DSH version and official files before making changes.

完整变化见 CHANGELOG.md