
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-usage-dashboard
Advanced tools
DeepSeek Harness (dsh) web plugin: API balance + today's spend widget in the sidebar footer. /api/dsh-usage route + React client bundle, no build step required.
DeepSeek Harness (dsh) 的 Web 插件:在侧边栏底部显示 API 余额 和 今日花费。
GET /user/balance 实时获取(带缓存,默认 60s)$DSH_HOME/sessions 的会话日志(zstd 多帧解码),汇总今日 token 用量 × 官方定价估算侧边栏底部小部件:
余额 ¥xx.xx 与 今日花费 ¥xx.xx,点击展开详情卡(余额构成、调用次数、Token 用量、按模型明细、计价方式)¥ 图标按钮,悬停提示前提:已安装 dsh(dsh web 可正常运行)。
dsh plugin add dsh-usage-dashboard --profile web
# 把本仓库克隆/复制到 profile 的 node_modules 下
mkdir -p ~/.dsh/profiles/web/node_modules/dsh-usage-dashboard
cp -r lib package.json ~/.dsh/profiles/web/node_modules/dsh-usage-dashboard/
然后在 ~/.dsh/profiles/web/cordis.patch.yml 追加:
- insert:
- id: usage-dashboard
name: 'dsh-usage-dashboard'
config:
apiKeyRef: DEEPSEEK_API_KEY
重启 dsh web 生效。
| 字段 | 说明 | 默认 |
|---|---|---|
apiKeyRef | DeepSeek API Key 的凭证引用 | DEEPSEEK_API_KEY |
baseURL | 余额接口地址;留空则用 $DEEPSEEK_BASE_URL,再回退 https://api.deepseek.com | "" |
prices | 按模型单价覆盖(元 / 百万 tokens:{ input, cacheRead, output }) | 官方现行价 |
priceSchedule | 日期生效的峰谷定价表 { from, peak, idle } | 2026-08-17 起峰谷定价 |
balanceCacheMs | 余额缓存毫秒数 | 60000 |
sessionsRoot | 会话日志目录覆盖 | <dsh home>/sessions |
scanWindowMs | 只扫描此时间窗口内修改的日志 | 48h |
| 模型 | 缓存命中 | 缓存未命中 | 输出 |
|---|---|---|---|
deepseek-v4-flash | ¥0.02/M | ¥1/M | ¥2/M |
deepseek-v4-pro | ¥0.025/M | ¥3/M | ¥6/M |
| 模型 | 时段 | 缓存命中 | 未命中 | 输出 |
|---|---|---|---|---|
| flash | 高峰 | ¥0.10 | ¥3.0 | ¥9.0 |
| flash | 空闲 | ¥0.05 | ¥1.5 | ¥4.5 |
| pro | 高峰 | ¥0.30 | ¥9.0 | ¥27.0 |
| pro | 空闲 | ¥0.15 | ¥4.5 | ¥13.5 |
价格有变动时在 cordis.patch.yml 的 prices / priceSchedule 里覆盖即可。
GET /api/dsh-usage 只在本机 127.0.0.1 上服务,API Key 不离开服务端npm test # 运行 host 逻辑 + 客户端 bundle 物化 + SSR 渲染测试
MIT
FAQs
DeepSeek Harness (dsh) web plugin: API balance + today's spend widget in the sidebar footer. /api/dsh-usage route + React client bundle, no build step required.
The npm package dsh-usage-dashboard receives a total of 45 weekly downloads. As such, dsh-usage-dashboard popularity was classified as not popular.
We found that dsh-usage-dashboard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.