Keys / Cohere

COHERE_API_KEY

The Cohere API key your app calls Cohere's chat, embed and rerank models with.

Expires
no setting documented; the FAQ says keys may
API
none; dashboard only

Get it

Create one on dashboard.cohere.com/api-keys. The steps aren't recorded yet.

Set it

COHERE_API_KEY=...

The Python SDK reads it when CO_API_KEY isn't set. The TypeScript and Go SDKs read only CO_API_KEY, so pass the key in or set that one. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. Create a new key of the same type, trial or production.
  2. Deploy it everywhere that reads COHERE_API_KEY.
  3. Check that requests succeed with the new key, then delete the old one.

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