Ghost011118/dsh-balance-meter ↗★ 0
dsh-balance-meter
DeepSeek 账户余额与用量读取插件,在 DSH Web 界面中查询并显示当前 API 密钥的剩余余额和消费情况。
AI 分析
在输入框旁直观展示 DeepSeek 官方账户余额。适合使用官方 API 且需要随时监控账户额度剩余的 DSH 用户,需配置有效 API 密钥。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Ghost011118/dsh-balance-meter說明文件
閱讀完整 README ↗Configuration
The plugin is zero-config by default (uses DEEPSEEK_API_KEY and the
official pricing page). Optional composition settings:
- insert:
- id: balance
name: 'dsh-balance-meter'
config:
model: flash # 'flash' (default) or 'pro'
pricingRefreshHours: 6
| Key | Type | Default | Meaning |
|---|---|---|---|
model | 'flash' | 'pro' | flash | Pricing preset used until the auto-fetched page overrides it |
pricingRefreshHours | number | 6 | Hours between automatic official-pricing refreshes |
apiKeyEnv | string | DEEPSEEK_API_KEY | Credential ref storing the DeepSeek API key |
baseUrl | string | https://api.deepseek.com | API base URL (gateway/compat override) |
refreshIntervalSeconds | number | 30 | Minimum seconds between balance queries |