
Ai Gateway
Routes AI requests through Vercel's unified gateway so you can switch between 100+ models from OpenAI, Anthropic, Google, and others without juggling provider SDKs. Uses simple "provider/model" strings like "openai/gpt-5.4" or "anthropic/claude-sonnet-4.6" and handles failover, cost tracking, and load balancing with under 20ms overhead. The skill catches outdated model names (it'll nudge you from gpt-4o to gpt-5.4) and enforces proper slug formatting with dots for versions, not hyphens. Authentication defaults to OIDC via vercel env pull, which auto-rotates tokens so you're not managing API keys manually. Worth using if you're already on Vercel or want provider flexibility without rewriting integration code.
- skills.sh installs
- 423
- GitHub stars
- 183
- last updated
- Jun 3, 2026
Install
$ npx -y skills add vercel/vercel-plugin --skill ai-gateway --agent claude-codeInstalls into .claude/skills of the current project.
Files
Vercel AI Gateway
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.
Start with current sources
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
.mdform 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
aipackage, load theai-sdkskill when available. Read version-matched docs undernode_modules/ai/docs/and source undernode_modules/ai/src/. If the skill is not installed, use those bundled files directly. -
Run
vercel ai-gateway <command> --helpbefore documenting or scripting CLI flags.
Sponsors
Details
- Repository
- github.com/vercel/vercel-plugin
- Categories
- Backend & APIs, AI & Agent Building, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from vercel/vercel-plugin
All 25- Env Vars422
- Vercel Functions410
- Next Cache Components385
- Next Upgrade368
- Routing Middleware338
- Auth326
- Vercel Storage326
- Vercel Agent317
- Bootstrap315
- Chat Sdk315
- Verification315
- Workflow313
- Runtime Cache312
- Vercel Sandbox308
- Knowledge Update301
- Marketplace300
- Next Forge191
- Nextjs629
- Ai Sdk544
- React Best Practices491
- Deployments Cicd484
- Shadcn458
- Vercel Cli432
- Turbopack429