Carrick-K7/dsh-ai-quota ↗★ 1

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渠道剩余额度与余额的用户。

Package
dsh-ai-quota
Compatibility
Unverified
Harness peer range
^0.1.0-rc.6
Cordis peer range
^4.0.1
Version
0.7.7
License
MIT
Last updated
Sep 11, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Carrick-K7/dsh-ai-quota

Configuration

All keys optional, defaults shown.

KeyDefaultMeaning
timeoutMs15000Per-provider query timeout (ms)
refreshIntervalMs120000Auto-refresh interval (ms); 0 = off
codexClicodexcodex CLI command or absolute path
deepseekApiKeyEnvDEEPSEEK_API_KEYDSH credential ref (fallback: same-named env var)
opencodeGoApiKeyEnvOPENCODE_GO_API_KEYDSH credential ref (fallback: same-named env var)
ai302ApiKeyEnvAI_302_API_KEYDSH credential ref (fallback: same-named env var)
deepseekBaseUrlhttps://api.deepseek.comDeepSeek API base URL
opencodeBaseUrlhttps://opencode.ai/zen/go/v1/usageOpenCode Go usage endpoint
ai302BaseUrlhttps://api.302.ai302.AI API base URL
kimiBaseUrlhttps://api.kimi.com/coding/v1Kimi usage endpoint base (appends /usages)
kimiOauthHosthttps://auth.kimi.comKimi OAuth refresh endpoint (appends /api/oauth/token)
kimiClientIdKimi Code CLI's public client idOAuth client_id (usually unchanged)