Baisbt/dsh-api-balance

Baisbt★ 0JavaScript最后同步: 2026-08-17

在 GitHub 打开

A lightweight DeepSeek Harness plugin for monitoring API balance and session token usage.

README 摘要

dsh-secret-balance-widget A floating plugin for DeepSeek Harness that shows your DeepSeek API balance and the current session's real token usage in a small, draggable, translucent chip. Minimized Expanded Just the balance, as a tiny floating pill. Balance + current session input/output tokens, a manual refresh, and a Pin control. The plugin reuses the harness' own data sources instead of reinventing them: - Tokens are read straight from the harness' tokenUsage session projection produced by @deepseek-ai/dsh-token-meter — the exact source the built-in stats line under the input box uses. There is no re-tokenization and no custom tokenizer . - Theme is the harness' own DSW CSS-variable token set, so Light / Dark are matched automatically. - The API key is stored with the harness' credentials service (the same official secret store the Models page writes to) and is never returned to the browser or rendered. - Network (the balance call) happens on the Host half and is exposed to the Client over the official Package-private JSON RPC ( harness.handle / host.call ). 1. What it is A single Cordis plugin with two halves: Half Runs in What it does Host ( src/host.js ) the DSH Node process st…

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

分类