Managed Better Auth now supports Discord as an OAuth provider, alongside Google, GitHub, Vercel, Apple, and Microsoft. Add it from your project's Better Auth settings in the Neon Console, the Neon CLI (version 9.5.0 or later), the Neon API, or the Neon MCP server. Neon has no shared Discord app, so you use your own Discord application's client ID and secret:
To see which version you're on, run this in the SQL Editor or any Postgres client:
SELECT version();-- PostgreSQL 18.7 (a21afb5) on aarch64-unknown-linux-gnu, compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0, 64-bit
Claude Fable 5.2 and Kimi K3.1 Pro on the AI Gateway
The AI Gateway lets you add AI features to your app, like summarizing notes, describing uploaded photos, or answering customer questions, with one Neon credential for models from many providers. To start building, see Get started with the AI Gateway. Two new models are available this week:
Claude Fable 5.2 (claude-fable-5-2): Anthropic's latest Fable model, with a 1M-token context window. Call it through the chat completions or native Anthropic Messages endpoint. See Claude Fable 5.2.
Kimi K3.1 Pro (kimi-k3-1-pro): Moonshot's successor to Kimi K3. See Kimi K3.1 Pro.
Try either one with the AI SDK:
import { neon } from '@neon/ai-sdk-provider';import { generateText } from 'ai';const { text } = await generateText({ model: neon('claude-fable-5-2'), // or 'kimi-k3-1-pro' prompt: 'Explain database branching in one sentence.',});console.log(text);
Sync Stripe data into Postgres from the Integrations page
The Integrations page in the Neon Console now has a Stripe card. Select Add to open Stripe Data Pipeline, connect your Neon account, and create a pipeline. From then on, Stripe keeps your customers, subscriptions, invoices, and charges in sync in your Neon project. You don't write webhooks or sync code.
Once your billing data sits next to your app data, you can gate features on a customer's plan, show invoice history in your app, follow up on failed charges, or report on revenue with SQL. See Sync Stripe data to Lakebase Postgres on Neon.
Project permissions for Object Storage, Functions, and AI Gateway
Object Storage: Downloading objects or creating a presigned download URL requires Editor. Viewers can still list buckets and objects. Creating a public bucket requires Admin.
Functions: Registering or deleting a custom domain requires Admin.
Credentials: Creating, revealing, rotating, or revoking Object Storage and AI Gateway credentials requires Editor. Viewers can see credential metadata only.
Organization API keys aren't affected, so automation keeps working. See Per-project permissions.
New Neon Functions templates
We added three new templates to the Function Registry this week. Each one is a ready-to-deploy starting point for a function:
jev-triage: Route support messages by topic, urgency, churn risk, and spam with the Jev decision model on the AI Gateway.
mcp-use: Build an authenticated MCP server with mcp-use, with Postgres-backed event tools you can adapt (contributed by Manufact).
jalco-drop: Share files, folders, pastes, and screen recordings as links, stored in Object Storage, with expired drops cleaned up on a schedule.
List the templates and start a function from one with the Neon CLI:
neon functions templates listneon functions new jev-triage
Have a template to share? Open a pull request on neondatabase/examples. The contributing guide covers the template format, how to test it locally, and what we check in review.
Update your agent skills
We updated the Neon agent skills for this week's changes and added new and expanded skills for building live apps with Neon Realtime and securing MCP servers and OAuth clients with Managed Better Auth.
To get the latest, run this in your project. It installs the skills if you don't have them and updates them if you do:
npx neon@latest skills
In ChatGPT, the same updates are in version 3.0.1 of the Neon plugin. See Set up Neon in ChatGPT.
Fixes & improvements
AI Gateway
Inkling is no longer available on the AI Gateway and has been removed from the model catalog. Requests that name inkling now return a 400 unknown model error. If you use it, switch to another model in the catalog.
Consumption API
Fixed an issue where the branch metrics endpoint left out idle and archived branches. Requests for storage metrics now return every branch billed for storage in the window, even ones with no compute usage.
Data API
Get Data API details now returns auth_provider (neon_auth or external), plus the jwks_url, provider_name, and jwt_audience for external providers, so you can see how a Data API verifies tokens.
Drizzle Studio
We updated the Drizzle Studio integration behind the Tables page, where you browse and edit your data, to version 1.8.0. This release fixes browser tabs becoming unresponsive while loading large databases, reworks the partitions view, and loads partitions on demand. For details, see the Neon Drizzle Studio Integration Changelog.
Neon Console
The Active queries and Query performance views on the Monitoring page no longer load indefinitely when the selected compute isn't running. They now show that the compute is suspended or starting, and Refresh on Active queries is disabled until the compute is active.
Neon MCP Server
The new list_incidents tool shows open Neon incidents and maintenance from neonstatus.com, so your assistant can tell a Neon outage from a problem in your own setup. It's available on every connection, with no credentials needed.
run_sql and run_sql_transaction now return 100 rows per statement by default, and say when a result was truncated. Set max_rows (up to 10,000) to see more. Failed queries now include the Postgres error code, position, detail, and hint.
The new query_loki_logs tool lets your assistant search your branch's logs with LogQL and put events from requests in the same second in exact order, which helps when you debug a burst of requests or retries.
describe_branch now returns the database structure for roles that can't create objects in the public schema.
Fixed Codex CLI sign-in to the hosted MCP Server, which failed with "Invalid redirect URI".
Fixed an issue where Realtime could fail to start on a branch without a neondb_owner role. Realtime now connects as the role that owns your database.
Vercel
You can now rename a project created through the Vercel-Managed Integration from the Neon Console or API. Neon renames the matching Vercel resource too, so the names stay in sync.
All accounts can purchase AI Gateway credits
The AI Gateway lets you add AI features to your app, like summarizing notes, describing uploaded photos, or answering customer questions. One Neon credential gives you more than 60 models from OpenAI, Google, and other providers. You don't need a paid plan to use it anymore. On the Free plan, an organization admin can buy prepaid credits from $5 under Billing in the Neon Console. You pay only for the tokens you use, at each model's rate in the model catalog. To start building, see Get started with the AI Gateway.
Recover deleted projects from the Console
You can now recover a deleted project from the Neon Console, in addition to the CLI and API. Recovery is available for 7 days after deletion. On your Projects page, select Manage on the banner, then Recover. See Recover a deleted project.
Automatic updates for computes up to 16 CU
If you've been manually restarting computes between 8 and 16 CU to keep them current, you can stop. Every compute up to 16 CU, including all autoscaling computes, now gets compute updates automatically. On paid plans, they run in the update window you choose.
An update restarts the compute, which typically takes a few seconds. Your data isn't touched, and Neon prewarms the cache during the update, so queries don't run cold afterward. Fixed-size computes above 16 CU still need a manual restart. To learn more, see Updates.
Give your app its own MCP server
Your customers already use AI agents like Claude, Cursor, and ChatGPT. Now they can use your app from them too. Run an MCP server on Functions and turn on the OAuth provider plugin in Managed Better Auth. Your users sign in with the account they already have, and the agent can only reach their own data. Start from the template:
Set up Junie, Kiro CLI, Pi, and more coding agents with Neon
One command connects your coding agent to Neon, with the Neon MCP Server and agent skills set up for you. Factory Droid, fx, Hermes Agent, Junie, Kilo Code, Kimi Code, Kiro CLI, and Pi are newly supported this week. Run:
npx neon@latest init
To set up one agent, pass --agent <name>, like --agent junie. Neon works with more than 20 coding agents, including Claude Code, Cursor, Codex, and VS Code. See the full list of supported agents.
List them and add one to your project from the Neon CLI:
neon functions templates listneon functions new openai-agents
New version of the Neon Realtime SDK
Version 0.2.0 of the Neon Realtime SDK is out. Realtime (beta) turns any SQL query into a live query, so your app's UI updates the moment your data changes. Upgrade for the latest improvements, including sorted live queries that stay sorted as rows change. To upgrade, update the SDK and any adapters you use at the same time:
Paid plans now support up to 6 read replicas per branch. Branches that already have more keep them, but can't add another until they're under the limit. The Free plan limit of 3 per project hasn't changed.
New neon postgres command (aliases pg and lakebase) groups the Postgres commands and adds computes, so you can list, inspect, resize, start, suspend, restart, and delete computes from the CLI.
neon orgs now manages organizations: get, members (list, get, update role, remove), invitations (list, create), and spending-limit.
neon roles create --access read_only or --access read_write creates a least-privilege role instead of an admin. Add --database and --schema to scope it (the schema defaults to public). The same access option is on neon.postgres.roles.create in @neon/sdk 7.8.0 and on the MCP Server's create_postgres_role tool, so an agent asked for a read-only credential no longer hands out an admin. Without access, roles are still created as admins. See neon roles create.
New neon operations get shows the status, duration, and any error for a single operation.
neon bootstrap now offers to deploy at the end when the template's environment variables are all set. Pass --deploy to install, link, and deploy without prompts.
neon claim create and neon init --claimable now accept --project-name, so a claimable project keeps the name you choose after it's claimed. See neon claim.
neon init now finishes linking your project, writing neon.ts, and pulling environment variables even when plugin, skills, or MCP setup fails for one of your agents.
neon plugins and neon init now check that GitHub Copilot CLI and Grok Build actually run before installing the Neon plugin through them.
neon init --services data-api and neon config init --services data-api no longer declare Managed Better Auth for a Data API that verifies tokens from an external identity provider such as Clerk or Auth0. They now read how the linked branch's Data API is set up.
neon databases delete and neon roles delete now tell you when the database or role is already gone instead of printing nothing, and failed commands no longer print the update notice.
Commands for Realtime, Functions, function triggers, Object Storage, and the AI Gateway now explain when a feature isn't available in your project's region. The error names the project's region and the regions where the feature runs, instead of a bare 404 (@neon/sdk 7.7.0). See Regions.
A top-level realtime key in neon.ts now fails with a message that tells you to configure Realtime under preview: { realtime: true }.
neon plugins and neon init now always install the Neon plugin user-level. This fixes project-level installs, which failed for every agent in the previous release. VS Code, GitHub Copilot CLI, Grok Build, and Kimi Code no longer need --global, and --global is still accepted, so existing scripts keep working.
Managed Better Auth
Managed Better Auth now runs Better Auth 1.7.16, which fixes the issues in Better Auth's November 3 security release. The fix is server-side and already live in every region, so you don't need to do anything: no SDK upgrades, no secrets to rotate.
A new Revoke sessions on password reset setting signs a user out of every existing session after a successful password reset, whether they reset through a link or Email OTP. It's off by default and set per branch. Turn it on in Settings > Better Auth under Sign-in with Email, with neon neon-auth config email-password update --revoke-sessions-on-password-reset, or with the Neon API. See Sign users out after a reset.
@neon/auth 0.8.1 works with Better Auth UI 1.7. Thrown errors keep the raw error code, password reset and email verification links no longer redirect signed-out users to sign-in, and auth.middleware() accepts publicRoutes for pages that don't need a session.
Agent skills
The Neon agent skills now cover branching and egress optimization inside neon-postgres, so the standalone neon-postgres-branches and neon-postgres-egress-optimizer skills are retired. If you installed either by name, install neon-postgres instead. The skills also teach Upstash for caching, rate limits, and queues, and the Managed Better Auth OAuth server for MCP and OAuth clients. To install or update the skills, run npx neon@latest skills.
Neon Management SDK
@neon/sdk adds a neon.organizations namespace for reading an organization and managing its members, invitations, spending limit, and API keys. Every method defaults to the client's orgId.
neon.auth now covers the branch-level Managed Better Auth settings, including localhost access, email and password sign-in, the email provider, the magic link, organization, and phone number plugins, and webhooks.
Neon MCP Server
The hosted Neon MCP Server now supports the MCP 2026-07-28 specification (MCP 2.0), and existing clients keep working unchanged. The old HTTP+SSE endpoints, /sse and /message, are retired and return 410 Gone. If your client still points at /sse, change it to https://mcp.neon.tech/mcp. See Retired HTTP+SSE transport.
New tools: count_projects answers "how many projects do I have", and get_project_consumption and get_branch_consumption report usage from the consumption history API.
Agents can now change Managed Better Auth branch settings, not just read them: localhost access, email and password sign-in, the email provider (with a test send), the organization, magic link, and phone number plugins, and webhooks. get_neon_auth_config also reports the new revoke_sessions_on_password_reset setting.
MCP clients and directories now show the server as Neon, with its logo, description, and docs link. The server also publishes a Server Card at https://mcp.neon.tech/.well-known/mcp.json for discovery before sign-in.
The search and fetch tools now work for personal accounts that belong to several organizations. Previously, search failed with a "Multiple organizations found" error. Thanks to breken-ai for finding and diagnosing the issue.
Realtime, Functions, trigger, Object Storage, and AI Gateway tools now return the same region-aware error as the CLI when a feature isn't available in your project's region.
AI Gateway
@neon/ai-sdk-provider 1.3.0 uses gpt-image-2 for image generation by default, since OpenAI deprecated gpt-image-1. If you call neon.tools.imageGeneration() without a model, upgrade or set model: 'gpt-image-2' to keep it working. Requests that still name gpt-image-1 are rejected before they're sent. See Image generation with Vercel AI SDK.
The model catalog now shows each model's lab, plus the context window and sub-cent prices for decision models.