Goal
DeepSeek is currently reported only by CodexBar. Add a second live client source for its prepaid account balance and preserve it as prepaid_balance / n/a (never a burn recommendation).
Evidence and preferred path
- The 2026-07-30
aiuse -q --json source audit found DeepSeek only from CodexBar.
slkiser/opencode-quota already obtains DeepSeek balance via the official GET https://api.deepseek.com/user/balance route. First assess whether it has a stable, unattended, machine-readable export that aiuse can consume without scraping terminal display.
- DeepSeek documents the same balance endpoint: https://api-docs.deepseek.com/api/get-user-balance.
Decision rule
- Prefer an existing external project only if it provides stable structured output, can be called with the normal collector timeout, and uses credentials the operator already manages.
- Otherwise implement a small optional native collector, following the OpenCode Zen pattern: resolve an explicit environment override first, then SecretSpec; validate the credential before saving; never put a key in TOML, snapshots, output, errors, argv, or logs.
- Do not substitute local cost/token telemetry for live balance.
Acceptance criteria
- Produces an
opencode-independent deepseek prepaid-balance row with documented provenance.
- Cross-checks CodexBar when both report an account balance; disagreement is surfaced, not silently merged.
- Missing credentials/tool are quiet opt-out; HTTP/auth errors are scoped to this collector.
- Tests cover parsing, credential precedence/redaction, request failure, and cross-check behavior using fixtures with no real secrets.
- README, docs index, source-coverage guide, JSON contract implications, and
aiuse doctor behavior are updated as appropriate.
Goal
DeepSeek is currently reported only by CodexBar. Add a second live client source for its prepaid account balance and preserve it as
prepaid_balance/n/a(never a burn recommendation).Evidence and preferred path
aiuse -q --jsonsource audit found DeepSeek only from CodexBar.slkiser/opencode-quotaalready obtains DeepSeek balance via the officialGET https://api.deepseek.com/user/balanceroute. First assess whether it has a stable, unattended, machine-readable export that aiuse can consume without scraping terminal display.Decision rule
Acceptance criteria
opencode-independentdeepseekprepaid-balance row with documented provenance.aiuse doctorbehavior are updated as appropriate.