DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-usage-daily

H

dsh-usage-daily

Manifest valid

DSH Usage Daily Report: Summarizes today's token consumption, message count, and estimated cost across all sessions, displayed in a floating window in the bottom-right corner

hasBundlePatch

dsh-usage-daily

DeepSeek Harness 用量日报插件 · 右下角浮窗,一眼看清 AI 每天烧掉多少 token 和钱 🐋

一个给 DeepSeek Harness Web 界面用的用量日报小挂件。常驻右下角,自动统计当天各会话的 token 消耗、消息数、轮数,并用 DeepSeek 价格估算费用。

✨ 特性

  • 📊 今日用量汇总:输入/输出/缓存 token、消息数、轮数、估算费用
  • 🔄 60s 自动刷新 + 服务端缓存,不刷屏、不额外压榨 API
  • 💰 费用估算:按 DeepSeek 默认价计算,可用环境变量覆盖
  • 🐳 浮窗 UI:右下角半透明卡片,NaN 安全,刷新即用
  • 🔌 HTTP 接口:GET /api/dsh-usage-daily/report 返回当日聚合 JSON,方便二次开发

📦 安装

# 推荐:本地链接安装
dsh plugin --profile web add link:<本仓库绝对路径>

# 重启 dsh web,然后 F5 刷新浏览器
# 右下角即可看到用量日报浮窗

数据来自 DSH 自身的会话日志(sessionQuery.readSession),无需任何令牌与平台费用。

⚙️ 配置

费用估算可通过环境变量覆盖(单位:USD / 百万 token):

变量默认值
DSH_USAGE_INPUT_PER_M0.27
DSH_USAGE_OUTPUT_PER_M1.10
DSH_USAGE_CACHE_READ_PER_M0.07
DSH_USAGE_CACHE_WRITE_PER_M0.27

🌐 接口

GET /api/dsh-usage-daily/report
{
  "ok": true,
  "date": "2026-01-01",
  "sessions": 3,
  "messages": 41,
  "turns": 12,
  "totals": { "input": 12345, "output": 6789, "cacheRead": 0, "cacheWrite": 0 },
  "totalTokens": 19134,
  "costUsd": 0.0087,
  "perSession": [
    { "id": "session-1", "messages": 20, "turns": 8, "tokens": 12345 }
  ]
}

🔧 技术说明

  • 插件使用 DSH 的会话查询服务(sessionQuery.listSessions / readSession)聚合当日事件
  • 通过 webServer 注册接口 + 用 tapIndex 注入右下角浮窗脚本
  • 纯 Node ESM,无外部依赖

🧾 License

MIT


喜欢的话点个 ⭐ / 在 b站关注 YOUTOGER 支持一下~

Comments

Loading…

From the same category

reactive-resume

DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.

Tools & CapabilitiesManifest valid

★ 41.7k

↓ 156/wk

MIT

Aug 24, 2026

dsh plugin --profile web add dsh-plugin-reactive-resume

by Tencent

Let AI agents use your real, logged-in browser without interrupting your work. CLI + extension for browser automation across any shell-capable AI agent.

Tools & CapabilitiesManifest valid

★ 8.6k

↓ 6.1k/wk

MIT

TypeScript

Oct 10, 2026

dsh plugin --profile terminal add @wxg-prc-cpg/browser-skill-dsh-plugin

by yjh051108

dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).

Tools & CapabilitiesManifest valid

★ 7k

MIT

JavaScript

Sep 18, 2026

dsh plugin --profile web add @dsh-external/dsh-super-injector

by Q00

Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,

Tools & CapabilitiesManifest valid

★ 6.2k

MIT

Python

Oct 7, 2026

Index only — not installable

by dsh-market

The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场

Tools & CapabilitiesManifest valid

★ 6.1k

↓ 112.4k/wk

MIT

TypeScript

Oct 10, 2026

dsh plugin --profile web add dshmarket

by superdesigndev

OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

Tools & CapabilitiesManifest valid

★ 5k

NOASSERTION

Python

Oct 11, 2026

dsh plugin --profile web add treg-dsh