rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:jackgucarbon/dsh-opencode-go-multi-quota
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness plugin that shows OpenCode Go quota for every configured account under the composer, and follows the provider selected in the current session.

在 DeepSeek Harness 输入框下方显示所有已配置 OpenCode Go 账号的剩余额度(5 小时 / 每周 / 每月),并跟随当前会话的 provider 自动切换。
llm-pi-ai.providers 自动识别账号,不在插件里写死数量。限流 标红,每格带剩余、已用和 ↻ 重置时间。llm-pi-ai.providers and picks every provider that looks like OpenCode Go. No account count in the plugin code.modelDirectories store; switching models swaps the pill immediately.rate-limited cells are marked in red.↻). Same-day resets show only HH:mm; other days show MM/DD HH:mm.On every request the host reads the loaded @deepseek-ai/dsh-llm-pi-ai entry and its config.providers. A provider is included when it has an apiKeyEnv and any of these is true:
opencode;baseURL contains opencode.ai;apiKeyEnv contains OPENCODE.The apiKeyEnv value is the credential ref to resolve. Providers with only a stored credential record and no apiKeyEnv are not shown.
If the loader config cannot be read, the host falls back to the two conventional refs OPENCODE_GO_API_KEY and OPENCODE_API_KEY. A config with no matching provider shows “No OpenCode accounts found” instead of an endless spinner.
0.2.1-rc.5 (or a compatible 0.2.x; see engines.dsh).llm-pi-ai.providers with an apiKeyEnv that resolves through DSH credentials or the environment.@deepseek-ai/dsh-client-ui-model-selection; the plugin uses it to follow the session provider.This package is distributed from GitHub only; no npm release is published. Use the GitHub spec below.
Recommended: open Plugins → Install in the DSH web UI and install from the GitHub spec:
github:jackgucarbon/dsh-opencode-go-multi-quota
The Plugin Manager adds the bundle to the profile and reloads it.
CLI installs only add the package dependency; add the bundle to dsh.profile.bundles yourself:
dsh plugin --profile desktop add github:jackgucarbon/dsh-opencode-go-multi-quota
{
"dsh": {
"profile": {
"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-opencode-go-multi-quota"]
}
}
}
After installation, restart DSH if the host half does not reload, then refresh the page.
The host registers a same-origin read-only route:
| Request | Response |
|---|---|
GET /plugin/opencode-go-multi-quota |
Default provider (first discovered, or opencode-go) |
GET /plugin/opencode-go-multi-quota?provider=opencode |
One named provider |
GET /plugin/opencode-go-multi-quota?provider=all |
Every discovered account, plus a detected flag |
...&refresh=1 |
Bypass the 60-second cache |
The upstream endpoint is GET https://opencode.ai/zen/go/v1/usage with a Bearer token. It is read-only and does not consume plan quota.
opencode.ai; the plugin has no telemetry.refresh=1 bypasses the cache. Do not expose the DSH web server to untrusted networks without adding a proxy or auth layer in front of it.OPENCODE ref, it may appear and fail; narrow the rule or remove that provider from llm-pi-ai.providers.npm test
The tests use fake API keys and a mocked fetch; no real credentials are needed. test/client.test.mjs runs the client module against a tiny hook runtime and a fake model directory, so it checks provider switching and the popover without a browser.
Built and tested against DeepSeek Harness 0.2.1-rc.5. The plugin uses the client modelDirectories service and the host loader, credentials, and webServer services; breaking changes to those services will need a plugin update.
MIT. Not affiliated with OpenCode or DeepSeek; “OpenCode” and “DeepSeek” are used descriptively.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。