Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

neon-ai-gateway

Skill by sickn33

Shows how to send LLM calls through the Neon AI Gateway, using one Neon credential for models from several providers. Written for developers building apps or agents on Neon who want branch-scoped AI requests.

  • Score 89
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install neon-ai-gateway

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/neon-ai-gateway ~/.claude/skills/neon-ai-gateway

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install neon-ai-gateway in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The Neon AI Gateway is an LLM inference layer built into a Neon branch. One API and one Neon credential give access to frontier and open-source models from Anthropic, OpenAI, Google, Meta, Alibaba, DeepSeek and Databricks. Models are addressed by catalog ID, such as claude-sonnet-4-6 or gpt-5-mini, so changing one model field switches providers.

Each branch has its own gateway endpoint, and AI requests from a preview or feature branch stay isolated to that branch. The skill covers wiring the gateway into the Vercel AI SDK, Mastra, and the OpenAI, Anthropic and google-genai SDKs, and enabling it in neon.ts. It is aimed at developers building apps or agents on Neon who want one credential and branch-scoped AI.

Written from the project's SKILL.md and checked against it.

What it can do

  • Model calls through the gatewaySends LLM requests through one OpenAI-compatible endpoint using catalog model IDs.
  • Provider switchingChanges between models by editing one model field, without rewiring code.
  • Vercel AI SDK agentsBuilds agents with the AI SDK, including tool calling and streaming responses.
  • Mastra agentsSets up memory-backed Mastra agents that point at the gateway.
  • Plain SDK setupConfigures the OpenAI, Anthropic and google-genai SDKs to use the gateway routes.
  • Branch gateway setupEnables the gateway under preview.aiGateway in neon.ts and deploys it to a branch.

What you need

  • Paid Neon plan with prepaid credits
  • Neon project with a neon.ts file
  • NEON_AI_GATEWAY_TOKEN and NEON_AI_GATEWAY_BASE_URL values
  • neon CLI for neon deploy

Try asking

  • Enable the Neon AI Gateway in my neon.ts file and deploy it.
  • Show me how to call claude-sonnet-4-6 through the Neon AI Gateway.
  • Build an AI SDK agent with a tool that lists my open todos.

Good to know

  • Requires a paid Neon plan and prepaid credits.
  • Confirm region, project eligibility, model catalog and pricing in the official docs.
  • SDK calls need the matching dialect, and the model must support the requested features.
  • A branch endpoint is not an application-user authorization boundary.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/neon-ai-gateway/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB

Alternatives to neon-ai-gateway

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

neon-ai-gateway: common questions

Do I need separate API keys for each model provider?

No. The source says one Neon credential reaches the whole model catalog across seven providers, with no separate provider accounts to set up.

Are AI requests isolated per branch?

Yes. Each branch has its own gateway endpoint, and AI requests from a preview or feature branch are isolated to that branch.

Which Neon plan is needed for the AI Gateway?

The source says AI Gateway requires a paid Neon plan and prepaid credits. Current eligibility should be checked in the official docs.

How do I install neon-ai-gateway?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is neon-ai-gateway free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is neon-ai-gateway safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to neon-ai-gateway?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

neon-ai-gateway Install

Add to stack

Loading.