Skip to content

Add DeepSeek provider support#811

Merged
ratulsarna merged 5 commits intomainfrom
codex/pr-806-audit
Apr 29, 2026
Merged

Add DeepSeek provider support#811
ratulsarna merged 5 commits intomainfrom
codex/pr-806-audit

Conversation

@ratulsarna
Copy link
Copy Markdown
Collaborator

Supersedes #806.

Thanks to @willytop8 for the original DeepSeek provider work.

Summary:

  • Adds DeepSeek balance tracking via API tokens.
  • Shows balance as a usage metric across menu, CLI, and settings surfaces.
  • Uses token accounts as the Settings key entry path and covers debug output/tests.

willytop8 and others added 5 commits April 28, 2026 23:55
Implements GET https://api.deepseek.com/user/balance and surfaces
credit balance (paid vs. granted breakdown) in the menu bar.

- Reads DEEPSEEK_API_KEY (primary) or DEEPSEEK_KEY (fallback) from
  env or Settings → Providers
- Balance shown in identity card (loginMethod); account-unavailable
  and zero-balance states handled with appropriate messages
- SVG whale icon (ProviderIcon-deepseek.svg, MIT) using currentColor
- Disabled by default (defaultEnabled: false)
- Wired into TokenAccountSupportCatalog, SettingsStore+MenuObservation,
  UsageStore+Accessors, and ProviderConfigEnvironment
- 21 tests covering parse, error, currency, and env-var priority

Closes #795

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ratulsarna ratulsarna marked this pull request as ready for review April 29, 2026 11:05
@ratulsarna ratulsarna merged commit af375de into main Apr 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants