docs/providers/vercel-ai-gateway.md
The Vercel AI Gateway provides a unified API to access hundreds of models through a single endpoint.
| Property | Value |
|---|---|
| Provider | vercel-ai-gateway |
| Auth | AI_GATEWAY_API_KEY |
| API | Anthropic Messages compatible |
| Model catalog | Auto-discovered via /v1/models |
```bash
openclaw onboard --auth-choice ai-gateway-api-key
```
```json5
{
agents: {
defaults: {
model: { primary: "vercel-ai-gateway/anthropic/claude-opus-4.6" },
},
},
}
```
For scripted or CI setups, pass all values on the command line:
openclaw onboard --non-interactive \
--mode local \
--auth-choice ai-gateway-api-key \
--ai-gateway-api-key "$AI_GATEWAY_API_KEY"
OpenClaw accepts Vercel Claude shorthand model refs and normalizes them at runtime:
| Shorthand input | Normalized model ref |
|---|---|
vercel-ai-gateway/claude-opus-4.6 | vercel-ai-gateway/anthropic/claude-opus-4.6 |
vercel-ai-gateway/opus-4.6 | vercel-ai-gateway/anthropic/claude-opus-4-6 |
<Warning>
A key set only in `~/.profile` will not be visible to a launchd/systemd
daemon unless that environment is explicitly imported. Set the key in
`~/.openclaw/.env` or via `env.shellEnv` to ensure the gateway process can
read it.
</Warning>