neon-auth

neon-auth is a skill for Claude Code from neondatabase/agent-skills. It costs 145 tokens per session (2,807 once invoked), scanned A, original, Apache-2.0.

An authentication setup guide for Neon Auth, a managed service for user accounts and sign-in built on Better Auth and Neon Postgres. It covers identity features such as passwords, email codes, social login, passkeys, and multi-factor authentication.

In plain words
What is it for?
Use it when adding sign-up, sign-in, password recovery, one-time codes, social login, organizations, passkeys, phone verification, trusted domains, or multi-factor authentication.
Why use it?
It helps add or configure login without replacing an existing identity system simply because an app also uses Neon database features.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the neon plugin — 9 skills shipped together

Good fit Use it when adding sign-up, sign-in, password recovery, one-time codes, social login, organizations, passkeys, phone verification, trusted domains, or multi-factor authentication.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neondatabase/agent-skills/neon-auth
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 · 101 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add neondatabase/agent-skills --skill neon-auth
Clone the repo
git clone --depth 1 https://github.com/neondatabase/agent-skills

Made for: Claude Code.

Or install neon, the plugin that ships this one along with the rest of its 9 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-auth/github.svg)](https://agentmods.dev/skills/neondatabase/agent-skills/neon-auth)
Your own site
<a href="https://agentmods.dev/skills/neondatabase/agent-skills/neon-auth"><img src="https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-auth/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-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/neondatabase/agent-skills/neon-auth"><img src="https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 17 Sept 2026
  • Snyk pass 17 Sept 2026
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.00145 $0.02807
Opus 5.5 $0.00058 $0.01123
Sonnet 5.5 $0.00029 $0.00561
Haiku 4.5 $0.00015 $0.00281

Measured 1mo ago against content hash 5f91f3282353, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neon-auth scanned grade A with 0 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/neon-postgres/skills/neon-auth/SKILL.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 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 Auth

Neon Auth is Managed Better Auth: users, sessions, and auth config live in the neon_auth schema on the branch's Lakebase Postgres, and auth state branches with the database. The client API is the Better Auth method set (signIn.email, signIn.social, getSession) through @neondatabase/auth. That wrapper is not a drop-in for bare better-auth/client: it pins the plugin list and adds Neon-specific OAuth verifier, iframe popup, and JWT handling. Stay on the wrapper while Auth is managed.

This skill chooses identity, then implements Managed Better Auth. It does not replace a working auth server in order to use Postgres, Functions, Object Storage, or the AI Gateway.

When to Use

Inspect existing identity and the required login features before provisioning. A supplied DATABASE_URL is not a reason to change identity. Adding a Neon Function is not a reason to change identity.

Situation What to do
No existing auth Default to Managed Better Auth. Managed setup, then references/managed-auth.md.
Needs a feature Managed does not offer Self-managed Better Auth on the existing app host (Vercel or similar) or a Neon Function. Keep Lakebase Postgres. Confirm the installed Better Auth version documents that exact flow before recommending the move. If support stays unresolved, keep the current identity. references/self-managed.md.
Already has Better Auth Keep it. It works with the other Neon primitives. Migrate to Managed only if the user asks.
User asked to migrate from Supabase Auth Managed Better Auth. Supabase Auth. Moving only Postgres or adding a Function keeps Supabase Auth.
Clerk, Auth.js, Supabase Auth, or another working IdP Keep it unless the user asks to migrate.

Read the full file on GitHub · 156 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 156 lines · 145 tokens per session scan A 5f91f3282353

Subscribe to this mod's changes

neon-auth is a skill published in the GitHub repository neondatabase/agent-skills (101 stars, last pushed yesterday), licensed Apache-2.0. It adds 145 tokens to every session and 2,807 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-18.

Related

Other skills, from other repositories

azure-postgres-ts

Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL…

microsoft/skills · 94 tokens

supabase

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…

supabase/agent-skills · 185 tokens

butterbase

AI-native, open-source backend-as-a-service with a built-in Model Context Protocol server. Postgres, auth, storage, functions, AI gateway.

butterbase-ai/butterbase · 34 tokens

supabase-cli

This skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management.

fcakyon/claude-codex-settings · 60 tokens

supabase-js

This skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase realtime", "supabase edge functions", or works with the @supabase/supabase-js JavaScript/TypeScript SDK.

fcakyon/claude-codex-settings · 64 tokens

supabase-node

Express/Hono with Supabase and Drizzle ORM.

alinaqi/maggy · 14 tokens