OpenCode 在 OpenClaw 中提供两个托管目录:Documentation Index
Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
| Catalog | Prefix | Runtime provider |
|---|---|---|
| Zen | opencode/... | opencode |
| Go | opencode-go/... | opencode-go |
开始使用
配置示例
内置目录
Zen
| Property | Value |
|---|---|
| Runtime provider | opencode |
| Example models | opencode/claude-opus-4-6, opencode/gpt-5.5, opencode/gemini-3-pro |
Go
| Property | Value |
|---|---|
| Runtime provider | opencode-go |
| Example models | opencode-go/kimi-k2.6, opencode-go/glm-5, opencode-go/minimax-m2.5 |
高级配置
API key 别名
API key 别名
OPENCODE_ZEN_API_KEY 也支持作为 OPENCODE_API_KEY 的别名。共享凭据
共享凭据
在设置过程中输入一个 OpenCode key 会为两个运行时提供方都存储凭据。你不需要分别为每个目录进行入门配置。
计费与控制台
计费与控制台
你登录 OpenCode,添加计费信息,并复制你的 API key。计费和目录可用性由 OpenCode 控制台管理。
Gemini 回放行为
Gemini 回放行为
由 Gemini 支持的 OpenCode 引用会保持在代理-Gemini 路径上,因此 OpenClaw 会在该路径上保留 Gemini 思维签名清理,而不会启用原生 Gemini 回放验证或引导重写。
非 Gemini 回放行为
非 Gemini 回放行为
非 Gemini 的 OpenCode 引用会保留最小化的 OpenAI 兼容回放策略。
相关内容
模型选择
选择提供方、模型引用和故障转移行为。
配置参考
agents、models 和 providers 的完整配置参考。