crazy-L118/dsh-deepseek-balance-widget ↗★ 2
dsh-deepseek-balance-widget
Multi-provider AI balance widget for the dsh web sidebar: a live, auto-refreshing balance pill plus a detail popover listing DeepSeek and any added providers (MiMo etc.). Keys are stored per-machine in ~/.dsh/ai-balances.json and resolved from the local credential seam, never hardcoded.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:crazy-L118/dsh-deepseek-balance-widget说明文档
阅读完整 README ↗配置
插件首次使用会自动创建 DeepSeek 条目,读取你本机的 DEEPSEEK_API_KEY。
要加入 MiMo,打开弹窗点右上角「+ 添加」,再点「AI 帮我配置」,把提示语发给智能体;也可以直接对 AI 说:
帮我配置 dsh-deepseek-balance-widget。
AI 会接管全部:问 API Key / 引导获取平台 Cookie → 读取本机教程写入配置 → 提醒重启 dsh web。
| 平台 | 凭据 | 备注 |
|---|---|---|
| DeepSeek | DEEPSEEK_API_KEY | 必填,余额 |
| DeepSeek 用量 | DEEPSEEK_PLATFORM_TOKEN | 可选,统计累计 / 本月 / 今日 |
| MiMo(小米) | 登录 Cookie | AI 引导获取 |
凭据保存在你本机的 ~/.dsh/ai-balances.json,不随插件分发、不上传。