kongshan-zhuyu/dsh-balance-quota--packages-dsh-client-balance0

@deepseek-ai/dsh-client-balance

DSH balance client: provider settings and compact balance status bar

AI 분석

核心用途是在 DSH 界面中提供直观的供应商余额状态栏。适合需要随时查看 API 额度消耗、避免因欠费导致任务中断的个人或企业用户。

패키지
@deepseek-ai/dsh-client-balance
버전
0.2.0
라이선스
MIT
최근 업데이트
2026. 8. 31.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

⚙️ Configuration

Open Settings → Plugins → Provider Status (供应商状态).

  1. For DeepSeek or OpenCode Go, click Use official preset on the matching model provider.
  2. The plugin reuses the credential ref from the Models page — it never overwrites or deletes that shared credential.
  3. 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

OptionDefaultDescription
statusBartrueShow/hide the balance bar in the composer.
queryIntervalMinutes30Per-provider refresh interval (0 disables auto refresh).
timeoutSeconds10Request timeout for a custom provider.
methodGETGET or body-less POST.
responsePathJSON path to the balance value, with ?. / ?? support.
currency"USD"Fixed ISO 4217 code, or an expression like $.unit ?? "USD".
valueDivisor1Raw value ÷ divisor = displayed amount (for unit-based quotas).
headers{}Extra request headers (Authorization is auto-injected).