Coco-king/dsh-monitor

Coco-king★ 0JavaScript最后同步: 2026-08-19

在 GitHub 打开

DeepSeek Harness 会话计费 + 通用提供方用量查询插件:会话费用角标(峰谷两档精确计费、刷新后依然准确)、按模型提供方配置的用量面板(DeepSeek 官方余额 / OpenCode Go 5小时·周·月套餐额度 / 自定义 HTTP 用量查询),官方价格一键同步,双币种(USD/CNY)价格表。

README 摘要

dsh-monitor 中文版 · English Session billing and per-provider usage quota plugin for DeepSeek Harness. - Session cost badge : wraps llm/stream , captures every model call usage and bills precisely against official prices (peak/off-peak tiers + legacy base prices). A chip in the session header shows the session cost in real time with token details; it stays accurate after refresh/reload (event-sourced session projection). - Provider usage panel : configure one usage query per model provider; click the usage icon left of the model switcher to view the quota of the current session's provider . - Three presets : - DeepSeek official (built-in): reuses the API key configured in Settings → Models and queries the official GET /user/balance (docs; only api.deepseek.com , non-official endpoints refused). No configuration needed — when the current session's provider is deepseek-official , the balance shows automatically; add a provider with the same id only to override the refresh interval. - OpenCode : queries the OpenCode Go plan quota — 5 hours / weekly / monthly usage percent and reset times ( opencode.ai/zen/go/v1/usage ). - Custom : any HTTP usage endpoint — URL + headers (with {apiKey} pl…

在 GitHub 查看完整 README →
工具/开发dsh-plugindsh-plugins

分类