Introduction¶
When developing chat or agents in DeepSeek Harness (DSH), model sources usually rely on self-hosted APIs, paid channels, or provider plugins maintained by individual teams. If you simply want to try the free models provided by OpenCode Zen within your local Harness—without registering a separate account, filling in an API key, or spinning up another proxy process—you need an adapter layer that “registers the Zen free lane as a native DSH provider.”
This article introduces the community plugin dsh-zen-adapter (maintained by seonzzy), which connects Zen free models to DSH under the provider id zen-free and supports live discovery of the model catalog from upstream sources.
What Is This¶
dsh-zen-adapter is a “model inference” plugin for DSH: it registers OpenCode Zen’s free models as a native LLM provider for DSH, with no registration, no API key, and no extra process required. The short description matches the repository description: OpenCode Zen free models for DeepSeek Harness, with live catalog discovery and no dependencies.
- Catalog page: https://www.skillhub.cn/plugins/seonzzy/dsh-zen-adapter
- Source code and documentation: https://github.com/seonzzy/dsh-zen-adapter
- Current package version: 0.2.0, License: MIT
The DSH ecosystem emphasizes “everything is a plugin”; community catalogs like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer. Before installing any plugin, it is recommended to read the repository source code and license yourself—plugins run under the permissions of the current DSH process.
Core Features¶
Zero Configuration and Zero Dependencies¶
After installing the plugin and restarting DSH, you will see the OpenCode Zen (free lane) group in the model selector. The plugin’s dependencies field is empty; @deepseek-ai/* and @earendil-works/pi-ai are only optional peerDependencies. At runtime it reuses the pi-ai bundled with the DSH host, avoiding two copies of pi-ai on your machine that could conflict with other provider plugins (e.g., plugins that validate the pi-ai generation).
Dynamic Model Catalog and Free-Tier Detection¶
The model list is not hardcoded in the plugin; instead, it is fetched in the background at startup and then refreshed automatically every 30 minutes. The catalog comes from the intersection of two upstream sources:
| Source | Provides | Does not provide |
|---|---|---|
opencode.ai/inference/v1/models |
Currently available model ids | Pricing, context length |
models.dev/api.json |
cost, limit.context, limit.output |
Whether a model is currently available |
Free-tier determination is based on models.dev’s cost field (input and output are both 0). Only when metadata is missing does it fall back to checking whether the id has a -free suffix. Context length and output limits also come from models.dev.
The cache is written to ~/.cache/dsh-zen-adapter/catalog.db; the available-model list is cached for about 5 minutes, and models.dev metadata for about 24 hours. You can change the cache directory via the environment variable ZEN_CACHE_DIR; deleting that directory clears the cache.
Availability Detection and Plugin Panel¶
“Being in the catalog” does not mean “this machine can actually call it.” The free lane is affected by upstream endpoints, regions, and per-IP quotas. On the Settings → Plugins → dsh-zen-adapter page you can:
| Button | Purpose |
|---|---|
| Fetch models | Re-pull the catalog from upstream (bypassing the cache) |
| Check availability | Send real requests one by one and mark which models are currently available |
The table displays the model name, context size, output limit, availability status, and the basis for the determination.
Installation and Activation¶
Prerequisites: DSH must be a version that includes llm.registerAdapter and webServer; Node ≥ 20 (provided by DSH); network access to opencode.ai and models.dev. You do not need to separately install pi-ai, an API key, or any npm/pnpm dependencies.
The official installation command is as follows (replace <your-profile> with your actual profile name):
dsh plugin --profile <your-profile> add github:seonzzy/dsh-zen-adapter
You can also install from a local directory:
dsh plugin --profile <your-profile> add <absolute-path-to-this-directory>
After installation, restart DSH and select a model under OpenCode Zen (free lane) in the model selector in the chat input box.
Uninstall:
dsh plugin --profile <your-profile> remove dsh-zen-adapter
Then restart DSH.
Typical Usage¶
- Install using the command above and restart DSH.
- Pick any model under OpenCode Zen (free lane) in the model selector to start a conversation.
- In a new environment or if the model list looks abnormal, open the plugin details page, click Fetch models first, then click Check availability, and choose currently available entries based on the table.
The plugin itself has no required configuration items. If you need to change the provider id, the placeholder models used before the catalog is fetched, or the 30-minute refresh interval, you will need to edit the constants at the top of lib/index.js (such as PROVIDER_ID, SEED_MODELS, refreshTimer); these are advanced modifications.
Use Cases and Notes¶
Who it is for: Developers already using DSH who want to try OpenCode Zen free models with zero keys, and want the model list to update according to upstream changes without waiting for a plugin release.
Upstream limitations (not fixable by the plugin):
| Symptom | Cause | Suggestion |
|---|---|---|
429 |
Quota exhausted or too many requests in a short time | Wait and retry, or switch networks |
403 RegionError |
The model is not available in your region | Try other models |
5xx / 400 |
Upstream temporary failure | Switch models or try again later |
| A model is missing from the selector | It has not yet been classified as free | Click Fetch models to refresh |
Before installing, please read the source code and MIT license at https://github.com/seonzzy/dsh-zen-adapter, and confirm that you accept the plugin’s behavior and the scope of network access within the DSH process.
Conclusion¶
dsh-zen-adapter brings OpenCode Zen free models into DSH as a native provider named zen-free, emphasizing zero-dependency coexistence, a dual-source dynamic catalog, and panel-side availability detection. If you need an entry point, visit the SkillHub catalog page at https://www.skillhub.cn/plugins/seonzzy/dsh-zen-adapter; for details, refer to the GitHub repository at https://github.com/seonzzy/dsh-zen-adapter.