Preface¶
When working with agents or everyday conversations in DeepSeek Harness (DSH), you typically have to pick a provider first, configure an API key, and handle switching to another provider on your own after a free endpoint returns 429 or 5xx errors. The community plugin dsh-freellmapi (maintained by lion231226) consolidates “selecting models per request, automatically switching to fallback candidates on failure, and streaming responses” into a single DSH provider route: after installation, just select FreeLLMAPI (Auto) as the provider and auto as the model in the model selector. The default direct mode requires no separate gateway or Docker, and doesn’t force you to fill in a key upfront — the built-in pool includes providers that the maintainer has verified with credential-less requests.
The README clearly states: this is a community project, and it has no affiliation with or endorsement from DeepSeek or any upstream providers; when using each provider’s free tier, you must comply with their terms of service on your own, and be aware that free tiers may log or use data for training. The plugin runs under the current DSH process’s privileges; before installing, it’s recommended to review the GitHub repository source code and the MIT License.
What Is This¶
dsh-freellmapi is a Free-tier multi-provider routing plugin for DSH: it registers a provider route freellmapi inside the Cordis bundle, presented externally as FreeLLMAPI (Auto), with the core model id being auto. Each request first goes through a complexity classification (simple / medium / complex), then candidate models are ranked by metadata such as capability and speed; on encountering 429, 5xx, timeout, or model_unavailable, it tries the next candidate before the first chunk has been emitted, avoiding a single answer being stitched together by two different models.
Compared to “maintaining your own long list of OpenAI-compatible base URLs,” the plugin ships with a catalog of 17 providers and 46 models (the README table lists 18 provider entries; the package description mentions 18 catalogued providers), of which only 5 are enabled by default, and all 5 include free tiers. Providers without a configured key are collapsed into a setup:<provider> guidance entry in the model list, rather than a pile of uncallable dead models; if you pin a specific model id, it will not silently switch to another model — missing keys, non-existent models, or models in cooldown will return an explicit error.
There is also a gateway mode reserved: its behavior matches v0.1.0, forwarding requests to an external freellmapi gateway (which you must deploy yourself), suitable for users who still want gateway-side bandit, caching, and fusion features. The default direct mode performs all routing logic entirely inside the plugin.
In terms of classification, the SkillHub directory categorizes it as model inference. The current package version is 0.7.18 (see the repository’s package.json).
Core Features¶
Below is a summary based on the README’s “What you get” section; all of these can be verified in the repository documentation.
Self-contained routing (direct)
No external processes are needed; it can be used after DSH starts and loads the bundle.
Built-in model pool and default enabled scope
The catalog covers Groq, Cerebras, OpenRouter, Mistral, Z.ai, Volcengine Ark, LongCat, LLM7, Kilo, NVIDIA NIM, OVH AI Endpoints, as well as ModelScope, iFlytek Spark, SiliconFlow, SambaNova, HuggingFace Router, Routeway, etc.; each model carries factual fields such as capability, speed, context, vision, and tool calling. Only five of these providers are enabled out of the box.
Model selection by request complexity
Simple enumeration-type tasks and multi-tool refactoring tasks are not forced to go through the same model; the tier determines whether the ranking prioritizes capability or speed.
Failover and health tracking
The first retryable failure parks the candidate (default 2 minutes); consecutive failures escalate as 2 minutes → 10 minutes → 1 hour → 24 hours; the Retry-After returned by the provider takes precedence; 401/403 will park that provider for 24 hours. The scoring penalty has a ~60 second half-life, so a single 429 won’t block the routing for a long time.
Zero-configuration usability
The maintainer verified keyless routes with requests lacking an Authorization header on 2026-10-13 (see the repository’s _lead/live-probe-2026-10-13.md for details). Among them, Kilo and LLM7 are enabled by default and can complete completions without a key; OVH is also keyless but disabled by default.
Observability
With the default logRouting enabled, each request produces a single log line, e.g.:
dsh-freellmapi: tier=complex -> openrouter/nvidia/nemotron-3-ultra-550b-a55b:free (capability=5, speed=3, 2 candidates tried)
Failures are returned as an in-band finish chunk with a stable error code, rather than as uncaught exceptions.
Installation and Activation¶
The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community site with no official affiliation with DeepSeek/High-Flyer. The installation spec follows the README.
1. Via the Web GUI (recommended)¶
- Open the DSH web interface and navigate to the Plugins manager in the sidebar.
- Install the bundle by pasting one of the following and confirming (restart DSH if prompted):
github:lion231226/dsh-freellmapi # from GitHub (no npm publish needed)
github:lion231226/dsh-freellmapi#v0.7.18 # pinned to a tag
dsh-freellmapi # from npm, once published
The plugin ships with cordis.patch.yml; once installed correctly, do not insert lines with the same id: freellmapi into the profile’s cordis.patch.yml, otherwise the bundle composition will fail due to a duplicate loader entry.
2. CLI (verify against your DSH build)¶
The README provides equivalent commands (the documentation notes these have not been verified end-to-end here):
dsh plugin --profile desktop add github:lion231226/dsh-freellmapi
3. Manual placement¶
Copy the package to $DSH_HOME/profiles/<profile>/node_modules/dsh-freellmapi/, add entries to both dependencies and dsh.profile.bundles in that profile’s package.json, run dsh plugin --profile <profile> install, and restart. Writing only to dependencies will not load the bundle.
Runtime environment: package.json requires Node ^22.19.0 || >=24.0.0.
Typical Usage¶
The Quick start can be summarized in four steps:
install the plugin → start DSH → pick provider "freellmapi" + model "auto" → it answers
The specific correspondences are as follows.
- Complete the installation and start DSH.
- (Optional) Paste API keys for some providers in the plugin configuration, see the README’s Adding keys; skipping this step still leaves the default-enabled keyless providers responsive.
- In the model selector, choose the provider FreeLLMAPI (Auto) (routing id is
freellmapi), and the modelauto. - Start a conversation or Agent task; if you need to troubleshoot routing decisions, keep the default
logRoutingand check the single-line log mentioned above.
If you pin a specific model id from the catalog instead of using auto, the plugin will strictly call only that model; if the conditions aren’t met, it returns an explanation and will not secretly switch to another free model.
Long-running Agent sessions: the README’s dedicated section Long-running agent sessions suggests using auto cautiously in long, multi-turn tasks, switching to pinning a specific model or adjusting configurations when necessary; it’s recommended to read that section before writing Agents.
Gateway mode: in the configuration, set mode to gateway and point to your self-hosted freellmapi gateway; its behavior matches earlier versions and is a separate path from direct’s built-in ranking and failover.
For finer configuration options, how to read the model list, and troubleshooting, see the README’s Configuration, Troubleshooting, and other sections.
Use Cases and Notes¶
Who it’s for
- Those who want to get things running first and add keys gradually in DSH, leveraging the default keyless + free-tier setup for development or lightweight tasks.
- Those who need model selection by complexity within a single request, with automatic fallback to candidates when upstream rate-limits or fails, and who accept the “failover only before the first chunk” semantics.
- Those already comfortable with DSH plugins and willing to use a community-maintained routing table (provider availability changes with upstream; the README also lists Limitations and unverified claims).
Please note before use
- The plugin is unofficial; you are responsible for what you send to each free API.
- Installation means trusting the bundle code; please review the source code on GitHub directly before installing.
- Whether the CLI installation command exactly matches your DSH version should be verified against the runtime help or GUI.
- If you need gateway-side fusion / caching, use
gatewaymode and operate freellmapi yourself, rather than the default direct mode.
Wrapping Up¶
dsh-freellmapi consolidates multi-vendor free tiers into a single FreeLLMAPI (Auto) + auto route inside DSH: no external gateway is needed by default, you can start without a key, models are selected by request complexity and failover occurs before the first chunk, and pinned models are not silently replaced.
- Directory page: https://www.skillhub.cn/plugins/lion231226/dsh-freellmapi
- Source code and full documentation: https://github.com/lion231226/dsh-freellmapi