
Routes AI requests through Vercel's unified gateway so you can switch between 100+ models from different providers without changing code. The skill enforces current model naming (dots in versions, not hyphens) and pushes you toward OIDC auth instead of manual API keys. It's opinionated about outdated models, flagging gpt-4o and older Gemini versions with migration suggestions. Use this when you want provider failover, cost tracking, or the flexibility to swap OpenAI for Anthropic without rewriting integration code. The validation rules are aggressive but save you from deployment surprises with malformed model slugs.
$ npx -y skills add vercel-labs/vercel-plugin --skill ai-gateway --agent claude-codeInstalls into .claude/skills of the current project.
AI Gateway exposes models from multiple providers through shared authentication, model IDs, routing, billing, and observability. Model availability, SDK APIs, CLI commands, prices, and product capabilities change frequently. Verify them from current sources before changing code.
Before implementing:
Inspect the project's language, package manager, installed AI SDK version, and existing provider integration.
Read the relevant Vercel page under https://vercel.com/docs/ai-gateway. Use the page's .md form when a tool needs Markdown.
Fetch the complete live model list. Do not construct model variants by analogy:
curl -fsSL https://ai-gateway.vercel.sh/v1/models
If the code uses the ai package, load the ai-sdk skill when available. Read version-matched docs under node_modules/ai/docs/ and source under node_modules/ai/src/. If the skill is not installed, use those bundled files directly.
Run vercel ai-gateway <command> --help before documenting or scripting CLI flags.
Sponsors