Xyanxhu/kilo-zen2dsh2

kilo-zen2dsh

通过原生 dsh-llm 适配器为 DeepSeek Harness 提供免费的 Kilo 网关和 OpenCode Zen 模型

AI 分析

核心用途是免 API Key 直接接入 Kilo 和 Zen 供应的模型。适合希望在 DSH 中免费体验这些特定模型渠道的用户。必要条件是需要 Node.js 20 或更高版本。

套件
kilo-zen2dsh
授權
MIT
最近更新
2026年9月1日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Xyanxhu/kilo-zen2dsh

Configuration

The defaults are keyless and point at the public Kilo gateway:

- id: kilo2dsh
  name: '@huanx/dsh-plugin'
  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.

OptionDefaultDescription
modeadapterNative adapter. sidecar is an optional legacy Go bridge.
providerIdkilo2dshDSH route name.
gatewayBaseUrlhttps://api.kilo.ai/api/gatewayKilo-compatible gateway base URL.
refreshSeconds300Model catalog refresh interval.
requireToolstrueHide free models that do not advertise tools.
upstreamApiKeyEnvemptyEnvironment variable to opt into an explicit token.
anonymousKeyemptyOptional token for a private compatible gateway; empty means no auth header.
zenEnabledtrueRegister the independent OpenCode Zen adapter in adapter mode.
zenProviderIdopencode2dshDSH route name for Zen.
zenBaseUrlhttps://opencode.ai/zenOpenCode Zen root URL.
zenUserAgentemptyOptional compatibility User-Agent; empty derives the OpenCode format.
zenApiKeyEnvemptyOptional Zen account-token environment variable.
zenAnonymousKeypublicZen 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.