CowB0ySpike/dsh-deepseek-balance ↗★ 0

dsh-deepseek-balance

DSH plugin: shows the DeepSeek API key account balance below the composer. 适合使用自有API Key的用户,无需登录官网即可随时查看额度余量。

Package
dsh-deepseek-balance
Compatibility
Unverified
Version
1.0.0
License
MIT
Last updated
Oct 21, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CowB0ySpike/dsh-deepseek-balance

配置

全部可调项都有默认值,不配置也能用。需要时在 profile 的 cordis.patch.yml 里追加:

- id: deepseek-balance
  name: dsh-deepseek-balance
  config:
    apiKeyEnv: DEEPSEEK_API_KEY   # 凭据引用名
    baseURL: https://api.deepseek.com
    cacheTtlMs: 60000             # 成功结果缓存(毫秒)
    timeoutMs: 10000              # 单次上游请求超时(毫秒)
选项默认值说明
apiKeyEnvDEEPSEEK_API_KEY交给 ctx.credentials 解析的引用名,不是 Key 本身
baseURLhttps://api.deepseek.com上游地址,可用于自建/代理网关
cacheTtlMs60000成功结果的缓存时间
timeoutMs10000上游请求超时

cordis.patch.yml 里已有一条同 id 的条目(只声明 name),上面的写法会覆盖它的 config,不会重复插入。