# Leaked Cerebras API Key? Delete It and Check Usage

> Cerebras inference key exposed in a repo or log? Delete it in the Cloud Console, check usage, set limits and rotate the key. Step-by-step.

Source: https://leakwatch.net/secrets/cerebras-api-key

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  Cerebras API Key

AI · Secret guide

# Leaked Cerebras API Key: what to do in the first hour

High severityDetected onlyLast verified November 5, 2026 · 5 min read

A Cerebras API key lets whoever holds it send inference requests to Cerebras under your account. The requests are billed to you, they count against the rate limits and usage of the project the key belongs to, and they can be made from any machine on the internet. A leaked key is not a data breach by itself, since the key does not expose the stored data of your application, but it can run up a bill and exhaust the capacity your own service depends on. Delete the key first, then check the usage that followed.

[Check your GitHub account for leaked secrets — free](/)

Provider

Cerebras

Severity

High

Impact

SaaS account access and billing

Checked live by LeakWatch

No

## What a Cerebras API Key looks like

Cerebras Inference keys are long strings that begin with `csk-`, followed by lowercase letters and digits. The prefix is the quickest way to recognize one in a file:

```text
csk-…XXXX   Cerebras Inference key (masked)
```

Other AI providers use similar bearer tokens, so the prefix is what separates a Cerebras key from the rest. The Cerebras documentation describes keys that are passed in an Authorization header as a bearer token, or read from an environment variable such as `CEREBRAS_API_KEY`. The name of the variable is not part of the secret, but a file that contains one usually does contain the value. Keys do not expire on a schedule, which means an old key found in a repository is still valid until someone deletes it.

## How Cerebras API Keys get leaked

-   **Environment files pushed by accident.** A `.env` file with a Cerebras key, committed to a public repository because the ignore rule was missing.
-   **Keys in browser code.** A call to the inference API made from front-end JavaScript, which places the key in the bundle that every visitor downloads.
-   **Notebooks and scripts.** A key pasted into a notebook cell or a quick test script, then saved with the file and shared.
-   **CI variables printed in logs.** A debug step that echoes the environment or the request headers.
-   **Copied examples.** A snippet from a tutorial or an AI assistant that contains a placeholder which was replaced with the real key and never removed.

## What to do in the first hour

1.  **Delete the key.** Open the account settings in the Cerebras Cloud Console, go to the API keys section, find the key and delete it. Deletion is immediate, and any application still using it will get authorization errors, so check which services need a replacement.
2.  **Create a replacement** for each service that needs one. Give each one its own key, and store it in a secret manager or the environment of the process that uses it, never in the repository.
3.  **Check usage.** Review the usage figures for the project for the period since the exposure. Look for request volumes you did not expect, models you do not use, and activity at hours when your team is not working.
4.  **Set a limit.** Put a spending or usage limit on the project, if the console offers one for your plan, so that a stolen key cannot keep running up charges while you investigate.
5.  **Check the rest of the file.** A leaked configuration often holds other credentials, such as database passwords or other AI provider keys. Revoke those as well.
6.  **Clean the repository.** Remove the value from the current files, add the file to `.gitignore`, and rewrite history if the repository was public. A deleted commit stays in clones and forks, so the deletion is what matters. See [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github) for the full order.

Not sure what else leaked from the same repository? [Run a free scan](/).

[Not sure what else leaked? Run a free scan.](/)

## Revoke it at Cerebras

Cerebras keys are listed on the API keys page of the Cerebras Cloud Console, in the left navigation. The list shows a truncated version of each key, so match the last characters against what leaked. Deleting a key is permanent and cannot be undone, so create the replacement first if a service depends on the key and you can afford a short window. Keys belong to a project, which inherits its rate limits and usage tracking, so make sure you are looking at the right project before you delete anything. We could not check the live console for this guide, so the menu labels may have changed since the last review. If the key is not in the project you expect, it may sit in another project under the same account.

## How LeakWatch detects it

The rule is called “Cerebras API Key”. It looks for the prefix `csk-` followed by exactly 48 lowercase letters or digits, with a word boundary before the prefix and a quote, space, semicolon or line end after the value. The match is not case-sensitive, so an upper-case copy is reported too. The severity is **high**, with the SaaS impact class, because the key spends your inference quota and is billed to your account. **This type is not checked live**: LeakWatch does not send the value to Cerebras, so a finding means the value has the right shape, not that it is still active.

LeakWatch detects this format but does **not** check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

## FAQ

Can someone read my data with a Cerebras key?

Not through the key itself. The key lets someone send requests and be billed to you. It does not open your stored data, but the requests they send may contain prompts or documents, and the results they receive are billed to you. Review usage to see what was sent.

Should I wait for the key to expire?

Cerebras keys do not expire on a schedule, so waiting does nothing. Delete the key as soon as you have a replacement in place.

How often should I rotate keys?

Rotate them on a schedule that fits your risk, and immediately after anyone with access leaves the team or a key appears somewhere it should not. Separate keys per service make each rotation smaller and safer.

## Related

-   [Groq API Key](/secrets/groq-api-key)
-   [Mistral API Key](/secrets/mistral-api-key)
-   [DeepSeek API Key](/secrets/deepseek-api-key)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with Cerebras.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
