sxwer001/dsh-coding-plan-quota ↗★ 0

dsh-coding-plan-quota

Coding-plan quota ring next to the DSH model selector. Reads the quota windows or balances of every configured coding plan (OpenCode Go, GLM, Kimi, MiniMax, Claude, Codex, Gemini, Copilot and more), cycles 5-hour/weekly/monthly on click, colours the ring by urgency, and lets the hover card switch the displayed source. 适合使用多种商业代码助手并需要实时监控剩余额度的开发者。

パッケージ
dsh-coding-plan-quota
互換性
未検証
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/10/06

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sxwer001/dsh-coding-plan-quota

ドキュメント

README 全文を読む ↗

Configuration

apply(ctx, config) merges the config over these defaults:

KeyDefaultMeaning
cacheMs60000host-side cache lifetime per source
timeoutMs12000upstream request timeout
thresholds[50, 75, 90]green → blue → orange → red boundaries
defaultProvider"opencode-go"what to show before you pick one
hideUnconfiguredfalsehide sources with no credential
insecureTlsfalseskip certificate verification
providers{}per-source overrides, keyed by id

Per-source overrides:

KeyMeaning
enabledfalse removes the source from the card
endpointreplace the built-in URL (this is how you enable ark)
apiKeya literal key, which beats every other credential source
apiKeyEnvread the key from this environment variable instead
region"cn" switches to the vendor's mainland endpoint
insecureTlsper-source override of the global flag
- insert:
    - id: coding-plan-quota
      name: dsh-coding-plan-quota
      config:
        thresholds: [50, 75, 90]
        defaultProvider: opencode-go
        providers:
          ark:
            endpoint: "https://"

Credentials

For each source, the first hit wins: providers..apiKey → the environment variable named by providers..apiKeyEnv (or the built-in name) → DSH's credentials service → $DSH_HOME/.credentials.yaml → the vendor's own CLI file, where one exists (OpenCode, Claude, Codex, Gemini, Copilot).

Credentials are read on the node half and never sent to the browser.