DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Localforge — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
L

dsh-localforge

Localforge

High-performance LM Studio (and any OpenAI/Anthropic-compatible local server) chat-completions adapter for DeepSeek Harness, with live discovery, auto-load, model fallback, concurrency control, Prometheus metrics, and a permissive vision-aware partner adapter.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:orfeomorello/dsh-localforge#a12b87c8badb69171e537d704f124ff766b506bc
READMECompatibilityVersions

Compatibility and provenance

Localforge is published as dsh-localforge and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/5/2026

Versions

0.1.0stable
10/5/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/6/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.Codex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode

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.