CowB0ySpike/dsh-deepseek-balance ↗★ 0
dsh-deepseek-balance
DSH plugin: shows the DeepSeek API key account balance below the composer. 适合使用自有API Key的用户,无需登录官网即可随时查看额度余量。
같은 패키지 이름의 다른 저장소
설치
$
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 # 单次上游请求超时(毫秒)
| 选项 | 默认值 | 说明 |
|---|---|---|
apiKeyEnv | DEEPSEEK_API_KEY | 交给 ctx.credentials 解析的引用名,不是 Key 本身 |
baseURL | https://api.deepseek.com | 上游地址,可用于自建/代理网关 |
cacheTtlMs | 60000 | 成功结果的缓存时间 |
timeoutMs | 10000 | 上游请求超时 |
cordis.patch.yml 里已有一条同 id 的条目(只声明 name),上面的写法会覆盖它的 config,不会重复插入。