neon-ai-gateway

neon-ai-gateway is a skill for Claude Code from neondatabase/agent-skills. It costs 218 tokens per session (6,235 once invoked), scanned C, original, Apache-2.0.

A Neon AI Gateway connection that provides one API and credential for sending requests to multiple large language model providers through a Neon database branch. It is a public beta limited to the us-east-2 region.

In plain words
What is it for?
Use it to send model requests, add AI features or agents to an application, route requests between providers, and connect supported AI SDKs through Neon.
Why use it?
It reduces the need to manage separate provider credentials and change application code when switching models.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex; mentions Gemini CLI.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import config from "../neon";.

Part of the neon plugin — 7 skills, 1 MCP server shipped together

Good fit Use it to send model requests, add AI features or agents to an application, route requests between providers, and connect supported AI SDKs through Neon.

Compare 6 skills from other repositories ↓
About the project

Neon Agent Skills is a collection of agent instructions, scripts, and resources for working with Neon’s cloud backend services built around Lakebase Postgres. Developers, startups, and agent platforms use it to guide work with databases, branches, authentication, storage, functions, and AI Gateway services.

neondatabase/agent-skills · 121 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/neondatabase/agent-skills
agentmods
npx agentmods add skills/neondatabase/agent-skills/neon-ai-gateway

Made for: Claude Code.

Or install neon, the plugin that ships this one along with the rest of its 7 skills, 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 neon-ai-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-ai-gateway/github.svg)](https://agentmods.dev/skills/neondatabase/agent-skills/neon-ai-gateway)
Your own site
<a href="https://agentmods.dev/skills/neondatabase/agent-skills/neon-ai-gateway"><img src="https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-ai-gateway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neon-ai-gateway

Your own site · 80×15
<a href="https://agentmods.dev/skills/neondatabase/agent-skills/neon-ai-gateway"><img src="https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-ai-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 218 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,235 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 7 Nov 2026
  • Snyk pass 6 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 22
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium MCP Rug Pull · line 25
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Prompt Injection · line 104
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original 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.1 $0.00218 $0.06235
Opus 5.5 $0.00087 $0.02494
Sonnet 5.5 $0.00044 $0.01247
Haiku 4.5 $0.00022 $0.00624

Measured 14d ago against content hash af782bf0c85f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

neon-ai-gateway scanned grade C with 2 findings 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 14d ago.

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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- prettier-ignore -->

Makes network callslowCapability

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

curl "$NEON_AI_GATEWAY_BASE_URL/v1/models" \
plugins/neon-postgres/skills/neon-ai-gateway/SKILL.md · 377 lines

How it starts

The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FIRST: Use the parent neon skill for a Neon overview, getting started with Neon, Neon development best practices, and more.

If the neon skill is not installed, fetch it from https://neon.com/docs/ai/skills/neon/SKILL.md or install it with:

neon skills -s neon -y

Neon AI Gateway

Currently available in aws-us-east-2, aws-us-east-1, aws-eu-central-1, and aws-ap-southeast-1.

The Neon AI Gateway brings LLM and embedding inference to your Neon branch. One API and one Neon credential give you access to frontier and open-source models from many providers (Anthropic, OpenAI, Google, Meta, and more), plus embedding models, all hosted and powered by Databricks. The catalog shifts over time, so treat /v1/models and the models.dev Neon page as the source of truth rather than a fixed provider list. For embedding model IDs and dimensions, see the embeddings guide. Your existing OpenAI/Anthropic/Gemini SDK works by changing only the base URL.

Use this skill to help the user send model calls through the gateway, wire it into the AI SDK or Mastra, and switch providers without rewiring code. Deliver a working inference request, a configured agent, or a precise answer from the official Neon docs.

When to Use

Reach for the AI Gateway whenever an app or agent needs to call an LLM or generate text embeddings and the user would rather not manage model providers themselves:

  • One credential instead of many provider accounts. A single Neon credential reaches the entire model catalog across every provider Databricks hosts. No separate OpenAI / Anthropic / Google billing, keys, or signups to provision and rotate.
  • Switch models without rewiring. The unified endpoint is OpenAI-compatible and works with every model in the catalog — change one model field to move between Claude, GPT, and Gemini. Standard SDKs (OpenAI, Anthropic, google-genai) work with just a base-URL change.
  • AI follows your branches. Each branch has its own gateway endpoint, scoped with the same lineage as your database. AI requests from a preview/feature branch are isolated to that branch — the same isolation your data already gets — which makes preview, CI, and agent environments self-contained.
  • No extra infrastructure, and it's already next to your data. The gateway lives inside your Neon project (and is injected into Neon Functions automatically), runs on the same Databricks infrastructure that serves trillions of tokens a month, and supports streaming (SSE) out of the box.

Read the full file on GitHub · 377 lines

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. 14d ago Changed af782bf0c85f
  2. 24d ago Changed · +1 lines fe85ad483e88
  3. 1mo ago Changed · +33 lines · +4 tokens per session 23db230f6c72
  4. 1mo ago Changed d5e522b20b53
  5. 1mo ago Changed · +29 lines · +10 tokens per session scan A → C eafda7c2ede9
  6. 2mo ago Changed eab0545d5ee7
  7. 2mo ago Changed 8f50574d7c67
  8. 2mo ago Changed · -2 lines c9ecc7cbb67d
  9. 2mo ago Changed 3aba7bde2c05
  10. 3mo ago First seen · 316 lines · 204 tokens per session scan A 5f7b7d3f9490

Subscribe to this mod's changes

neon-ai-gateway is a skill published in the GitHub repository neondatabase/agent-skills (121 stars, last pushed today), licensed Apache-2.0. It adds 218 tokens to every session and 6,235 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it C with 2 findings (hidden instructions, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

neon-ai-gateway compared with skills from other repositories

neon-ai-gateway next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neon-ai-gatewayneondatabase/agent-skillsSkill121todayApache-2.0C218Claude Code
open-sourcebrowser-use/browser-useSkill123ktodayMITA101Claude Code
gemini-api-agent-platformdavila7/claude-code-templatesSkill35ktodayMITA61Claude Code, Codex
prowler-mcpprowler-cloud/prowlerSkill15ktodayApache-2.0A67Claude Code
deepstream-sopNVIDIA/skillsSkill4.3ktodayApache-2.0A219Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
gemini-api-devgoogle-gemini/gemini-skillsSkill5.0k12d agoApache-2.0A96Claude Code