
Netlify Ai Gateway
Routes OpenAI, Anthropic, and Gemini SDK calls through Netlify's managed proxy so you don't juggle provider API keys. You wire up the standard SDKs (openai, @anthropic-ai/sdk, @google/genai) but point them at gateway URLs that Netlify auto-injects. Works for chat, completion, reasoning, and image generation, though image gen is Gemini-only on the gateway. The catch: it only exposes a curated model subset, not every model the providers offer, and you need at least one production deploy before the gateway activates. Pin this when you're building AI features on Netlify and want to skip the key management overhead, but check the available models list before you commit to a specific model.
- skills.sh installs
- 3.3K
- GitHub stars
- 51
- last updated
- Aug 21, 2026
Install
$ npx -y skills add netlify/context-and-tools --skill netlify-ai-gateway --agent claude-codeInstalls into .claude/skills of the current project.
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)
Sponsors
Details
- Repository
- github.com/netlify/context-and-tools
- Categories
- Backend & APIs, AI & Agent Building, Debugging, Cloud & Infrastructure, Generative Media
- First seen
- Jun 3, 2026