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

use-opencode-local-provider

Use the opencode local server (OpenCode Zen client channel) as a provider in 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