- Home
- Plugins
- Usage & Billing
- dsh-usage-quota
dsh-usage-quota
yuuu0109/dsh-usage-quota
DeepSeek Harness web plugin for model usage, balance quota, and daily token display
Install
dsh plugin --profile web add github:yuuu0109/dsh-usage-quotaREADME
dsh-usage-quota
A DeepSeek Harness Web plugin for model usage and balance queries, with a compact quota status above the sidebar Settings button and a durable daily token total.
Features
- Adds a Usage Queries section to DSH settings.
- Lists models currently available from the Models settings.
- Supports the official DeepSeek
GET {baseURL}/user/balanceendpoint. - Supports custom GET/POST queries with Bearer, custom-header, or no authentication.
- Includes generic OpenAI-compatible and New API presets; remaining values can use a direct JSON path or
total - used. - Maps used, remaining, total, and currency values from JSON paths.
- Supports
{{baseUrl}},{{apiKey}},{{model}}, and{{provider}}variables with one-click insertion. - Auto-refreshes every 1 to 1440 minutes.
- Switches token display between full numbers and compact K/M notation, persisted per browser.
- Rebuilds today's token count from persisted session events, so it survives page reloads and process restarts.
Install
dsh plugin --profile web add @yuuu0109/dsh-usage-quota
Restart the dsh web process and refresh the browser.
Update
dsh plugin --profile web update @yuuu0109/dsh-usage-quota
Restart dsh web and refresh the browser. If a configured npm mirror has not synced the latest version yet, use the official registry:
dsh plugin --profile web update @yuuu0109/dsh-usage-quota --registry=https://registry.npmjs.org/
pnpm 11 may delay newly published versions for 24 hours. To update immediately:
dsh plugin --profile web update @yuuu0109/dsh-usage-quota --config.minimumReleaseAge=0
Install from source
git clone https://github.com/Yuuu0109/dsh-usage-quota.git
cd dsh-usage-quota
pnpm install
pnpm build
dsh plugin --profile web add .
Uninstall
dsh plugin --profile web remove @yuuu0109/dsh-usage-quota
Restart dsh web.
Development
pnpm typecheck
pnpm test
pnpm build
Compatibility is pinned to DeepSeek Harness 0.1.0-rc.8 and React 18.
This is an independent community plugin and is not part of the official DeepSeek Harness repository.
Related plugins
dsh-context
bowenliang123/dsh-context
deepseek-balance-whale-widget
meteornox/deepseek-balance-whale-widget
dsh-cost-meter
han-1413141/dsh-cost-meter
TokenLedger
zh667/tokenledger