Appearance
OpenCode Go
OpenCode Go 是 OpenCode 内的 Go 目录。它与 Zen 目录使用相同的 OPENCODE_API_KEY,但运行时保留独立的 provider ID opencode-go,以确保上游按模型路由正确。
支持的模型
opencode-go/kimi-k2.5opencode-go/glm-5opencode-go/minimax-m2.5
CLI 配置
bash
openclaw onboard --auth-choice opencode-go
# 或非交互模式
openclaw onboard --opencode-go-api-key "$OPENCODE_API_KEY"配置片段
json5
{
env: { OPENCODE_API_KEY: "YOUR_API_KEY_HERE" }, // pragma: allowlist secret
agents: { defaults: { model: { primary: "opencode-go/kimi-k2.5" } } },
}路由行为
当模型引用使用 opencode-go/... 时,OpenClaw 会自动处理按模型路由,无需额外配置。
注意事项
- 完整的 onboard 流程和目录概览,请参阅 OpenCode。
- 运行时引用保持明确:Zen 目录使用
opencode/...,Go 目录使用opencode-go/...。