Keys / Cerebras

CEREBRAS_API_KEY

The Cerebras API key your app calls Cerebras Inference models with. On paid accounts, each key belongs to a project.

Starts with
csk-
Expires
never
API
none; console only

Get it

Create one on cloud.cerebras.ai. The steps aren't recorded yet.

Set it

CEREBRAS_API_KEY=csk-...

The Python and Node.js 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. On the API Keys page, create a new key in the same project.
  2. Deploy it everywhere that reads CEREBRAS_API_KEY.
  3. Check that requests succeed with the new key, then delete the old one. Deleting is immediate; requests with the old key get 401.

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