← 返回列表
D

dsh-tokenpilot

v0.1.0 · 0 天前发布

TokenPilot: API usage, balance and cost monitor for DeepSeek Harness — built-in official peak/off-peak pricing table, task status lamp, sound alerts and a draggable floating dashboard. 用量/余额/计费监控插件(内置官方价格表)。

dshdsh-plugindeepseekusagebillingbalancemonitorpricing

README

dsh-tokenpilot(TokenPilot)

DeepSeek Harness 的 API 用量 / 余额 / 费用监控插件——可拖拽的悬浮看板,带任务状态灯与提示音。

功能

  • 自动识别当前 API 与模型 —— DeepSeek 官方 / 第三方代理

  • 余额 —— 官方 /user/balance(人民币),OpenAI 风格代理(/dashboard/billing/*),查询失败优雅显示「无法查询」

  • 用量统计(持久化 7 天) —— 今日 API 请求次数、Tokens(输入/输出/缓存)、缓存命中率、首字速度(TTFT)、近 7 日按接口/模型柱状图

  • 费用 —— 官方 DeepSeek 按高峰/空闲时段计价(内置价格表:Flash 输入 ¥3/¥1.5、输出 ¥9/¥4.5 每百万 tokens;Pro 输入 ¥9/¥4.5、输出 ¥27/¥13.5,与官方中文文档一致);第三方按其自身 /v1/models 价格估算

  • 高峰/空闲时段 —— 当前时段标签 + 距下一次切换倒计时(北京时间 9:00–12:00 / 14:00–18:00)

  • 任务状态灯 —— 红=执行中,黄=排队/等待回答,绿=空闲;任务完成、向你提问时播放提示音(5 种预设可选)

  • 药丸 ⇄ 卡片 —— 「从哪来回哪去」动画;位置与设置在浏览器本地持久化

  • 设置页 —— 图表、模型明细、DeepSeek官方价格表
  • 安装

    bash
    dsh plugin --profile web add dsh-tokenpilot

    或通过任意内置插件市场(dshmarket 等)一键安装。安装后重启 web profile:右侧出现小药丸,设置页出现 **TokenP

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-tokenpilot
    Repo
    git+https://github.com/Tenth-G/dsh-tokenpilot.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web"}}