DeepSeek Harness (dsh) uses a plugin-based architecture. @openllmsh/dsh is a plugin package for routing Harness traffic to the OpenLLM Gateway and registering the OpenLLM MCP server. It adds OpenLLM as the default model to the built-in llm-pi-ai adapter. This is a configuration-only Cordis patch layer with no runtime code.
Core Features¶
The plugin provides the following capabilities:
- LLM Router: Adds the
openllmprovider to dsh’s built-inllm-pi-aiadapter, pointing to the local gatewayhttp://127.0.0.1:8787/v1and setting it as the default model. No API key is required; authentication is handled by the daemon. - MCP Server: Registers the
openllm mcpstdio server, providing theopenllm,claude-context, andsupermemorytool groups. - Configuration-Only Layer: Implementations are done through
cordis.patch.yml, with no runtime code.
Prerequisites¶
Before using this plugin, the following conditions must be met:
- Install OpenLLM: OpenLLM must be installed first.
- Run the Daemon: Ensure that
openllmdis running. - Node.js Version: The engine requires Node.js ^22.19.0 || >=24.0.0.
Installation and Activation¶
The plugin is installed into a specific profile. Please select the corresponding command based on your runtime environment:
Browser UI (web profile):
dsh plugin --profile web add github:openllmsh/dsh
Headless / CLI (headless profile):
dsh plugin --profile headless add github:openllmsh/dsh
Local development/debugging (demo profile):
dsh plugin --profile demo add .
After installation, restart the corresponding profile.
How It Works¶
- Communication Mechanism: The plugin only communicates with the local gateway
http://127.0.0.1:8787. The plugin itself does not hold secrets or sources. - Authentication Handling: The gateway does not require the plugin to provide authentication. The OpenLLM daemon reads
~/.openllm/.envand handles upstream authentication itself. - Runtime Location: The plugin runs on the host’s DeepSeek Harness process and relies on the base environment provided by the host’s
@deepseek-ai/dsh-base.
Development and Build¶
The source code is located in src/index.ts (placeholder), while the actual logic is in cordis.patch.yml.
pnpm install
pnpm build # 使用 tsdown 编译 lib/index.mjs (+ .d.mts)
pnpm typecheck # TypeScript 类型检查
dsh plugin --profile demo add . # 链接到测试配置
dsh --profile demo --dump-config # 检查插件树
Note: The lib/ directory is committed to the repository, so installing directly from GitHub does not require a build step. After modifying src/, you need to rebuild and commit lib/.
License and Links¶
- License: MIT
- Owner: openllmsh
- Repository: https://github.com/openllmsh/dsh
- Catalog: https://www.skillhub.cn/plugins/openllmsh/dsh