SyamStud/dsh-opencode-usage

SyamStud★ 1JavaScript最后同步: 2026-08-18

在 GitHub 打开

OpenCode usage widget for the DeepSeek Harness web sidebar. Live rolling, weekly & monthly plan limits as progress bars.

README 摘要

dsh-opencode-usage OpenCode usage widget for the DeepSeek Harness (DSH) web sidebar Monitor your OpenCode plan limits — rolling, weekly, and monthly — with live progress bars in the DSH web sidebar footer. Features - Live usage bars — Rolling , Weekly , and Monthly limits rendered as color-coded progress bars (red at or above 90%, amber at or above 70%, blue otherwise). - Human-readable resets — countdowns such as resets in 5d 19h instead of raw ISO timestamps. - Sidebar footer widget — a compact OpenCode Usage button that opens an anchored popover with one bar per window and a manual Refresh action. - Native look & feel — mirrors the built-in Settings trigger (height, radius, hover states, theme tokens) and collapses to a circular icon in the compact rail. - Secure by design — the API key never reaches the browser. A host-side proxy keeps the secret, so there is no CORS exposure and no leaked credentials. Requirements - A DeepSeek Harness ( dsh CLI) installation with the web profile enabled — the widget registers into the web sidebar. - Node.js ≥ 18 (uses the global fetch API). - An OpenCode account, or an existing OpenCode sign-in on the host machine (see API key setup). Installa…

在 GitHub 查看完整 README →
皮肤/UIdeepseek-harnessdsh-plugindsh-pluginssidebar

分类