ai-gateway

ai-gateway is a skill for Claude Code, Codex from vercel/vercel-plugin. It costs 0 tokens per session (3,403 once invoked), scanned A, original, no licence file.

Guidance for using Vercel AI Gateway, a single API for working with multiple AI model providers. It covers choosing models, switching providers when one fails, and tracking costs.

In plain words
What is it for?
Use it to configure model routing, provider failover, cost tracking, and access to several AI providers through one interface.
Why use it?
It helps manage model-provider changes and failures without separate application integrations for every provider.

Skill for Claude CodeCodex

Part of the vercel plugin — 43 skills, 5 commands, 3 agents, 2 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vercel/vercel-plugin/ai-gateway
Any agent
npx skills add vercel/vercel-plugin --skill ai-gateway
Clone the repo
git clone --depth 1 https://github.com/vercel/vercel-plugin

Made for: Claude Code, Codex.

Or install vercel, the plugin that ships this one along with the rest of its 43 skills, 5 commands, 3 agents, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/vercel-plugin/ai-gateway.svg)](https://agentmods.dev/skills/vercel/vercel-plugin/ai-gateway)
Your own site
<a href="https://agentmods.dev/skills/vercel/vercel-plugin/ai-gateway"><img src="https://agentmods.dev/badge/skills/vercel/vercel-plugin/ai-gateway.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,403 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03403
Opus 5 $0.00000 $0.01702
Sonnet 5 $0.00000 $0.00681
Haiku 4.5 $0.00000 $0.00340

Measured today against content hash e12a5e763bca, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ai-gateway scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://ai-gateway.vercel.sh/v1/models
skills/ai-gateway/SKILL.md · 255 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -411 lines · -35 tokens per session e12a5e763bca
  2. 4d ago First seen · 666 lines · 35 tokens per session scan A 3ddf08889a7b

Subscribe to this mod's changes

ai-gateway is a skill published in the GitHub repository vercel/vercel-plugin (275 stars, last pushed 2d ago), with no licence file. It costs nothing until one of its globs matches a file; then it loads 3,403 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

convex-add

Add a capability to the CURRENT Convex app — consults the served Convex capability catalog for always-current procedures (billing, crons, auth, agent, search, …); falls back to built-in hosting or @convex-dev component search. TRIGGER when the user runs /add, or asks to add hosting/publishing or any backend capability…

openclaw/clawhub · 81 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

Use when evaluating A-share limit-up (涨停板) setups through Chen Hao's sentiment and momentum lens: market emotion cycles, board strength, follow-through, and short-term aggressive momentum trading.

questflowai/investorskills · 44 tokens

southwest

Search Southwest Airlines fares and points pricing via Patchright browser automation. SW is not in any GDS or API. Covers all fare classes, Companion Pass value, and fare drop monitoring.

borski/travel-hacking-toolkit · 40 tokens

trading-risk-gate

Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.

winstonkoh87/Athena-Public · 53 tokens

cwv-optimizer

Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…

adobe/skills · 112 tokens