Payel-git-ol/use-opencode-local-provider0

use-opencode-local-provider

将 opencode 本地服务器(OpenCode Zen 客户端通道)作为 DSH 的模型服务商接入。

AI 分析

将本地运行的 OpenCode 服务接入 DSH。适合希望在 DSH 界面中使用本地部署的免 API 密钥模型(如 deepseek-v4-flash-free)的用户。

包名
use-opencode-local-provider
版本
0.1.0
许可证
MIT
最近更新
2026年8月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Payel-git-ol/use-opencode-local-provider

Configuration

keydefaultdescription
opencodeBinopencodepath to the opencode binary
serverHost127.0.0.1host of the opencode serve instance
serverPort17655port of the opencode serve instance
bridgeHost127.0.0.1bind host of the local OpenAI-compatible API
bridgePort17656port of the local OpenAI-compatible API
providerIdopencode-localroute name in the llm-pi-ai settings
providerNameOpenCode Localdisplay name in the dsh UI
apiKeyEnvOPENCODE_API_KEYenv var name dsh uses as the provider's key (the bridge ignores it; pi-ai still requires a credential)
modelsfull OpenCode Zen catalogmodel ids exposed to dsh
directoryprocess.cwd()working directory of opencode sessions
streamTimeoutMs180000max wait for a model response