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

Payel-git-ol★ 1JavaScript最后同步: 2026-08-19

在 GitHub 打开

dsh plugin: use the opencode local server (OpenCode Zen client channel) as an OpenAI-compatible provider

README 摘要

use-opencode-local-provider A dsh plugin that makes OpenCode Zen available as a local provider in dsh. How it works - On load, the plugin ensures an opencode serve instance is running (starts it if needed). - It starts a small OpenAI-compatible bridge ( /v1/chat/completions , /v1/models ) that translates each request into an opencode serve session via its local HTTP API. - It registers the provider route opencode-local under the llm-pi-ai settings section, so it appears in the dsh UI automatically. The request flow uses the opencode client channel ( opencode.ai/zen/go/v1 ) and does not need an OpenCode API key, nor does it consume the public /zen/v1 quota. Installation In the profile directory ( /.dsh/profiles/ ): Then add the plugin to cordis.patch.yml : Restart the dsh process. The opencode-local provider appears in the chat UI. 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 …

在 GitHub 查看完整 README →
终端/TUIdsh-plugin

分类