Keys / Pinecone

PINECONE_API_KEY

The Pinecone API key your app reads and writes vector indexes with. Each key belongs to one project.

Starts with
pcsk_
Expires
the docs don't say
API
create, list, update and delete, with a service account token

Get it

Create one on app.pinecone.io/organizations/-/projects. The steps aren't recorded yet.

Set it

PINECONE_API_KEY=pcsk_...

The Python and TypeScript SDKs read it from this variable when you don't pass a key. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. Create a new key in the same project with the same permissions.
  2. Deploy it everywhere that reads PINECONE_API_KEY.
  3. Check that requests succeed with the new key, then delete the old one. Only a project owner can delete keys.

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