dsh-zen-spoof
Run the following command in DeepSeek Harness:
dsh plugin install mikey-666/dsh-zen-spoof
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install mikey-666/dsh-zen-spoof in DeepSeek Harness to install the plugin, whose source code is hosted at https://github.com/mikey-666/dsh-zen-spoof.
About this plugin
OpenCode Zen gates its free tier behind HTTP header checks that verify requests originate from the official OpenCode client. The pi-ai adapter bundled in DeepSeek Harness has a subtle flaw: its fixed attribution headers silently overwrite any user-supplied User-Agent, so the spoof never actually takes effect. A local installer patch can fix this temporarily, but it is not part of the npm package and can disappear after a dsh upgrade, leaving the whole setup fragile.
dsh-zen-spoof takes a different route: it registers as a standalone opencode provider, builds every spoof header per request, and issues the fetch directly to the Zen gateway, completely bypassing pi-ai's header pipeline. The plugin is fully self-contained, depends on no patch, and works with any dsh version. On startup it pulls the latest free-model list from the Zen API, so the catalogue stays current without manual upkeep.
On the streaming side, the plugin maps reasoning_content into reasoning blocks and content into text blocks, aligning with dsh's BlockAssembler protocol so the model's chain of thought appears natively in the UI. When Zen returns 429 or 5xx responses, it rotates through its candidate pool with exponential backoff and Retry-After support. API keys are resolved per request, so swapping credentials requires no restart. If you want cost-free access to OpenCode Zen models inside DeepSeek Harness without relying on a brittle local patch, this is the cleanest option available today.
Use Cases
- Connect to OpenCode Zen free-tier models directly inside DeepSeek Harness at no cost
- Replace the fragile pi-ai local patch so header spoofing survives dsh upgrades
- Automatically rotate through candidate models with exponential backoff on 429 or 5xx
- Use reasoning-capable free models and view the full chain of thought in the dsh UI
Best For
- Developers who want zero-cost OpenCode Zen model access within DeepSeek Harness
- Users frustrated by pi-ai's fixed User-Agent override blocking free-tier access
- Engineers who prefer a version-agnostic, self-contained adapter over installer patches
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.