Badegg404/dsh-api-balance ↗★ 1
@Badegg404/dsh-api-balance
DSH Web 插件:会话标题栏悬浮显示多个 AI 平台的账户余额与用量(余额 / 用量双 tab) 适合同时使用OpenAI、智谱、Together等多个平台并需监控额度的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Badegg404/dsh-api-balanceUsage (用量)
| Provider | Endpoint |
|---|---|
| OpenAI | GET /v1/organization/costs |
| 智谱 GLM | GET /api/monitor/usage/quota/limit |
| Together AI | GET /v1/billing/usage |
| Anthropic (Claude) | GET /v1/organizations/cost_report |
Provider endpoints may change upstream; if a provider fails to parse, consult its official docs. See "Adding a provider" below.
Usage
- Open a session; the pill appears to the left of the "Session log" button
- In the Balance (余额) tab: pick a balance provider → paste the API key (AGICTO also needs the account UUID) → save; the balance shows in the pill and tab, auto-refreshing every 30s
- Switch to the Usage (用量) tab: pick a usage provider (e.g. OpenAI) → paste the API key → save; it shows the 30-day cost (or token quota for 智谱), also auto-refreshing