rumilhz/dsh-pylon-opencode-free ↗★ 0

dsh-pylon-opencode-free

Keeps the OpenCode Go free-tier provider in sync with the gateway: reads the free model list over /v1/models and writes it into the llm-pi-ai profile, adding new models and removing delisted ones. DSH has no runtime model fetch for a provider that is not in its built-in catalog, so this list can only live in configuration. 适合使用OpenCode Go免费额度、需要自动更新可用模型列表的DSH用户。

Package
dsh-pylon-opencode-free
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Oct 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:rumilhz/dsh-pylon-opencode-free

配置

- id: dsh-pylon-opencode-free
  name: 'dsh-pylon-opencode-free'
  config:
    enabled: true
    providerId: opencode-go-free
    siblingId: opencode-go
    api: openai-completions
    baseURL: https://opencode.ai/zen/go/v1
    sessionHeaderName: x-opencode-session
    sessionHeaderValue: dsh-in-process-subagent
    syncOnStart: true
    # 每次同步去官方文档现场取免费名单(推荐开)。取不到自动退回下面的白名单。
    freeListFromDocs: true
    docsUrl: https://opencode.ai/v2/docs/console/go
    # 兜底白名单。只在 freeListFromDocs 关掉、或文档取不到时生效。
    freeAllowlist:
      - longcat-2.5-preview-free
      - beam-free

apiKeyEnv 与缩进从 siblingId 指的兄弟 provider 抄,不写死 —— 写死缩进是这类生成器最典型的退化方式(手下一次调整文件结构就会拼错位置, 而且 YAML 照样能解析,没人会发现)。