yyb16yyb-hub/dsh-deepseek-usage

yyb16yyb-hub★ 1TypeScriptLast synced: 2026-08-16

Open on GitHub

Real-time DeepSeek API usage for DeepSeek Harness: balance, token stats, estimated cost — Web UI dock + settings panel + model tool.

README excerpt

dsh-deepseek-usage English 中文 A DeepSeek Harness plugin that shows real-time DeepSeek API usage . - 💰 Account balance — polls the DeepSeek /user/balance endpoint (default every 30s): total / granted / topped-up balance and availability - 📊 Usage stats — real-time request counts and tokens (input / output / cache-read / cache-write / reasoning) via the llm/stream waterfall, in three windows: total / today / last-60s, with the cache-hit rate - 💸 Estimated cost — per-model pricing (built-in deepseek-chat / deepseek-reasoner table, overridable via config), computed per window - 🖥️ Web UI dock — a live stats line under the composer ( conversation.composer.dock ), auto-refresh + manual refresh - ⚠️ Low-balance alerts — dock turns amber below the threshold (default 20) and red below threshold/5, with one browser notification per threshold crossing (only when notification permission is already granted) - 📋 Settings usage panel — settings.section seat: balance card, three-window usage, per-model pricing table, and a per-session usage table (with session titles) - 🛠️ Model tool — deepseek usage , so the agent can query balance and usage on demand Install From GitHub (recommended) ⚠️ Fi…

View full README on GitHub →
Skins / UIdsh-pluginweb ui

Category