jsoncode/dsh-get-balance

Multi-account DeepSeek balance plus per-key cost breakdown, with editable peak and off-peak price tiers.

Three tabs in one modal plus two entry points. Balance enumerates every DeepSeek provider — routes whose baseURL points at DeepSeek, the official route, and manually attached extra keys — and shows each account's balance with granted balance and a topped-out flag, plus that key's own spend today. Cost is a single table per key with four scope rows (last question, this session, today for the project, today overall): input uncached, input cache hit, output, hit rate and estimated cost, with a total group first and compact K/M/B/T/P numbers. Prices is a pricing table laid out per platform with online-editable model-by-peak cells. A sidebar entry and a live session-header button open it, with auto refresh.

Usage & Billing ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add dsh-get-balance

The npm line. The README's other forms are a local directory, a release tarball and a pinned GitHub build. The host loads the entry as native Node ESM. Extra API keys outside any provider configuration can be attached from the modal itself (label plus masked key) and are persisted to a JSON file in the dsh home, so they do not need to live in settings.

Compatibility

The cost model is deliberately asymmetric and the page has to say so: token usage is counted per API key regardless of officialness, but cost is computed only for official keys — anything whose API domain is not the official one shows a not-billed chip instead of a fabricated amount. Accounts are folded: several routes resolving to the same key become one row with a chip for each sharing route, and the balance query runs once per distinct key. Keys never reach the browser — the host proxies the balance call. Results are cached in memory for 60 seconds and refresh bypasses the cache. Price tiers are editable in the panel, with only the price cells as inputs, and peak is red, off-peak green; the platform sub-tab is DeepSeek-only for now.

Details

Alternatives

LemCAE/dsh-balance · JonyChan8394/dsh-llm-balance · GPIOX/dsh-api-balance

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins