Skip to content
netlify avatar

Netlify Ai Gateway

Reference for calling OpenAI, Anthropic, Gemini, TypeSafe, and OpenRouter models from Netlify compute without provider keys.

CCM score
67 of 100
skills.sh installs
3.5K
GitHub stars
57
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the managed gateway for chat, completion, reasoning, and image generation on Netlify Functions and Edge Functions
  • Includes provider SDK examples (OpenAI, Anthropic, Gemini, TypeSafe, OpenRouter) with the env vars each one reads automatically
  • Enforces runtime-only calls: builds, prerendering, and client-side code get no credentials, and sync calls hit a 60-second timeout
  • Designed for developers adding AI features to a Netlify site who need streaming, model selection, or "model not found" debugging

Install

$ npx -y skills add netlify/context-and-tools --skill netlify-ai-gateway -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Netlify AI Gateway

Call AI models from Netlify compute using the provider's official SDK. The gateway injects provider credentials automatically — instantiate the SDK with no args and it works.

Use the provider SDK with injected env credentials. Do not hand-roll a raw fetch() against the gateway URL, and do not wire calls to NETLIFY_AI_GATEWAY_KEY / NETLIFY_AI_GATEWAY_URL as your default path — those are for third-party/unsupported libraries only (see below).

Footguns (read first)

Details

Repository
github.com/netlify/context-and-tools
Categories
AI Agents & LLM Apps, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the netlify-ai-gateway skill do?

The netlify-ai-gateway skill lets an agent add AI features such as chat, completion, reasoning and image generation to a Netlify site. It routes calls through the Netlify AI Gateway to OpenAI, Anthropic, Google Gemini, TypeSafe and OpenRouter-hosted models without managing provider API keys.

How do I install the netlify-ai-gateway skill?

Run npx -y skills add netlify/context-and-tools --skill netlify-ai-gateway -y in a project to install it. Once installed, the agent can write Netlify Functions that call the provider SDKs with no arguments, so the gateway injects the credentials.

Do I need provider API keys to use netlify-ai-gateway?

No, netlify-ai-gateway is built to avoid provider API keys, since the gateway injects each provider's environment variables. Gateway calls must run in Functions or Edge Functions at request time, and the project needs at least one production deploy before the gateway activates.

Which category does netlify-ai-gateway belong to on Claude Marketplaces?

netlify-ai-gateway is in the AI Agents & LLM Apps category on Claude Marketplaces. It covers calling AI models from Netlify compute, which is the focus of that category.

More from netlify/context-and-tools

All 12

Similar to Netlify Ai Gateway

More AI Agents & LLM Apps