MatsMQ/dsh-deepseek-balance ↗★ 0
@dsh-external/dsh-deepseek-balance
Live DeepSeek account balance widget for the dsh web GUI: always-visible sidebar/header badges plus a full Web Settings tab, auto-refreshed every 30s
AI Analysis
核心用途是直观监控 DeepSeek 官方 API 账户的剩余额度,防止因欠费导致服务中断。适合频繁调用官方 API 且需要精细控制预算的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MatsMQ/dsh-deepseek-balanceREADME
Read the full README ↗使用
- 确保凭据已配置(
$DSH_HOME/.credentials.yaml或环境变量):DEEPSEEK_API_KEY: sk-...,与模型设置中使用的 Key 一致。 - 重启 DSH Web 服务(插件在启动时装载)。
- 进入会话后可在标题栏右侧看到余额徽章,悬停显示完整明细与更新时间;完整页在 设置 → 插件 → 账户余额。
配置(cordis.patch.yml 的 entry config)
| 字段 | 默认值 | 说明 |
|---|---|---|
credentialRef | DEEPSEEK_API_KEY | 使用的凭据引用名 |
upstreamUrl | https://api.deepseek.com/user/balance | 余额查询端点 |
timeoutMs | 10000 | 上游请求超时(毫秒) |