Rainronin/dsh-balance-monitor

Rainronin★ 2JavaScript最后同步: 2026-08-14

在 GitHub 打开

一个好看、简单、实用的余额监视器|DeepSeek Harness 插件:官方余额快照 + ds_balance 工具 + Matrix 侧边栏徽章

README 摘要

dsh-balance-monitor English 中文 A DeepSeek Harness plugin that monitors your DeepSeek API account balance: official /user/balance snapshots, in-session queries, per-turn context injection, and a Matrix-style sidebar badge . English Features Capability Description 💬 In-session query ds balance tool: the agent can fetch the official balance snapshot anytime ( force: true bypasses the cache) 🔄 Per-turn injection Fresh balance is injected into the model context before every turn (cache-only read, never blocks the conversation) 🖥️ Sidebar badge Matrix green-phosphor CRT style: ▸ BALANCE CNY ¥32.81 · LINK OK , SYNC button for on-demand refresh, 30s auto polling, rail state collapses into a status lamp 🔐 Zero-config key Reuses DEEPSEEK API KEY from dsh's credential service (never written to disk, never logged) 💱 Multi-currency CNY/USD both listed (CNY first); amounts stay strings end-to-end, no float math 🛡️ Rate-limit friendly 30s TTL cache + request serialization (at most one in-flight request) + 5s timeout Installation If pnpm blocks the prepare build script of a git-hosted plugin, add the printed key to allowBuilds in $DSH HOME/profiles/web/pnpm-workspace.yaml and re-run. The plu…

在 GitHub 查看完整 README →
皮肤/UIdsh-pluginsidebaragent

分类