Payel-git-ol/use-opencode-local-provider ↗★ 0
use-opencode-local-provider
将 opencode 本地服务器(OpenCode Zen 客户端通道)作为 DSH 的模型服务商接入。
AI 分析
将本地运行的 OpenCode 服务接入 DSH。适合希望在 DSH 界面中使用本地部署的免 API 密钥模型(如 deepseek-v4-flash-free)的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Payel-git-ol/use-opencode-local-provider說明文件
閱讀完整 README ↗Configuration
| key | default | description |
|---|---|---|
opencodeBin | opencode | path to the opencode binary |
serverHost | 127.0.0.1 | host of the opencode serve instance |
serverPort | 17655 | port of the opencode serve instance |
bridgeHost | 127.0.0.1 | bind host of the local OpenAI-compatible API |
bridgePort | 17656 | port of the local OpenAI-compatible API |
providerId | opencode-local | route name in the llm-pi-ai settings |
providerName | OpenCode Local | display name in the dsh UI |
apiKeyEnv | OPENCODE_API_KEY | env var name dsh uses as the provider's key (the bridge ignores it; pi-ai still requires a credential) |
models | full OpenCode Zen catalog | model ids exposed to dsh |
directory | process.cwd() | working directory of opencode sessions |
streamTimeoutMs | 180000 | max wait for a model response |