boomerangz/dsh-openrouter-live
Adds an OpenRouter (live) route to DSH that reads OpenRouter's own model list, so a new model appears before the next harness release.
Closes the window between a model being released on OpenRouter and a harness release publishing it. The built-in openrouter route lists models from a catalog bundled with each release, so a model newer than that snapshot is simply absent from the picker; this plugin adds a second route, OpenRouter (live), that reads OpenRouter's /models endpoint, refreshed every ten minutes, keeping the previous list if a refresh fails. The list is filtered to models that accept tools, because agent turns need them, sorted by name so one vendor's models stay together, and each name carries its input/output price per million tokens — pickers show names but not descriptions, so the price rides in the name and also appears on the composer's model button. Metadata is taken per model rather than assumed: context window and output cap come from OpenRouter, and the reasoning selector offers only the levels that model's own reasoning.supported_efforts lists, including Off where reasoning is optional. Reasoning continuity is preserved by sending reasoning_details back on later requests, signed and encrypted entries included, and failures are mapped to harness codes so the retry layer retries rate limits, upstream 5xx, idle or truncated streams and empty responses, but never bad keys, exhausted credits or context overflow.
Install
dsh plugin --profile web add dsh-openrouter-liveThe npm line. The README carries an install-time warning that is easy to lose: install the packed .tgz, not the directory — adding a directory makes pnpm link it, Node resolves that link to a real path outside the profile, @deepseek-ai/* cannot be found there, and the whole profile fails to boot.
Compatibility
Supports DeepSeek Harness 0.1.6-alpha.2 through 0.1.7, tested on 0.1.6-alpha.2 and 0.1.7-alpha.2; Node ^22.19 || >=24. The README explains the narrow range as policy rather than neglect: the harness API is pre-stable, so later versions are added to the peer range after they are tested. It is honest about the ledger's boundaries — spend covers only requests through this plugin's routes, the built-in openrouter and deepseek-official routes are not counted, and a cancelled or mid-stream-failed request that OpenRouter still bills will not appear in /cost. The Web UI indicator reads a loopback-only route, because the harness web server does not authenticate plugin routes, so the indicator stays hidden when the UI is opened over the network.
Details
- Repo: boomerangz/dsh-openrouter-live
- Category: Models & Providers
- Stars: 0
- Version: 0.2.2 (npm)
- Last push: 2026-09-23
- First seen: 2026-09-22
Alternatives
mirelconstantin/dsh-opencode-router · itongxiaojun/dsh-openrouter-free-models · SkylerFee/dsh-llm-opencode-go-live