返回目录
模型与 MCP 待识别

dsh

openllmsh/dsh

DeepSeek Harness (dsh) bundle: route the harness through OpenLLM (OpenAI-compatible) + register the OpenLLM MCP, with CLI/daemon onboarding.

Stars
1
Forks
0
Issues
0
更新
11 天前

PROJECT TOPICS

项目标签

PROJECT README

README

OpenLLM

@openllmsh/dsh — route DeepSeek Harness through OpenLLM.

npm npm next License: MIT dsh plugin


A DeepSeek Harness (dsh) plugin that runs the harness on OpenLLM models and gives it OpenLLM's MCP tools. It is a pure-config Cordis patch with no runtime code.

  • OpenLLM as the default model. Adds an openllm provider to dsh's in-box llm-pi-ai adapter, pointed at the local daemon (http://127.0.0.1:8787/v1), with the ultra, plus and lite models (ultra by default).
  • Images and reasoning. Image input is on, and dsh thinking levels map to OpenLLM reasoning_effort (off to none, then minimal through max).
  • No key in dsh. The daemon serves requests with your saved openllm login, so there is nothing to paste or export.
  • MCP that works from the Desktop app. The OpenLLM MCP server is started from $HOME/.openllm/bin/openllm, so GUI launches without your shell PATH still find it, and a failed first connect retries quickly.

OpenLLM routes your API keys, local vendors and local models through one format-agnostic endpoint. See the documentation.

Before you begin

Install OpenLLM with Full setup (dsh needs the local daemon, which Minimal does not run), sign in, and start the daemon. macOS and Linux:

curl -fsSL https://www.openllm.sh/install | bash
openllm login
openllm start
openllm status

On macOS, the Mac app is an alternative.

Agents install with bash -s -- --non-interactive --full, which does not start the daemon. Then run openllm login --non-interactive, have the user approve the link, run the printed openllm login --resume <id>, and run openllm start.

Install

Add the plugin to the profile you run. Profiles are separate, so a plugin in one is not visible in another.

dsh plugin --profile web add @openllmsh/dsh        # browser UI
dsh plugin --profile headless add @openllmsh/dsh   # headless / CLI
dsh plugin --profile web add @openllmsh/dsh@next   # the latest prerelease

Restart the profile afterwards. Each npm release is published by CI from this repository with provenance. The same source is tagged here, so github:openllmsh/dsh#vX.Y.Z installs the identical code (lib/ is committed, so no build step runs).

What it configures

Setting Value
Provider openllm on llm-pi-ai, openai-completions, http://127.0.0.1:8787/v1
Models ultra (default), plus, lite
Input text, image
Reasoning default medium; off, minimal, low, medium, high, xhigh, max
Compatibility supportsDeveloperRole: false (OpenLLM takes the system prompt as system)
MCP server openllm, stdio, $HOME/.openllm/bin/openllm mcp (falls back to openllm on PATH)
MCP startup failOnStartupError: false, reconnect after 100 ms

All of it lives in cordis.patch.yml.

Common problems

Symptom Fix
auth_error mentioning openllm login Sign the daemon in with openllm login.
Connection refused on 127.0.0.1:8787 Run openllm start, then openllm status.
First MCP tool call fails right after startup Wait a moment and retry. The client reconnects on its own.
Daemon on a custom port (OPENLLM_DAEMON_PORT) Change baseURL in cordis.patch.yml to match.

Develop

pnpm install
pnpm build && pnpm typecheck && pnpm test
npm pack && node scripts/smoke-npm.mjs openllmsh-dsh-*.tgz   # tarball smoke test

dsh plugin --profile demo add .     # link into a scratch profile
dsh --profile demo --dump-config    # inspect the composed tree

lib/ is committed for git installs, so rebuild and commit it when src/ changes. dsh is pre-1.0; re-test against each dsh release.

Releases: bump version, tag vX.Y.Z, and publish a GitHub release. .github/workflows/npm-publish.yml tests, smoke-tests and publishes with npm trusted publishing (stable to latest, prereleases to next).

License

MIT © OpenLLM, INC. See LICENSE.

CLASSIFICATION EVIDENCE

分类依据

项目类型待识别
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、model-context-protocol、llm、openllm、deepseek-harness。