mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 18:02:28 +00:00
- Rename lobster extension → flow (dir, types, env vars, docs) - LOBSTER_* env vars → BOT_FLOW_* / BOT_* - 🦞 → 🤖 everywhere (src, docs, skills, zh-CN) - docs.bot.ai → docs.hanzo.bot - github.com/bot/bot → github.com/hanzoai/bot - @bot/* → @hanzo/bot-* (npm scope) - ~/.bot/ → ~/.hanzo/bot/ (config paths) - discord.gg/hanzo → discord.gg/XthHQQj (real Hanzo Discord) - clawhub.com → skills.hanzo.bot - ClawDock → BotDock in shell helpers - EXFOLIATE lore → Hanzo Bot branding in all locales - LOBSTER_PALETTE → BOT_PALETTE, LOBSTER_ASCII → BOT_ASCII
1.4 KiB
1.4 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Vercel AI Gateway 设置(认证 + 模型选择) | Vercel AI Gateway |
|
Vercel AI Gateway
Vercel AI Gateway 提供了一个统一的 API,通过单一端点访问数百个模型。
- 提供商:
vercel-ai-gateway - 认证:
AI_GATEWAY_API_KEY - API:兼容 Anthropic Messages
快速开始
- 设置 API 密钥(推荐:为 Gateway 网关存储它):
hanzo-bot onboard --auth-choice ai-gateway-api-key
- 设置默认模型:
{
agents: {
defaults: {
model: { primary: "vercel-ai-gateway/anthropic/claude-opus-4.5" },
},
},
}
非交互式示例
hanzo-bot onboard --non-interactive \
--mode local \
--auth-choice ai-gateway-api-key \
--ai-gateway-api-key "$AI_GATEWAY_API_KEY"
环境变量说明
如果 Gateway 网关作为守护进程运行(launchd/systemd),请确保 AI_GATEWAY_API_KEY
对该进程可用(例如,在 ~/.hanzo/bot/.env 中或通过
env.shellEnv)。