DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Localforge — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
L

dsh-localforge

Localforge

面向 DeepSeek Harness 的高性能 LM Studio(以及任何兼容 OpenAI/Anthropic 的本地服务器)聊天补全适配器,支持实时发现、自动加载、模型回退、并发控制、Prometheus 指标,以及宽松且支持视觉的合作伙伴适配器。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:orfeomorello/dsh-localforge#a12b87c8badb69171e537d704f124ff766b506bc
README兼容性版本

兼容性与来源证明

Localforge 以 dsh-localforge 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/5

版本

0.1.0stable
2026/10/5

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/6
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。Codex Subscriptiondsh-codex-subscription通过 OAuth 在 DeepSeek Harness 中使用 ChatGPT 和 Codex 订阅,支持配额管理、安全重置、网页搜索、图像和快速模式

README

LocalForge for DeepSeek Harness

A high-performance, MIT-licensed adapter that connects DeepSeek Harness (dsh) to local LLM servers — primarily LM Studio, but also any other OpenAI-compatible or Anthropic-compatible endpoint (Ollama, vLLM, llama.cpp's HTTP server, text-generation-inference, etc.).


Why LocalForge?

Three other LM Studio plugins for dsh exist (and we read all of them carefully — see Inspirations and the Comparison). LocalForge is the one that adds the things missing from every other adapter:

  • Live discovery cache — /v1/models + native /api/v0/models fallback, with TTL and explicit invalidation. The other plugins re-probe the server on every resolveModel.
  • Auto-load — if the requested model isn't resident on LM Studio, ask the server to load it (POST /api/v0/models/{id}/load) and poll until ready.
  • Per-model concurrency limiter — LM Studio saturates under parallel streams on quantized models; LocalForge serializes them per model id.
  • Model fallback chain — fallback: [primary, secondary]. If the primary model returns a recoverable error, the next one is tried automatically.
  • Reasoning budget — caps how much internal "thinking" the model is allowed to do before producing the final answer.
  • Sampling presets — code, chat, creative, precise for sane defaults that you can override per request.
  • Token pre-flight — reject requests that would overflow the context window before paying for a round-trip.
  • Prometheus metrics — /metrics with TTFT, TPS, queue depth, error rates, and cache hits.
  • Health check — periodic probe with auto-reconnect; the /metrics up gauge surfaces the state.
  • Anthropic-compatible adapter — second provider route using /v1/messages, useful for Claude-style system prompts and tool calls.
  • Structured logging with credential redaction — every log line is safe to ship to Loki / ELK without scrubbing.
  • Strict TypeScript — strict + noUncheckedIndexedAccess, full test coverage, GitHub Actions CI.

Install

Prerequisites

  • A working checkout of DeepSeek Harness (dsh), with pnpm install completed at its root.
  • A local LLM server. LM Studio 0.4.8+ with Developer → Start Server on (default port 1234) is the most-tested target; any OpenAI- or Anthropic-compatible server works.
  • Node.js ≥ 22.19.

Steps

# 1. clone the plugin into the dsh checkout's plugins/ directory
cd <dsh-checkout>
git clone https://github.com/orfeomorello/dsh-localforge plugins/dsh-localforge
cd plugins/dsh-localforge

# 2. install (the @deepseek-ai/* deps are `link:` to the parent checkout;
#    --ignore-workspace keeps pnpm from treating this as a workspace root)
pnpm install --ignore-workspace

# 3. link the plugin into the web profile
cd ../..
pnpm dsh plugin --profile web add link:./plugins/dsh-localforge

# 4. start the web UI; refresh http://127.0.0.1:3080
pnpm dsh web

In the model picker at the top of the page you'll now see LocalForge as a provider; pick any model LM Studio has loaded.

Quick start

Minimal ~/.dsh/settings.yaml section:

llm-localforge:
  defaultConnection:
    baseURL: http://localhost:1234/v1
  models:
    - id: qwen/qwen3-8b
      preset: code
      fallback:
        - qwen/qwen3-4b
        - llama-3.1-8b

That's it. Point dsh at any conversation, select "LocalForge" as the provider, and traffic flows to LM Studio. Your DeepSeek API balance is untouched.

Configuration

See docs/CONFIGURATION.md for the full reference (every section, every field, every default).

Architecture

See docs/ARCHITECTURE.md for the design notes — the per-request resolver trick, the dual-endpoint discovery, the SSE parsing, the Prometheus metric set, and the testing strategy.

Inspirations

LocalForge is a clean-room reimplementation. We read three existing plugins to learn the patterns, then wrote everything from scratch with our own license. The inspirations are:

  • Viktirr/dsh-llm-lmstudio — the cleanest TypeScript in-tree adapter, the source of the per-request resolver pattern.
  • jtc268/deepseek-harness-lmstudio — the inspiration for Qwen-specific tool-calling robustness.
  • starlightzfy/dsh-plugin-lmstudio — the inspiration for the plugin-bundle discovery UX.

No code was copied. See docs/COMPARISON.md for the full feature-by-feature matrix.

License

MIT © 2026 The LocalForge authors.