dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
📊 DeepSeek Harness 插件 — 用量统计看板:按供应商/模型汇总响应速度、调用日志、Token 用量与费用估算
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,再与站内分类词典和词根规则比对。