PeterZoneZz/dsh-token-cost

Plugin ⭐ 2 MIT other

DSH (DeepSeek Harness) web plugin: a draggable whale floating widget showing token usage, spend and the official DeepSeek account balance

Install

┌──────────────────────────── 服务端(node half) ────────────────────────────┐
│  tokenCost 会话投影单元        逐事件 fold:request/header 定模型             │
│                              assistant usage × 该模型单价 → 费用/按模型明细 │
│  /api/token-cost/balance    缓存 60s 的官方余额查询(DEEPSEEK_API_KEY)      │
│  /api/token-cost/prices     生效价格表                                      │
│  /api/token-cost/summary    所有会话(含冷会话)的 tokenCost 聚合            │
└──────────────────────────────────────────────────────────────────────────────┘
                                  │ 投影推送 / HTTP JSON
┌──────────────────────────── 浏览器(browser half) ─────────────────────────┐
│  鲸鱼悬浮球(fixed,独立 React root)                                         │
│  点击切换锚定卡片 · 拖动+边缘吸附(localStorage 记忆)                        │
│  环形进度 = 当前余额 ÷ 本次会话基准余额                                       │
└──────────────────────────────────────────────────────────────────────────────┘

Add PeterZoneZz/dsh-token-cost to your DSH config (web profile) to enable.

README

Expand full README Collapse

README is empty.