architect-xyz/liquid-dsh-plugin ↗★ 0

dsh-liquid-inference

Liquid Inference for DeepSeek Harness: a `liquid` model route plus read-only market tools 适合需要接入Liquid Inference模型进行推理的用户

Package
dsh-liquid-inference
Compatibility
Unverified
Harness peer range
>=0.2.1-rc.2 <0.2.2 || >=0.2.2-0 <0.2.3 || >=0.2.3-0 <0.3.0-0
Cordis peer range
>=4.0.5 <5
Version
0.1.0
Last updated
Oct 19, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:architect-xyz/liquid-dsh-plugin

dsh-liquid-inference

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 package builds itself on install, which pnpm blocks until you allow it:

dsh plugin --profile web add github:architect-xyz/liquid-dsh-plugin

The first run fails with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED. Add the package under allowBuilds in $DSH_HOME/profiles/web/pnpm-workspace.yaml and run the command again:

allowBuilds:
  dsh-liquid-inference: true

That allowance lets the package run its build script on your machine at install time, outside any sandbox. Pin a commit (github:architect-xyz/liquid-dsh-plugin#) so a later push cannot change what runs.

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; set LIQUID_CAP_USD in the launching environment to change it.
  • Models. liquid.auto plus its ranking variants :cheapest, :economy, :balanced and :premium (documented in the description of GET /v1/exchange/routers), and deepseek-v4-flash as a pinned model. Add any id from GET /v1/models with a models entry in your profile's cordis.patch.yml.
  • Reasoning. Levels low, medium and high are sent as reasoning_effort. The exchange passes the level through unchecked, so a level the winning provider rejects fails that request.

Tools (plugin liquid-inference)

ToolEndpointKey
liquid_get_bookGET /v1/exchange/offersno
liquid_get_marketsGET /v1/exchange/marketsno
liquid_get_routersGET /v1/exchange/routersno
liquid_get_jobGET /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-ai row's whole config. If another bundle also configures pi-ai providers, restate them in your profile's cordis.patch.yml.
  • Develop: pnpm install && pnpm run check. pnpm run test:install packs the bundle, installs the tarball into an isolated profile of a real dsh (DSH_VERSION picks the release, default next) and boots it; it needs network access.