vercel avatar

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-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/vercel-plugin
Categories
Backend & APIs, AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel/vercel-plugin

All 25
1sickn33 avatarcc-skill-backend-patternssickn33/antigravity-awesome-skillscc skill backend patterns421skills.sh installs
2sickn33 avatardatabase-migrations-sql-migrationssickn33/antigravity-awesome-skillsdatabase migrations sql migrations408skills.sh installs
3insforge avatarinsforge-backend-advisorinsforge/agent-skillsinsforge backend advisor400skills.sh installs
4sickn33 avatarnodejs-backend-patternssickn33/antigravity-awesome-skillsnodejs backend patterns396skills.sh installs
5skillcreatorai avatardatabase-designskillcreatorai/ai-agent-skillsdatabase design394skills.sh installs
6secondsky avatarcloudflare-mcp-serversecondsky/claude-skillsBuild MCP (Model Context Protocol) servers on Cloudflare Workers with tools, resources, and prompts.388skills.sh installs