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.
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-gatewayRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/neon-ai-gateway ~/.gemini/antigravity-cli/skills/neon-ai-gatewayAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
