Repository navigation
Releases
Releases · mil0thedev/opencode-deepseek-balance
v0.3.0
Balance and billing fixes against DeepSeek's official API, plus a sidebar that fits narrow layouts.
Added
- Plugin version in the sidebar header, replacing the data age while the balance is fresh.
- Bilingual roadmap (
FUTURES.md/FUTURES.es.md) with the OpenCode 1.x/2.x compatibility vision.
Fixed
- Chinese public holidays are off-peak all day, computed against the
Asia/Shanghaicalendar day. - Official 2026 holiday calendar and provisional 2027 dates, with an outdated-calendar warning.
- The pricing line no longer wraps mid-word: the current window and the next change render as a fixed label column.
- The next change time uses 24-hour format so its width is deterministic.
Hardened
- Typed errors, exponential backoff with jitter,
Retry-Aftersupport, a five-second timeout, and a single in-flight request. - Balance cache in
api.kv, credential caching, and support for both legacy and integration auth formats. - 31 tests covering parsing, holidays, countdown, retry, and version reporting.
Install with npm i opencode-deepseek-balance@0.3.0.
Full changelog: v0.2.0...v0.3.0
v0.2.0
opencode-deepseek-balance v0.2.0
DeepSeek balance and peak/off-peak pricing in your OpenCode sidebar.
Install
opencode plugin opencode-deepseek-balanceHighlights
- Live balance from DeepSeek's official API.
- Peak/off-peak billing window with a countdown.
- Automatic refresh every 60 seconds and after a session goes idle.
- Plugin version shown next to the title.
- English and Spanish READMEs.
- Published on npm: https://www.npmjs.com/package/opencode-deepseek-balance
Notes
- The plugin reads your existing DeepSeek credentials from OpenCode.
- The API key stays local and is only sent to
api.deepseek.comover HTTPS.