Files
openclaw/docs/zh-CN/providers/opencode-go.md
2026-03-16 07:03:19 +00:00

1.3 KiB
Raw Blame History

read_when, summary, title, x-i18n
read_when summary title x-i18n
你想使用 OpenCode Go 目录
你需要了解 Go 托管模型的运行时模型引用
使用共享的 OpenCode 设置来使用 OpenCode Go 目录 OpenCode Go
generated_at model provider source_hash source_path workflow
2026-03-16T06:26:48Z gpt-5.4 openai 8650af7c64220c14bab8c22472fff8bebd7abde253e972b6a11784ad833d321c providers/opencode-go.md 15

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/...