kilo-zen2dsh
接入Kilo网关和OpenCode Zen模型的适配器 适合需要在DSH中免密钥或通过Token使用Kilo及Zen模型的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Xyanxhu/kilo-zen2dsh說明文件
閱讀完整 README ↗Configuration
The defaults are keyless and point at the public Kilo gateway:
- id: kilo2dsh
name: '@huanx/kilo-zen2dsh'
config:
mode: adapter
providerId: kilo2dsh
gatewayBaseUrl: https://api.kilo.ai/api/gateway
refreshSeconds: 300
requireTools: true
zenEnabled: true
To use an authenticated gateway token, set upstreamApiKeyEnv explicitly.
Leaving it empty is intentional; the plugin will not pick up
KILO_API_KEY (or another ambient secret) by accident.
| Option | Default | Description |
|---|---|---|
mode | adapter | Native adapter. sidecar is an optional legacy Go bridge. |
providerId | kilo2dsh | DSH route name. |
gatewayBaseUrl | https://api.kilo.ai/api/gateway | Kilo-compatible gateway base URL. |
refreshSeconds | 300 | Model catalog refresh interval. |
requireTools | true | Hide free models that do not advertise tools. |
maxOutputTokens | 524288 | Kilo gateway compatibility output ceiling; null disables it. Per-model budgets are derived from the context window and need no configuration. |
upstreamApiKeyEnv | empty | Environment variable to opt into an explicit token. |
anonymousKey | empty | Optional token for a private compatible gateway; empty means no auth header. |
zenEnabled | true | Register the independent OpenCode Zen adapter in adapter mode. |
zenProviderId | opencode2dsh | DSH route name for Zen. |
zenBaseUrl | https://opencode.ai/zen | OpenCode Zen root URL. |
zenUserAgent | empty | Optional compatibility User-Agent; empty derives the OpenCode format. |
zenApiKeyEnv | empty | Optional Zen account-token environment variable. |
zenAnonymousKey | public | Zen anonymous placeholder; set empty for a header-less private deployment. |
Set zenEnabled: false when you only want Kilo, or when the Zen gateway is
returning an anonymous-lane 429. sidecar mode is the legacy Go bridge and
currently exposes Kilo only; the two-provider setup is implemented in native
adapter mode.