思渡AI Logo

OpenCode Go

OpenCode Go

OpenCode Go 是 OpenCode 中的 Go 目录。 它使用与 Zen 目录相同的 OPENCODE_API_KEY,但保留运行时 提供商 id opencode-go,以便上游按模型路由保持正确。

支持的模型

  • opencode-go/kimi-k2.5
  • opencode-go/glm-5
  • opencode-go/minimax-m2.5

CLI 设置

openclaw onboard --auth-choice opencode-go
# 或非交互式
openclaw onboard --opencode-go-api-key "$OPENCODE_API_KEY"

配置片段

{
  env: { OPENCODE_API_KEY: "YOUR_API_KEY_HERE" }, // pragma: allowlist secret
  agents: { defaults: { model: { primary: "opencode-go/kimi-k2.5" } } },
}

路由行为

当模型引用使用 opencode-go/... 时,OpenClaw 会自动处理按模型路由。

说明

  • 共享的新手引导和目录概览请使用 OpenCode
  • 运行时引用保持显式:Zen 使用 opencode/...,Go 使用 opencode-go/...