dsh-balance
适用于 DSH Web 界面的多服务商余额监控插件,支持低余额提醒与历史趋势图表。
AI 分析
核心用途是集中监控多个 API 服务商的余额状态,防止因额度耗尽导致任务中断。适合配置了多个 API Key、需要统一财务规划与预警的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Anyway-one/dsh-balance说明文档
阅读完整 README ↗2. Configure keys in Settings → Plugins → Plugin configuration → Balance (see "Configuration" below)
Configuration
Graphical settings card (recommended)
Open Settings → Plugins → Plugin configuration → Balance. The card lists every configured provider — enter each API Key and optionally override its base URL, then save.
- Keys are written to DSH's credential store (write-only, never echoed back).
- base URL overrides land in the plugin's settings namespace and apply to the next balance read.
Manual credentials (alternative)
Under the hood the plugin reads the same credential references from ~/.dsh/.credentials.yaml:
DEEPSEEK_API_KEY: sk-your-key-here # official DeepSeek route
OPENROUTER_MANAGEMENT_KEY: sk-or-v1-... # OpenRouter account (Management Key, not the inference key)
ZAI_API_KEY: your-zai-key # Z.ai open platform
Moonshot / Kimi profiles under llm-pi-ai are discovered automatically and reuse their apiKeyEnv. Providers without a public balance API show an explicit "no public balance interface" state — never a guess.