DWJZ/dsh-balance ↗★ 0

dsh-balance

在会话中查询 DeepSeek 账户余额 适合需要随时在会话中通过命令快速查看 API 余额的用户。

套件
dsh-balance
相容性
待驗證
Cordis 依賴範圍
^4.0.1
版本
0.1.0
授權
MIT
最近更新
2026年9月21日

同名套件的其他儲存庫

安裝

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

Configuration

Optional; write it into $DSH_HOME/profiles/ /cordis.patch.yml:

- id: dsh-balance
  config:
    apiKey: ''                        # explicit key; empty means "use apiKeyRef"
    apiKeyRef: DEEPSEEK_API_KEY       # credentials / environment reference
    baseUrl: https://api.deepseek.com
    timeoutMs: 10000
    cacheMs: 30000                    # how long one reading answers later calls

An unusable value (a non-string reference, a timeout below one second) fails loud at load instead of being silently replaced.