Overview
dsh-plugin-zen-useragent
让 provider 配置的 headers(如 User-Agent)真正到达 pi-ai 的 API 请求,自动补全 opencode 身份头(ses_/msg_ 会话与请求 ID 格式),并在向 OpenCode Zen 网关发送的请求 body.tools 里补上网关必需的 bash 工具 —— 把请求识别为 opencode 客户端而不是 deepseek-harness,修复 OpenCode ZEN 免费模型 429(FreeUsageLimitError)、400(MissingSessionID/MissingHeader)、403(Generation.FreeTierError)
README / EN
Package documentation
Registry summary
让 provider 配置的 headers(如 User-Agent)真正到达 pi-ai 的 API 请求,自动补全 opencode 身份头(ses_/msg_ 会话与请求 ID 格式),并在向 OpenCode Zen 网关发送的请求 body.tools 里补上网关必需的 bash 工具 —— 把请求识别为 opencode 客户端而不是 deepseek-harness,修复 OpenCode ZEN 免费模型 429(FreeUsageLimitError)、400(MissingSessionID/MissingHeader)、403(Generation.FreeTierError)
dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.
Read the full README on GitHub