deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
A DSH account-quota plugin. It keeps a resident Card at the left end of the composer that follows the selected model and shows the matching account readout — DeepSeek balance, or OpenCode Go remaining token usage over the 5h (rolling) / weekly / monthly windows — with a debounced manual refresh button and interval-based auto refresh.
conversation.input.left)session.models RPC; providers whose id contains deepseek show the balance
card, opencode providers show the usage card, anything else shows a muted
placeholder. The model is re-checked on mount, after each finished turn
(running flips), on connection reset, and on settings changes.DEEPSEEK_API_KEY) +
refresh interval, with a configured/missing badge.OPENCODE_GO_API_KEY) +
refresh interval.GET https://api.deepseek.com/user/balance with
Authorization: Bearer <key>.GET https://opencode.ai/zen/go/v1/usage with
Authorization: Bearer <key> (the same Anthropic-compatible key used when
ANTHROPIC_BASE_URL points at opencode.ai/zen/go).ctx.credentials.resolve(); the browser only
receives read-only fetched results. Settings writes require a same-origin
POST.force=1) bypasses the cache.Prerequisites: DSH installed (dsh web runs) and pnpm on PATH (dsh plugin
forwards to pnpm).
# 1. Unzip to a folder, e.g. D:\plugins\dsh-quota-cards
# 2. Install into the web profile:
dsh plugin --profile web add file:D:/plugins/dsh-quota-cards
dsh plugin add runs pnpm and adds @dsh-external/dsh-quota-cards to the
profile's dsh.profile.bundles.
# 3. Restart dsh web
# 4. Open Settings → 额度查询, confirm both credential references, and make
# sure the keys exist (e.g. in .credentials.yaml or env):
# DEEPSEEK_API_KEY: sk-xxxx
# OPENCODE_GO_API_KEY: sk-yyyy
# 5. Back on the chat page, the quota Card sits at the left of the composer.
dsh plugin --profile web remove @dsh-external/dsh-quota-cards
# then restart dsh web
settings, credentials, sessions, agentDefaultModel,
optional webServer; client services slots, connection; slots
conversation.input.left and settings.section (declared by the shipped
ui-conversation / ui-settings bundles).deepseek → balance card, opencode →
usage card); DeepSeek's official provider id is deepseek-official and the
common OpenCode Go id is opencode-go.@deepseek-ai
packages are peerDependencies resolved from the profile).CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。