dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
A DeepSeek Harness web plugin that shows your OpenCode Go quota next to the context status area in the chat composer.
opencode-gorefreshing…; clicking the icon during that time does not start a duplicate requestAfter installing and restarting dsh web, open a session using opencode-go.
A small icon appears on the right side of the composer. Click it to see:
OpenCode Go quota
5h left 85%
Wk left 71%
Mo left 93%
last query: 14:32:08 · refreshing…
dsh plugin --profile web add github:GarfieldGCat/dsh-opencode-go-usage
Then restart:
dsh web
Pin a release tag for stable installs:
dsh plugin --profile web add github:GarfieldGCat/dsh-opencode-go-usage#v0.1.2
You can override the plugin config in your web profile's cordis.patch.yml:
- id: opencode-go-usage
name: dsh-opencode-go-usage
config:
baseUrl: https://opencode.ai/zen/go/v1/usage
timeoutMs: 15000
providerId: opencode-go
| Key | Default | Description |
|---|---|---|
baseUrl |
https://opencode.ai/zen/go/v1/usage |
OpenCode Go usage endpoint |
timeoutMs |
15000 |
Request timeout in milliseconds |
providerId |
opencode-go |
Provider id that must match the current model provider |
OPENCODE_GO_API_KEY~/.local/share/opencode/auth.json, entry opencode-go (falls back to opencode) with type: "api"GET https://opencode.ai/zen/go/v1/usage
Authorization: Bearer <API_KEY>
Example response:
{
"usage": {
"rolling": { "status": "ok", "percent": 9, "resetsAt": "..." },
"weekly": { "status": "ok", "percent": 12, "resetsAt": "..." },
"monthly": { "status": "ok", "percent": 6, "resetsAt": "..." }
}
}
The endpoint returns used percentages. The plugin displays remaining = 100 - percent.
| File | Purpose |
|---|---|
index.js |
Host side: provides the opencodeUsage Remote service, resolves the API key, and queries usage |
typert.host.js |
Typert host manifest |
client.js |
Web side: registers the icon in conversation.input.right and renders the popover |
cordis.patch.yml |
Bundle patch that mounts the host plugin automatically |
package.json |
Declares dsh.bundle + dsh.client |
The web client reads the current session's selected provider via modelDirectories:
opencode-go → show the iconopencode-go → hide the iconMIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。