将 Liquid Inference 拍卖式推理交易所接入为模型路由,提供 liquid.auto 及其排序变体,并附带四个工具,用于读取报价、市场、路由器与任务收据。需 Liquid Inference API Key(LIQUID_API_KEY,spend 权限)。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:architect-xyz/liquid-dsh-plugin
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 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.
链接
同类插件
Ebony-Vinyl/dsh-our-free-model★ 93739
为 dsh 接入免费模型车道(含 DeepSeek V4.1 Flash、Kimi K3 等),无需登录、注册或填写 API Key,并提供本地 OpenAI 兼容网关、降级路由与用量看板。
dingminhua/dsh-connect-workbuddy★ 2236
将本机登录的 WorkBuddy 模型(国内版与国际版)接入 DSH,每次刷新按上游目录读取每个模型的积分倍率,支持逐模型图片输入开关、带自动换号的账号池、手动每日签到,以及卡片与输入框里的只读积分胶囊读数。
Alice-Marx/dsh-model-router★ 1035
为 DeepSeek Harness 规划有依赖的工作包,将其分配给已配置的模型 API 或支持的厂商 CLI,并提供费用预览。
XDTrees/dsh-workbuddy-xdpool★ 660
把本机 WorkBuddy 桌面 App 登录过的所有账号自动并入 DSH 模型池:多账号轮换自动容错、实时积分,模型目录按模型标注积分倍率与限时免费 / 夜间折扣。
XDTrees/dsh-xdpool★ 660
把本机 WorkBuddy 桌面 App 登录过的所有账号自动并入 DSH 模型池:多账号轮换自动容错、429 冷却、实时积分,模型目录按模型标注积分倍率与限时免费 / 夜间折扣,扫码登录 13 家厂商,聚合免费额度渠道。账号重启不丢。
V1ki/dsh-plugin-subscriptions★ 658
把 ChatGPT(Codex)、Claude、Grok 订阅当作 DeepSeek Harness 的 LLM 提供方:设置页登录、模型目录、用量展示,以及 image_generate、video_generate 与 x_search 工具。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。