You're in the private preview of the Neon platform.
Private preview
This is not for production workloads. Expect rough edges and frequent updates. Build something and share your feedback in Discord.
What's in the preview
Three new services join Postgres and Neon Auth, all scoped to your branches:
- Neon Functions: long-running Node.js compute next to your database. WebSocket servers, SSE streams, AI agents.
- Neon Storage: S3-compatible object storage that branches with your data.
- Neon AI Gateway: one credential for frontier and open-source models (Claude, GPT, Gemini, and more).
You declare all of it in one neon.ts file, and it branches together: fork a branch and you get an isolated copy of your database, files, storage, functions, and gateway.
Check your access
Access is a flag on your Neon account. If you received the invite email, your flag should already be set. Preview services work on new projects in AWS us-east-2 only. They can't be enabled on existing projects. All usage during the preview is free, subject to fair usage.
To confirm your access, go to console.neon.tech, create a new project in US East (Ohio) (us-east-2), and check the left navigation for Storage, Credentials, AI Gateway, and Functions. If those don't appear, post in #neon-platform-private-preview on Discord and we'll fix your flag.

Get started
There are three ways to get started. Pick the one that fits how you work.
Option 1: AI agent (recommended)
Open Cursor or Claude Code in any directory (an existing project or a new empty folder) and paste this prompt:
I'm part of the Neon private preview. Please run and follow `npx neon@latest init --preview`Your agent will install the CLI, walk you through project setup, install agent skills, and pull your environment variables. You'll need to complete a browser OAuth step when prompted.
Option 2: Bootstrap from a template
In an empty folder, run:
neon bootstrapPick a template from the interactive selector, or pass --template <id> to skip it:
| Template | What it builds |
|---|---|
hono | A todo CRUD API using Hono and Drizzle ORM, deployed as a Neon Function. Includes pre-configured schema and migrations. A good starting point for any HTTP API on Neon Functions. |
ai-sdk | A streaming AI chat agent on Neon Functions that generates images on demand, stores them in Neon Storage, and indexes metadata in Postgres via Drizzle. Uses Neon AI Gateway for model access. |
mastra | A personal-assistant chatbot on Neon Functions that remembers you across conversations. Streams responses through Neon AI Gateway and persists context across threads using Mastra Memory backed by Neon Postgres. |
mcp | An MCP server on Neon Functions that exposes contact management tools (create, update, delete, search) to AI agents via streamable HTTP. Compatible with Cursor, Claude Desktop, and other MCP clients. |
realtime-chat | A full-stack realtime chat app: Next.js frontend with Neon Auth, a WebSocket server on Neon Functions, and messages persisted and fanned out across isolates with Postgres LISTEN/NOTIFY. |
realtime-sse | A realtime shared counter: TanStack Router SPA connected to a Hono server on Neon Functions via server-sent events. State persists in Postgres and broadcasts across isolates with LISTEN/NOTIFY. |
Each template includes agent skills and a README. Follow the README steps, or tell your agent to follow them.
Browse all bootstrap templates at github.com/neondatabase/examples.
Option 3: Manual setup
For exploring the platform primitives directly, or to understand what the agent does under the hood.
1. Install agent skills
Agent skills give your agent built-in knowledge of Neon services. Install them for your editor:
bunx skills add neondatabase/agent-skills -a cursor2. Install the CLI
npm install -g neon@latest3. Link your project
In your project directory:
neon linkSimilar to vercel link, this connects the directory to a Neon project and creates a .neon state file that tracks your project and current branch. All CLI commands in this directory will automatically point to the linked project and branch.
4. Create a neon.ts file
neon.ts is the infrastructure-as-code config for your Neon project. Install the config package first:
npm install @neon/configThen create neon.ts in your project root. This example enables the AI Gateway, creates a storage bucket, and declares a function:
import { defineConfig } from "@neon/config/v1";
export default defineConfig({
preview: {
aiGateway: true,
buckets: {
uploads: {},
},
functions: {
api: {
name: "API",
source: "./functions/api.ts",
},
},
},
});See the neon.ts reference for the full config API.
5. Plan and apply
Preview what will change:
neon config planApply it:
neon config applyOnce applied, environment variables for all your services are written to .env.local automatically: database URL, storage credentials, AI Gateway key, and more.
Key CLI commands
The Neon CLI supports a full local development workflow for the platform. You link a directory to a project, declare your infrastructure in neon.ts, develop functions locally with hot reload, and deploy when you're ready. Branching is built into the workflow: neon checkout creates an isolated branch with its own database, storage, and functions, so you can develop and test without touching your main branch. Here are the commands that make up that workflow, each with a link to its full reference.
| Command | What it does |
|---|---|
neon link | Bind the current directory to a Neon project. Writes a .neon context file so all subsequent commands target the right project and branch automatically. |
neon checkout <branch> | Switch the active branch in your local context. Creates the branch if it doesn't exist. Pulls updated env vars into .env.local after switching. |
neon config plan | Dry run your neon.ts changes. Shows what will be created, updated, or removed without applying anything. |
neon config apply | Apply your neon.ts to the current branch and refresh env vars in .env.local. |
neon deploy | Apply neon.ts and deploy your functions in one step. Use this instead of config apply when functions are in play. |
neon dev | Run your functions locally with hot reload. Serves every function declared in neon.ts, each on its own dev server. Essential for local function development. |
neon env pull | Pull the current branch's environment variables into .env.local. Run this after switching branches if you skipped the automatic pull. |
Keep the CLI up to date: run npm i -g neon@latest before each session and before reporting a bug. The preview CLI updates frequently.
Docs
Docs are evolving daily during the preview. Use the Neon agent skills as your primary reference.
- Neon Functions: overview, get started, neon.ts reference, runtime limits
- Neon Storage: buckets, objects, S3 compatibility
- Neon AI Gateway: get started, model catalog, SDK dialects
- Model catalog on models.dev: every model ID the gateway serves
For inspiration, see Build on Neon: an index of demo apps built on the full platform stack.
Known limitations
- New projects in AWS us-east-2 only. Existing projects don't work.
- Functions: memory is fixed at 2048 MiB.
- Logs from deployed functions can't be retrieved yet. Use
neon devduring development, and have deployed functions write diagnostics to Postgres. Error trackers work today:@sentry/nodebundles and runs fine; setSENTRY_DSNas a deploy-time env var.
Feedback
Post in #neon-platform-private-preview on Discord: bugs, confusion, docs gaps, feature requests, and what you build. We run office hours and user interviews throughout the preview. Details in the channel.
Tell us what you build. We'd love to feature it.
Need help?
Join our Discord Server to ask questions or see what others are doing with Neon. For paid plan support options, see Support.








