qiuyongjin/dsh-balance1

dsh-balance

DSH plugin: query and display the DeepSeek account balance — dsh_balance tool + live conversation-input widget in the web UI (TypeScript, dual-face).

AI Analysis

核心用途是实时监控DeepSeek官方API的账户余额。适合频繁调用DeepSeek官方接口、需要防止因欠费导致服务中断的开发者。

Package
dsh-balance
Version
0.2.0
License
MIT
Last updated
Aug 16, 2026

Install

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

配置

默认配置开箱即用;如需覆盖,在 profile 的 cordis.patch.yml 按行 id 覆盖(patch 整替换 config,需重述全部键):

- id: dsh-balance
  config:
    apiKeyEnv: DEEPSEEK_API_KEY
    baseURL: https://api.deepseek.com
    timeoutMs: 10000
默认值说明
apiKeyEnvDEEPSEEK_API_KEY读取 API key 的凭据引用(POSIX 环境变量名)
baseURLhttps://api.deepseek.comDeepSeek API 基地址
timeoutMs10000请求超时(毫秒)