Keys / Neon

NEON_API_KEY

The key your scripts, CI and tools call the Neon API with. A key is personal, for an organization, or for one project.

Expires
never; valid until revoked
API
create, list and revoke, with a personal API key

Get it

Create one on console.neon.tech/app/settings/api-keys. The steps aren't recorded yet.

Set it

NEON_API_KEY=...

The Neon CLI (neonctl) reads it when you don't pass --api-key. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. Create a new key with the same scope: personal, organization or project.
  2. Deploy it everywhere that reads NEON_API_KEY, such as CI, Terraform and MCP server settings.
  3. Check that nothing still uses the old key, then revoke it. Revoking is immediate.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16