kyya/dsh-deepseek-balance ↗★ 0
dsh-deepseek-balance
DeepSeek Harness 插件:在侧边栏左下角实时展示 DeepSeek API 余额。
AI 分析
核心用途是在 Web 界面侧边栏直观、实时地监控 DeepSeek 官方 API 余额。适合需要随时掌握 API 消费情况、避免额度意外耗尽的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kyya/dsh-deepseek-balance说明文档
阅读完整 README ↗配置
默认读取凭据 DEEPSEEK_API_KEY(即 ~/.dsh/.credentials.yaml 里、或
DEEPSEEK_API_KEY=… 环境变量、或「设置 → 模型」里保存的那个 key)。
在 ~/.dsh/profiles/web/cordis.patch.yml 里覆盖(覆盖整行 config,需写全字段):
- id: deepseek-balance
config:
refreshMs: 60000 # 后台刷新间隔(毫秒)
apiKeyEnv: DEEPSEEK_API_KEY # 凭据引用名
baseUrl: https://api.deepseek.com
endpoint: /user/balance