netlify avatar

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-code

Installs 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

More from netlify/context-and-tools

All 14
1netlify avatarnetlify-databasenetlify/context-and-toolsGuide for using Netlify Database — the GA managed Postgres product built into Netlify. Use when a project needs any kind of dynamic, structured, or relational d3.1Kskills.sh installs
2apollographql avatarapollo-serverapollographql/skillsGuide for building GraphQL servers with Apollo Server 5.x. Use this skill when: (1) setting up a new Apollo Server project, (2) writing resolvers or defining Gr3.1Kskills.sh installs
3davila7 avatarsenior-backenddavila7/claude-code-templatesComprehensive backend development skill for building scalable backend systems using NodeJS, Express, Go, Python, Postgres, GraphQL, REST APIs. Includes API scaf2.7Kskills.sh installs
4mrgoonie avatarbackend-developmentmrgoonie/claudekit-skillsBuild robust backend systems with modern technologies (Node.js, Python, Go, Rust), frameworks (NestJS, FastAPI, Django), databases (PostgreSQL, MongoDB, Redis),2.3Kskills.sh installs
5google-deepmind avatarquickgo-databasegoogle-deepmind/science-skillsQuery the QuickGO and Evidence & Conclusion Ontology (ECO) REST API. Use this when you need to map genes to biological processes, molecular functions, or cellul2.2Kskills.sh installs
6google-deepmind avatarencode-ccres-databasegoogle-deepmind/science-skillsQuery the ENCODE Registry of cis-Regulatory Elements (cCREs) via the SCREEN GraphQL API, or make custom queries to the ENCODE Portal REST API for experiments an2.2Kskills.sh installs