stevenx65/dsh-balance-plugin
stevenx65★ 3JavaScript最后同步: 2026-08-14
—
README 摘要
dsh-balance-plugin A DeepSeek Harness (dsh) web plugin: shows DeepSeek API balance and token usage at the bottom of the web sidebar (port 3080), with a Today / All-time toggle, filtered by provider (only deepseek-official , ignoring other vendors). Features - 💰 Balance: calls DeepSeek's official GET /user/balance , reusing dsh's credentials ( /.dsh/.credentials.yaml ) — no manual key entry - 📊 Token usage: reads dsh session logs ( session.jsonl.zstd ), aggregates by provider - Uncached input / cache read / output / model call count - 🔄 Today / All-time toggle: today (Beijing time) or full history - 🎨 Auto-adapts to light/dark theme + refresh button + close button Screenshot Install (from the plugin market) Restart dsh web , then refresh the page — a balance button appears at the bottom of the sidebar. Architecture - index.js : node-side cordis plugin, registers HTTP route /dsh-balance/data - client.js : browser-side plugin, injects into sidebar.footer.action (sidebar bottom button + floating panel) - package.json : dsh.bundle + dsh.client.platform: "web" + exports["./client"] - cordis.patch.yml : bundle patch registering the node entry Manual install Then add to /.dsh/profiles/…
在 GitHub 查看完整 README →