mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Complete rename of all OpenClaw/OPENCLAW/openclaw references to Hanzo Bot/BOT/bot naming convention: - Env vars: OPENCLAW_* → BOT_* (18 patterns) - Config: ~/.openclaw/ → ~/.bot/, openclaw.json → bot.json - Packages: @openclaw/* → @hanzo/bot-* - Domains: openclaw.ai → hanzo.bot - Mobile: OpenClawKit → BotKit, bundle IDs ai.openclaw → ai.hanzo.bot - mDNS: _openclaw-gw._tcp → _bot-gw._tcp - Docker: CMD hanzo-bot.mjs, BOT_PREFER_PNPM, BOT_DOCKER_APT_PACKAGES - CI: docker-release.yml adds :latest tag on main branch
1.1 KiB
1.1 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
在 Hanzo Bot 中使用 OpenCode Zen(精选模型) | OpenCode Zen |
|
OpenCode Zen
OpenCode Zen 是由 OpenCode 团队推荐的一组精选模型列表,适用于编程智能体。它是一个可选的托管模型访问路径,使用 API 密钥和 opencode 提供商。Zen 目前处于测试阶段。
CLI 设置
hanzo-bot onboard --auth-choice opencode-zen
# 或非交互式
hanzo-bot onboard --opencode-zen-api-key "$OPENCODE_API_KEY"
配置片段
{
env: { OPENCODE_API_KEY: "sk-..." },
agents: { defaults: { model: { primary: "opencode/claude-opus-4-5" } } },
}
注意事项
- 也支持
OPENCODE_ZEN_API_KEY。 - 你需要登录 Zen,添加账单信息,然后复制你的 API 密钥。
- OpenCode Zen 按请求计费;详情请查看 OpenCode 控制台。