zoyluoblue/deepseek-harness-billing

Shows your DeepSeek API balance in the DSH sidebar, a Settings section and /balance — what is left, never what was spent.

Puts the balance where you already look: a capsule at the sidebar foot, a Balance section in Settings, and a /balance command. It registers no model-facing tool and appends no session event, so mounting it costs the conversation nothing. The design point is the failure state: a failed read must never render as a zero balance, because "out of money" and "could not tell" are different facts — so an em dash is shown and Settings carries a classified reason (INVALID_KEY, ENDPOINT_UNAVAILABLE, RATE_LIMITED, MALFORMED_RESPONSE, network error). Refreshes are pull-driven and serialized through one policy in one place, since three surfaces can ask at the same moment against an account endpoint with no documented rate limit. Clicking the capsule re-reads rather than deep-linking, and the README says why: the settings shell exposes no "open settings" service for it to call.

Usage & Billing ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add @zoytown/dsh-billing

The npm line, and this one is not a preference: the README states that a git install is not supported yet, because the package ships no prepare script and dsh plugin add github:… would therefore install sources without a build. Install from npm, or from a pnpm pack tarball; both carry prebuilt code and need no build permission in pnpm.

Compatibility

Reads the platform's GET /user/balance. The README is explicit that this is all the platform exposes — /usage and /dashboard/billing/usage both return 404 — so any per-session cost figure would be a local estimate from token counts and is deliberately out of scope here. balance_infos is an array, because one account can hold CNY and USD at once, and every surface renders all of it rather than the first entry. The browser half reads a plain webserver route rather than a Typert Remote, because a Remote needs a generated invocation descriptor that an out-of-tree package cannot produce; trustedHosts exists for an off-machine deployment and the README says plainly that it stops a browser being used as a proxy into loopback and is not authentication.

Details

Alternatives

zoyluoblue/deepseek-harness-token · rayadesune/DeepSeek-Harness-chat-billing · yyb16yyb-hub/dsh-deepseek-usage

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins