dsh-ai-quota
DeepSeek Harness plugin: query AI subscription quotas & balances (Codex, Kimi, DeepSeek, 302.AI, OpenCode Go) as a model tool and a Settings page 适合需要直接在DSH中监控和查询多个API渠道剩余额度与余额的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Carrick-K7/dsh-ai-quotaREADME
Read the full README ↗Configuration
All keys optional, defaults shown.
| Key | Default | Meaning |
|---|---|---|
timeoutMs | 15000 | Per-provider query timeout (ms) |
refreshIntervalMs | 120000 | Auto-refresh interval (ms); 0 = off |
codexCli | codex | codex CLI command or absolute path |
deepseekApiKeyEnv | DEEPSEEK_API_KEY | DSH credential ref (fallback: same-named env var) |
opencodeGoApiKeyEnv | OPENCODE_GO_API_KEY | DSH credential ref (fallback: same-named env var) |
ai302ApiKeyEnv | AI_302_API_KEY | DSH credential ref (fallback: same-named env var) |
deepseekBaseUrl | https://api.deepseek.com | DeepSeek API base URL |
opencodeBaseUrl | https://opencode.ai/zen/go/v1/usage | OpenCode Go usage endpoint |
ai302BaseUrl | https://api.302.ai | 302.AI API base URL |
kimiBaseUrl | https://api.kimi.com/coding/v1 | Kimi usage endpoint base (appends /usages) |
kimiOauthHost | https://auth.kimi.com | Kimi OAuth refresh endpoint (appends /api/oauth/token) |
kimiClientId | Kimi Code CLI's public client id | OAuth client_id (usually unchanged) |