Vercel AI Gateway
Vercel AI Gateway
Section titled “Vercel AI Gateway”Vercel AI Gateway 提供統一的 API,可透過單一端點存取數百種模型。
- 提供者:
vercel-ai-gateway - 驗證:
AI_GATEWAY_API_KEY - API:相容 Anthropic Messages
- OpenClaw 會自動探索 Gateway 的
/v1/models目錄,因此/models vercel-ai-gateway包含目前的模型參考,例如vercel-ai-gateway/openai/gpt-5.4。
- 設定 API 金鑰(建議:為 Gateway 儲存金鑰):
openclaw onboard --auth-choice ai-gateway-api-key- 設定預設模型:
{ agents: { defaults: { model: { primary: "vercel-ai-gateway/anthropic/claude-opus-4.6" }, }, },}openclaw onboard --non-interactive \ --mode local \ --auth-choice ai-gateway-api-key \ --ai-gateway-api-key "$AI_GATEWAY_API_KEY"環境注意事項
Section titled “環境注意事項”如果 Gateway 以 daemon (launchd/systemd) 執行,請確認 AI_GATEWAY_API_KEY
對該程序可用(例如在 ~/.openclaw/.env 中或透過
env.shellEnv)。
模型 ID 簡寫
Section titled “模型 ID 簡寫”OpenClaw 接受 Vercel Claude 簡寫模型參考,並在執行時將其標準化:
vercel-ai-gateway/claude-opus-4.6->vercel-ai-gateway/anthropic/claude-opus-4.6vercel-ai-gateway/opus-4.6->vercel-ai-gateway/anthropic/claude-opus-4-6