deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:1HelloMan1/dsh-stats-dashboard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
⚠️ 已停止独立维护:本项目的完整功能已经合并到
dsh-usage-dashboard-plus。请迁移到 Plus,不要与 Plus 同时安装。
This repository is deprecated. Its full implementation has been merged into
dsh-usage-dashboard-plus. Use Plus for new installations.![]()
📊 DeepSeek Harness 插件 — 用量统计看板:按供应商/模型汇总响应速度、调用日志、Token 用量与费用估算
请停用当前 profile 中的 dsh-stats-dashboard,改为安装:
dsh plugin --profile web add dsh-usage-dashboard-plus
Plus 已包含本仓库的 usageDashboard projection、调用日志、TTFT、响应速度、缓存率、Token 统计、费用估算和 CSV 导出,并且额外支持余额、今日花费和外部视觉调用统计。
下面的安装方式仅用于查看历史版本或开发旧代码,不建议新用户继续使用。
dsh plugin --profile web add "github:1HelloMan1/dsh-stats-dashboard#main"
# 克隆仓库
git clone https://github.com/1HelloMan1/dsh-stats-dashboard.git
# 复制到 DSH profile 的 node_modules
cp -r dsh-stats-dashboard ~/.dsh/profiles/node_modules/
# 编辑 DSH profile 的 cordis.patch.yml,添加插件 insert
echo '
- insert:
- id: stats-dashboard
name: "dsh-stats-dashboard"
' >> ~/.dsh/profiles/web/cordis.patch.yml
# 重启 DSH
kill $(pgrep -f "dsh web") 2>/dev/null
npx @deepseek-ai/dsh web
npm install -g dsh-stats-dashboard
dsh plugin --profile web add dsh-stats-dashboard
dsh-stats-YYYY-MM-DD.csv 文件插件内置 DeepSeek 官方定价(CNY/百万 tokens):
| 模型 | 输入(未命中) | 缓存读 | 输出 |
|---|---|---|---|
| deepseek-v4-flash | ¥1.00 | ¥0.02 | ¥2.00 |
| deepseek-v4-pro | ¥3.00 | ¥0.025 | ¥6.00 |
| deepseek-chat | ¥2.00 | ¥0.50 | ¥8.00 |
| deepseek-reasoner | ¥4.00 | ¥1.00 | ¥16.00 |
编辑 lib/index.js 中的 PRICING 对象添加新模型:
const PRICING = {
"your-provider\u0000your-model": {
inputUncachedCny: 1.0,
cacheReadCny: 0.02,
outputCny: 2.0
}
};
dsh-stats-dashboard/
├── lib/
│ ├── index.js # Host 端:投影注册、定价表、费用计算
│ └── client.js # Client 端:看板 UI 组件
├── cordis.patch.yml # DSH bundle patch 声明
├── package.json # 插件元数据
└── README.md # 本文件
会话日志 → dsh-session-stats 投影 → session.list RPC
↓
dsh-token-meter 投影 → Token 用量 + 费用估算
↓
Client 拉取 session.list → 聚合/筛选/渲染
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-feature# 克隆仓库
git clone https://github.com/1HelloMan1/dsh-stats-dashboard.git
cd dsh-stats-dashboard
# 链接到 DSH profile(开发模式)
ln -s $(pwd) ~/.dsh/profiles/node_modules/dsh-stats-dashboard
# 修改代码后,刷新 DSH 页面即可生效(无需重启)
MIT License - 详见 LICENSE
如果觉得有用,请给个 ⭐ Star 支持一下!
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。