DeepSeek Harness plugin

dsh-token-stats-f1shn

Daily, weekly, and monthly DeepSeek official token and cost cards for DeepSeek Harness

Jump to install

Source facts

Repository
F1shn/dsh-token-stats
Latest update
Aug 17, 2026
Category
Usage & Billing
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/F1shn/dsh-token-stats
Plugin: dsh-token-stats-f1shn
Author: F1shn

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

DSH Token Stats

一个独立的纯 DeepSeek Harness 插件,用三张卡片汇总北京时间的今日、本周和本月 Token 使用量与人民币费用。标题栏入口会显示所选周期的 Token 和费用;打开详情后点击 “今日”“本周”或“本月”卡片即可切换,选择会保存在本机。

活动墙格子在鼠标进入或键盘聚焦时会立即显示 Token、费用、调用次数和缓存信息, 不使用有延迟的浏览器原生提示。

统计内容

  • 缓存未命中输入 Token
  • 缓存命中输入 Token
  • 输出 Token
  • 缓存命中率、模型调用次数和高峰调用次数
  • DeepSeek-V4-Flash / DeepSeek-V4-Pro 模型明细
  • Codex 风格的最近 52 周 Token 活动墙,支持每日、每周与累计视图(悬停显示 Token 与费用)
  • 根据调用时价格、缓存状态和峰谷时段估算的人民币费用

本周从北京时间周一 00:00 开始,本月从北京时间每月 1 日 00:00 开始。插件仅统计 deepseek-official 提供方写入 DSH session log 且带 usage 的调用;百炼、自定义端点和 其他提供方不会混入官方 API 费用。

当前内置 DeepSeek 官方人民币价格(每百万 Token):

模型时段缓存命中输入缓存未命中输入输出
DeepSeek-V4-Flash空闲¥0.05¥1.5¥4.5
DeepSeek-V4-Flash高峰¥0.10¥3.0¥9.0
DeepSeek-V4-Pro空闲¥0.15¥4.5¥13.5
DeepSeek-V4-Pro高峰¥0.30¥9.0¥27.0

高峰时段为北京时间 09:00–12:00、14:00–18:00。一次请求跨越峰谷边界时按请求开始 时间归档和估算。2026-08-17 00:00 前的历史调用保留旧价格。

官方定价页:https://api-docs.deepseek.com/zh-cn/quick_start/pricing

安装

直接安装(推荐)

已安装 dsh CLI 的用户只需执行:

dsh plugin --profile web add github:F1shn/dsh-token-stats

如果通过 DeepSeek Harness 源码运行 CLI,则在项目根目录执行:

pnpm dsh plugin --profile web add github:F1shn/dsh-token-stats

安装完成后重启 DSH Web/Desktop。无需 API Key、额外配置或依赖 dsh-session-cost

从源码安装

git clone https://github.com/F1shn/dsh-token-stats.git ./plugins/dsh-token-stats
pnpm dsh plugin --profile web add ./plugins/dsh-token-stats

插件启动时会主动为已有会话回放并缓存统计投影,因此首次打开 DSH 即可得到完整汇总,不需要逐个进入工作区或会话来触发计算。

卸载

dsh plugin --profile web remove dsh-token-stats

通过源码运行 CLI:

pnpm dsh plugin --profile web remove dsh-token-stats

卸载并重启后,Token 统计投影、标题栏入口和卡片界面会全部消失。最终扣费以 DeepSeek 账户账单为准。