kongshan-zhuyu/dsh-balance-quota--packages-dsh-bundle-balance ↗★ 0
@deepseek-ai/dsh-bundle-balance
DSH Web Profile bundle for provider balance and quota display
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kongshan-zhuyu/dsh-balance-quota#d6cd4b3fb1a29ec178b9b06a65289ddb82dba199&path:packages/dsh-bundle-balance说明文档
阅读完整 README ↗⚙️ Configuration
Open Settings → Plugins → Provider Status (供应商状态).
- For DeepSeek or OpenCode Go, click Use official preset on the matching model provider.
- The plugin reuses the credential ref from the Models page — it never overwrites or deletes that shared credential.
- For any other provider, choose Add balance query, enter the public HTTPS balance/quota endpoint and the JSON path.
You can choose a default provider at the bottom of the settings section, enable or disable the status bar, and bind a provider to a model route for tidier organization. The Test button in the provider editor checks the current unsaved form and never saves the provider or updates the formal cache.
Custom provider example
Balance path: $.remaining ?? $.quota?.remaining ?? $.balance
Currency: $.unit ?? "USD"
Supported: public HTTPS endpoints only, GET or body-less POST, JSON property
paths with ?. and up to five ?? branches, fixed ISO 4217 currency or read-from-
response, custom request headers, timeout, cache interval, and amount conversion.
Options
| Option | Default | Description |
|---|---|---|
statusBar | true | Show/hide the balance bar in the composer. |
queryIntervalMinutes | 30 | Per-provider refresh interval (0 disables auto refresh). |
timeoutSeconds | 10 | Request timeout for a custom provider. |
method | GET | GET or body-less POST. |
responsePath | — | JSON path to the balance value, with ?. / ?? support. |
currency | "USD" | Fixed ISO 4217 code, or an expression like $.unit ?? "USD". |
valueDivisor | 1 | Raw value ÷ divisor = displayed amount (for unit-based quotas). |
headers | {} | Extra request headers (Authorization is auto-injected). |