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

dsh-coding-plan-quota

展示和切换各代码计划的额度环形图 适合使用多种商业代码助手并需要实时监控剩余额度的开发者。

包名
dsh-coding-plan-quota
兼容性
待验证
版本
0.2.0
许可证
MIT
最近更新
2026年10月6日

安装

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

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.