| Property | Value |
|---|---|
| Provider | vercel-ai-gateway |
| Package | @openclaw/vercel-ai-gateway-provider |
| Auth | AI_GATEWAY_API_KEY |
| API | Anthropic Messages compatible |
| Base URL | https://ai-gateway.vercel.sh |
| Model catalog | Auto-discovered via /v1/models |
Getting started
Non-interactive example
Model ID shorthand
OpenClaw normalizes Claude shorthand model refs 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 |
Advanced configuration
Environment variable for daemon processes
Environment variable for daemon processes
If the OpenClaw Gateway runs as a daemon (launchd/systemd), make sure
AI_GATEWAY_API_KEY is available to that process.Provider routing
Provider routing
Vercel AI Gateway routes each request to the upstream provider named in the
model ref prefix. For example,
vercel-ai-gateway/anthropic/claude-opus-4.6
routes through Anthropic, vercel-ai-gateway/openai/gpt-5.5 routes through
OpenAI, and vercel-ai-gateway/moonshotai/kimi-k2.6 routes through
MoonshotAI. One AI_GATEWAY_API_KEY authenticates all upstream providers.Thinking levels
Thinking levels
/think options follow the upstream model prefix when OpenClaw recognizes
it. vercel-ai-gateway/anthropic/... uses the Claude thinking profile,
including the adaptive default for Claude 4.6 models. Trusted
vercel-ai-gateway/openai/... refs (gpt-5.2 and newer, plus Codex
variants down to gpt-5.1-codex) expose /think xhigh. Other namespaced
refs keep the standard reasoning levels unless their catalog metadata
declares more.Related
Model selection
Choosing providers, model refs, and failover behavior.
Troubleshooting
General troubleshooting and FAQ.