dsh-balance
在会话中查询 DeepSeek 账户余额 适合需要随时在会话中通过命令快速查看 API 余额的用户。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DWJZ/dsh-balance說明文件
閱讀完整 README ↗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.