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
- Create a new key with the same scope: personal, organization or project.
- Deploy it everywhere that reads
NEON_API_KEY, such as CI, Terraform and MCP server settings. - 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.