Developer Toolsdsh-plugin

zen-useragent

A DeepSeek Harness (DSH) plugin that patches pi-ai request headers and openai-completions request bodies for OpenCode ZEN free models, using opencode identity headers, a real account-known session ID, and an OAuth token read from the local opencode client database. It targets reported 429 FreeUsageLimitError, 400 MissingSessionID, 401 api_key_expired, and 403 FreeTierError responses, and documents a restart after install or upgrade to confirm patch activation.

Stars
12
Forks
2
Open issues
0
Last push
Oct 18, 2026
Latest release
—
24h Growth
+0
7d Growth
+0

Installation

dsh plugin --profile web add github:jiujiezongheti/zen-useragent

Overview

A DeepSeek Harness (DSH) plugin that patches pi-ai request headers and openai-completions request bodies for OpenCode ZEN free models, using opencode identity headers, a real account-known session ID, and an OAuth token read from the local opencode client database. It targets reported 429 FreeUsageLimitError, 400 MissingSessionID, 401 api_key_expired, and 403 FreeTierError responses, and documents a restart after install or upgrade to confirm patch activation.

  • Allows provider-configured headers such as User-Agent to override attribution headers for pi-ai API requests.
  • Adds opencode identity headers for requests whose merged User-Agent contains opencode, including x-opencode-client and x-opencode-session.
  • Reads a real account-known session ID from the local opencode client database and re-resolves it at runtime every 60s.
  • Uses the opencode client OAuth access token when valid; omits Authorization when the token is expired or unavailable.
  • Patches pi-ai buildParams to add a read shell tool when missing for provider opencodezen or baseUrl containing opencode.
  • Leaves explicit provider headers untouched; auto-completion or overrides do not change same-named headers you configure.
  • Patches are idempotent, use atomic writes, and skip with log messages when target files are unrecognized or not writable.
  • Requires a restart after install or upgrade to confirm the patch; startup logs show patched, upgraded, or already patched.

Related plugins

Awesome-DeepSeek-Harness-Plugins

A concise, daily-curated bilingual directory of public plugins and extensions for DeepSeek Harness (DSH), linking canonical GitHub repositories, star counts, and reference pages.

Developer Toolsdsh-plugin
29838Aug 25, 2026
dsh-undo-savepoint

dsh-undo-savepoint is a DeepSeek Harness plugin for snapshotting DSH configuration and plugin-code changes, with undo/redo/restore, message-level rollback, SAFE MODE, crash attribution, and diagnostics. It also provides offline WebUI, GUI, and CLI tools that run even when DSH will not boot.

Developer Toolsdsh-plugin
1607JavaScriptSep 20, 2026
cordis-rs

Cordis is a typed runtime for long-lived, plugin-oriented Rust applications, providing one model for lifecycle, exact service placement, typed events, deterministic cleanup, scopes, and isolation. The project provides a cordis-rs application facade, cordis-core runtime, and optional cordis-timer and cordis-loader crates.

Developer Toolsdsh-plugin
6512RustOct 28, 2026
dsh-remote-ssh

DSH web plugin that provides VSCode Remote-SSH-like remote development over SSH, letting users connect to remote servers or supercomputers from within DSH. It adds SSH connection profiles (key or password, ProxyJump, ~/.ssh/config import), remote workspaces, a built-in Files tab for reading and writing remote files without syncing, a built-in Terminal tab that opens an interactive SSH session in the workspace's remote directory, and 13 remote_ssh_* model tools.

Developer Toolsdsh-plugin
574JavaScriptNov 6, 2026