Adds the Liquid Inference auction exchange as a model route, with liquid.auto and its ranking variants, and four tools that read offers, markets, routers and job receipts. Requires a Liquid Inference API key (LIQUID_API_KEY, spend scope).
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:architect-xyz/liquid-dsh-plugin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Liquid Inference for DeepSeek Harness: a liquid model route plus read-only market tools.
Install
Not published to npm yet. Install from GitHub or from a packed tarball, then export a buyer key with the spend scope and restart the profile:
export LIQUID_API_KEY=sk-liquid-...
From GitHub. The built lib/ is committed, so no build step or allowBuilds entry is needed:
dsh plugin --profile web add github:architect-xyz/liquid-dsh-plugin
Pin a commit (github:architect-xyz/liquid-dsh-plugin#<sha>) so a later push cannot change what you install.
From a tarball. Needs no build permission:
git clone https://github.com/architect-xyz/liquid-dsh-plugin.git
cd liquid-dsh-plugin && pnpm install && pnpm pack
dsh plugin --profile web add ./dsh-liquid-inference-0.1.0.tgz
Pick Liquid Auto (liquid.auto) in the model picker.
What it adds
Model route liquid — no adapter code. The bundle patch configures the stock llm-pi-ai adapter with api: openai-completions, baseURL: https://router.inference.ai.exchange/v1 and apiKeyEnv: LIQUID_API_KEY.
- Cap. Each request carries
x-liquid-cap-usd, the most it can cost, locked before the first token. The default is 1 USD; setLIQUID_CAP_USDin the launching environment to change it. - Models.
liquid.autoplus its ranking variants:cheapest,:economy,:balancedand:premium(documented in the description ofGET /v1/exchange/routers), anddeepseek-v4-flashas a pinned model. Add any id fromGET /v1/modelswith amodelsentry in your profile'scordis.patch.yml. - Reasoning. Levels
low,mediumandhighare sent asreasoning_effort. The exchange passes the level through unchecked, so a level the winning provider rejects fails that request.
Tools (plugin liquid-inference)
| Tool | Endpoint | Key |
|---|---|---|
liquid_get_book |
GET /v1/exchange/offers |
no |
liquid_get_markets |
GET /v1/exchange/markets |
no |
liquid_get_routers |
GET /v1/exchange/routers |
no |
liquid_get_job |
GET /v1/jobs/{id} |
yes |
Chat, image, speech and video purchases are deliberately not tools: the harness's own model route is the one place that spends.
Data flow
Full prompts and tool results go to router.inference.ai.exchange, which forwards them to whichever third-party provider wins the auction. The key is read per request, from the credential store when the profile mounts one and from LIQUID_API_KEY otherwise (headless profiles disable the store). It is never written to config.
Notes
- The patch replaces the
llm-pi-airow's wholeconfig. If another bundle also configures pi-ai providers, restate them in your profile'scordis.patch.yml. - Develop:
pnpm install && pnpm run check. Commit the rebuiltlib/with source changes (CI fails on a stale one).pnpm run test:installpacks the bundle, installs the tarball into an isolated profile of a real dsh (DSH_VERSIONpicks the release, defaultnext) and boots it; it needs network access.
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 93739
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 2236
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 1035
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
XDTrees/dsh-workbuddy-xdpool★ 660
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
XDTrees/dsh-xdpool★ 660
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool: multi-account rotation, 429 cooldowns, live credits, a model catalog with per-model credit multipliers and free/night-discount tags, QR-code login for 13 vendors, and aggregate free-tier channels. Accounts persist across restarts.
V1ki/dsh-plugin-subscriptions★ 658
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.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.