rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
Luca4Don3/dsh-providers-live-models
Live model catalogs for DeepSeek Harness: OpenCode Go/Zen, OpenAI Codex and OpenDesign, with per-model switches, sign-in and subscription balances. · 为 DeepSeek Harness 提供实时模型目录:OpenCode Go/Zen、OpenAI Codex 与 OpenDesign,含逐模型开关、登录和订阅额度。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Luca4Don3/dsh-providers-live-models
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Live model catalogs for DeepSeek Harness (DSH): OpenCode Go, OpenCode Zen, native OpenAI Codex and OpenDesign. The plugin refreshes each route at runtime, adds per-model switches, sign-in and subscription usage, and keeps OpenCode's gateway headers and prompt-cache retention. OpenDesign DeepSeek models also request long prompt-cache retention. Nothing is bundled, so upstream changes need no release here.
It also adds compaction recovery: long histories are summarized in capacity-aware batches, and failures or cancellation preserve the original history.
| Route | Catalog | Sign-in / credential | Usage |
|---|---|---|---|
opencode-go |
Pi + live Go roster | OPENCODE_GO_API_KEY |
Go quota |
opencode (Zen) |
Pi + live Zen roster | API key or Console device login | Zen balance |
openai-codex |
Pi public catalog | native ChatGPT OAuth | OpenAI subscription |
opendesign (prerelease) |
account catalog | API key or device authorization | quota and wallet in account mode |
Desktop: Plugins → Add plugin, paste github:Luca4Don3/dsh-providers-live-models, choose Enable now, restart DSH.
CLI:
dsh plugin --profile desktop add github:Luca4Don3/dsh-providers-live-models
Requires DSH 0.1.5-rc.1 or newer. OpenDesign accepts DSH 0.2.x with the explicitly verified pi-ai 1.1.x or 1.3.x compatibility lines. The shipped pairings 0.2.1-rc.5 with patched pi-ai 1.1.0, and 0.2.2-alpha.2 / 0.2.2-alpha.3 / 0.2.2-rc.1 / 0.2.2-rc.2 / 0.2.2-rc.3 with patched pi-ai 1.3.0, all pass the offline host smoke tests. pi-ai 1.5.0 is also accepted because it passes the same test against the 0.2.2-rc.1 adapter, ahead of any release that ships it. Unverified pi-ai lines are refused, and the actual adapter and transport methods are checked before registration. A mismatch disables only OpenDesign. The host needs GitHub access for the github: spec.
llm-pi-ai providers. Codex uses native OAuth; Go and Zen read the key references below.freshMs defaults to five minutes.All sign-ins write only the plugin's own credential records; model API keys and Codex OAuth are not overwritten.
Set these on the providers-live-models entry:
config:
freshMs: 300000
timeoutMs: 15000
goApiKeyRef: OPENCODE_GO_API_KEY
zenApiKeyRef: OPENCODE_API_KEY
openDesign:
protocol: chat-completions # or responses
stripTemperature: false
stripTemperature is only for OpenDesign gateways that reject temperature. quotaSource accepts auto, vela or control.
Each OpenDesign model's request budget comes from its own roster output_budget (128000 for the DeepSeek V4.1 Flash line, 32000 for GLM, MiMo and Hy). Set openDesign.outputTokenBudget to cap every model at one number, or openDesign.modelOverrides[id].maxTokens for a single model. A model the roster says nothing about falls back to 8192. See request budget.
OpenDesign retries MALFORMED_RESPONSE in addition to the host default set. Since
DSH 0.2.2 a single unusable tool-arguments string fails the whole assistant turn
before any tool runs, and the host default does not repeat that code. A gateway
that merges two parallel tool calls into one arguments string would otherwise
end the turn and wait for the user to send another message. The retry count and
backoff stay the host defaults. See docs/opendesign.md.
OpenDesign models whose IDs start with deepseek declare compat.supportsLongCacheRetention: true and default to cacheRetention: long. The Chat Completions and Responses transports can then send prompt_cache_retention: "24h" and a session-based prompt_cache_key. Explicit transport retention options are preserved, and other models are unchanged. This is a request preference, not a guarantee of the gateway's cache lifetime or hit rate.
llm-pi-ai internals. A DSH update that changes them logs a warning and keeps the installed catalog.gemini-4-argon-contributor is unavailable there.npm test
Offline fixtures; no network or credentials needed. CI runs Node 18 and 24.
For an optional real-host smoke test (Node 24.9+), install the exact host and its official patched pi-ai version into an isolated fixture directory, then run node --experimental-import-meta-resolve scripts/verify-opendesign-host.mjs <fixture-dir>. It rejects real HTTP requests and uses synthetic credentials plus local SSE fixtures; it does not test vendor acceptance or the live GUI. Exit code 2 means the OpenDesign host-version gate rejected the fixture.
More: OpenDesign · provider contract · protocol probing · catalog injection
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、openai-codex。