dsh-llm-api-pool
Pools several OpenCode Go API keys and hot-switches each request to the least-used one, with official usage and balance lookup plus a graphical settings page.
聚合多个 OpenCode Go API key,把每次请求热切换到用量最低的一个,并提供官方用量/余额查询与设置页图形化管理。
How to install
dsh plugin add dsh-llm-api-pool About
dsh-llm-api-pool 为 **opencode go** 设计的 API 池:根据余额热管理切换不同 API key。 把多个 opencode go 订阅(每个 = 一个 {baseUrl, apiKey})收进一个池,实时掌握每个 key 的官方用量/余额,并按"余量最大者优先"自动路由模型请求;一个 key 用满或失败时,自动热切换到下一个。 核心能力 **多 API key 池**:条目主键 = {baseUrl, apiKey}。同一个 key 重复添加 = 原地更新配置;不同 key = 新订阅。同时管理任意多个 opencode go 订阅,无需命名约定。 **官方余额/用量查询(纯 API Key,无需 org token)**:对每个 opencode 条目调用网关原生 GET https://opencode.ai/zen/go/v1/usage,返回**官方** rolling(5h)/weekly(周)/monthly(月)三重限额的用量百分比与精确重置时刻。美元数值 = 百分比 × 限额 的换算供参考,不是 opcode 官方返回的原始金额。 **余额驱动热切换**:路由决策优先使用官方用量压力(remotePressure,usageRemote 缓存 5 分钟 TTL);模型请求前若官方用量过期则非阻塞刷新,选出**余量最大**的订阅;失败…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 0
- mo. downloads
- –
- Last push
- 2026-09-13
- Created
- 2026-08-23
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh-plugin
Related plugins
dsh-plugin-subscriptions
V1ki/dsh-plugin-subscriptions
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
dsh-workbuddy-connect
corrinehu/dsh-workbuddy-connect
Brings the models in the WorkBuddy desktop app straight into DeepSeek Harness — zero configuration in the DSH chat.
claude-code-router
musistudio/claude-code-router
One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control.
dsh-thinking-effort
hytime/dsh-thinking-effort
Configure reasoning-effort levels and sub-agent defaults for custom DSH models.