deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
shsr07/dsh-go-usage
OpenCode GO subscription usage widget for DeepSeek Harness: rolling / weekly / monthly usage with reset countdowns, collapsible to a right-edge tab.—— DeepSeek Harness 的 OpenCode GO 套餐用量角标插件:右下角卡片显示滚动 / 每周 / 每月用量与重置倒计时,可收起为右边缘竖条。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:shsr07/dsh-go-usage
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
dsh-go-usage is a DeepSeek Harness (DSH) web plugin that shows your OpenCode GO subscription usage as a bottom-right corner widget: rolling / weekly / monthly usage percentages with reset countdowns, collapsible to a right-edge vertical tab.
dsh-go-usage 是 DeepSeek Harness (DSH) 的 Web 插件:在页面右下角以角标组件显示你的 OpenCode GO 套餐用量——滚动 / 每周 / 每月用量百分比与重置倒计时,可收起为右边缘竖条标签。
powershell.exe).dsh) installed — npm install -g @deepseek-ai/dshopencode-go API key present in the local opencode auth file (set up by the OpenCode CLI):
%USERPROFILE%\.local\share\opencode\auth.jsondsh plugin --profile web add dsh-go-usage
git clone https://github.com/shsr07/dsh-go-usage.git
cd dsh-go-usage
pnpm install
pnpm build
dsh plugin --profile web add link:<absolute-path-to-this-checkout>
link:points at the local checkout — after editing, re-runpnpm buildand restart the web service. You can also install straight from a git host:dsh plugin --profile web add github:shsr07/dsh-go-usage#<sha>(the package ships apreparescript that builds from source; allow the build when pnpm asks).
Restart the web service (dsh web), then look at the bottom-right corner of the page.
All settings are optional; the defaults work out of the box. Add a config: block to the plugin row in your profile's cordis.patch.yml to override:
- id: go-usage
name: 'dsh-go-usage'
config:
authJsonPath: 'C:\Users\me\.local\share\opencode\auth.json'
apiUrl: 'https://opencode.ai/zen/go/v1/usage'
powershellExe: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
timeoutSec: 15
| Key | Type | Default | Meaning |
|---|---|---|---|
authJsonPath |
string | $USERPROFILE/.local/share/opencode/auth.json (or $HOME) |
Absolute path of the opencode auth.json containing the opencode-go API key. |
apiUrl |
string | https://opencode.ai/zen/go/v1/usage |
The OpenCode GO usage API endpoint. |
powershellExe |
string | C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe |
The PowerShell executable the fetch runs. |
timeoutSec |
number | 15 |
API request timeout in seconds (1–120). |
/go-usage/api/usage on the DSH web server. Each request runs one powershell.exe invocation: it reads the opencode-go API key from the local opencode auth.json, calls https://opencode.ai/zen/go/v1/usage, and returns the parsed buckets. TLS 1.2 is enabled explicitly because Windows PowerShell 5.1 defaults to older TLS.shell.overlay) and fetches the same-origin route every 60 seconds./api gateway (loopback Host header or the connection row's trustedHosts), so a cross-site page cannot reach it.auth.json by the host process and never leaves it.opencode.ai itself.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。