vercel-labs avatar

Ai Gateway

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.

skills.sh installs
260
GitHub stars
183
last updated
Jun 3, 2026

Install

$ npx -y skills add vercel-labs/vercel-plugin --skill ai-gateway --agent claude-code

Installs 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:

  1. Inspect the project's language, package manager, installed AI SDK version, and existing provider integration.

  2. Read the relevant Vercel page under https://vercel.com/docs/ai-gateway. Use the page's .md form when a tool needs Markdown.

  3. Fetch the complete live model list. Do not construct model variants by analogy:

    curl -fsSL https://ai-gateway.vercel.sh/v1/models
    
  4. 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.

  5. Run vercel ai-gateway <command> --help before documenting or scripting CLI flags.

Sponsors

Details

Repository
github.com/vercel-labs/vercel-plugin
Categories
Backend & APIs, AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel-labs/vercel-plugin

All 32
1ceedaragents avatarcyrus-setup-claude-authceedaragents/cyruscyrus setup claude auth250skills.sh installs
2vercel-labs avatarauthvercel-labs/vercel-pluginauth232skills.sh installs
3pluginagentmarketplace avatarjwt-authenticationpluginagentmarketplace/custom-plugin-nodejsImplement secure JWT (JSON Web Token) authentication in Node.js applications with access/refresh tokens and role-based access control226skills.sh installs
4davila7 avataropentargets-databasedavila7/claude-code-templatesQuery Open Targets Platform for target-disease associations, drug target discovery, tractability/safety data, genetics/omics evidence, known drugs, for therapeu219skills.sh installs
5intellectronica avatarmonologue-notes-apiintellectronica/agent-skills>217skills.sh installs
6aradotso avatarfreellmapi-proxyaradotso/trending-skillsfreellmapi proxy212skills.sh installs