Spaces:
Paused
Paused
metadata
title: Vercel AI Gateway
summary: Vercel AI Gateway setup (auth + model selection)
read_when:
- You want to use Vercel AI Gateway with OpenClaw
- You need the API key env var or CLI auth choice
Vercel AI Gateway
The Vercel AI Gateway provides a unified API to access hundreds of models through a single endpoint.
- Provider:
vercel-ai-gateway - Auth:
AI_GATEWAY_API_KEY - API: Anthropic Messages compatible
Quick start
- Set the API key (recommended: store it for the Gateway):
openclaw onboard --auth-choice ai-gateway-api-key
- Set a default model:
{
agents: {
defaults: {
model: { primary: "vercel-ai-gateway/anthropic/claude-opus-4.5" },
},
},
}
Non-interactive example
openclaw onboard --non-interactive \
--mode local \
--auth-choice ai-gateway-api-key \
--ai-gateway-api-key "$AI_GATEWAY_API_KEY"
Environment note
If the Gateway runs as a daemon (launchd/systemd), make sure AI_GATEWAY_API_KEY
is available to that process (for example, in ~/.openclaw/.env or via
env.shellEnv).