deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
A DeepSeek Harness (DSH) plugin that keeps a compact usage widget inside the left sidebar of the Web GUI:
GET https://api.deepseek.com/user/balanceGET https://api.kimi.com/coding/v1/usages (5-hour window + weekly quota)The panel is always visible in the sidebar footer, click to collapse/expand, auto-refreshes every 60 s, and offers a DeepSeek / Kimi toggle.
Community plugin, not an official DeepSeek plugin.
Requires a DSH Web/Desktop profile (the plugin targets the browser client).
# from GitHub (repo ships prebuilt lib/, no build step needed)
dsh plugin --profile <name> add github:AHui-Lab/dsh-usage-widget
# once published to npm
dsh plugin --profile <name> add dsh-usage-widget
# if no global dsh CLI
npx --yes @deepseek-ai/dsh plugin --profile <name> add github:AHui-Lab/dsh-usage-widget
Restart DSH, then look at the bottom of the left sidebar for the "用量" entry.
The browser cannot call api.kimi.com directly (its CORS preflight rejects the Authorization header), so the plugin keeps two data paths:
GET /usage-monitor/deepseek|kimi (registered on the host webserver) proxies the upstream. It prefers the API key the client sends in the Authorization header, otherwise falls back to the DSH credentials service / env.Keys are per-machine and never ship with the plugin:
DEEPSEEK_API_KEY / KIMI_CODING_API_KEY in ~/.dsh/.credentials.yaml or the environment (host reads them).localStorage only (key prefix usage-monitor.key.*) and sent only to the upstream API.Note: keys are intentionally not distributed with the plugin. Each machine configures its own.
The widget registers into the sidebar.footer.action list slot and renders inline inside the sidebar column (full column width, no floating overlay, no overlap with the chat area). All styles are scoped under data-plugin="dsh-usage-widget".
lib/index.js (registers the two /usage-monitor/* routes; inject: ["webServer"]).lib/client.js (ModuleLoader bundle; only react + @deepseek-ai/dsh-client-ui-primitives from the baseline).lib/ is committed so both GitHub and npm installs need no build step.USAGE_MONITOR_DEEPSEEK_REF, USAGE_MONITOR_KIMI_REF, USAGE_MONITOR_DEEPSEEK_BASE, USAGE_MONITOR_KIMI_BASE.Verify before releasing:
npm run check
npm pack --dry-run --ignore-scripts
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。