Redaxa · Privacy, before AI

Detection reference · Credentials and secrets · Updated 2026-11-09

Anthropic API keys (sk-ant-)

Anthropic API keys carry the sk-ant- prefix, which makes them one of the few sk- keys that can be attributed to a provider from the value alone.

At a glance

Reported asAPI key or token
CategoryCredentials and secrets
Severitycritical: direct account or system compromise, as with keys, passwords and tokens
Replaced with[SECRET]
Where it runsThe same engine runs in the Chrome extension (free checks, on your device), in the web check and the Windows app (on Redaxa's server; the text is not stored) and in public repository checks.
Engine rulescanner.ts, line 205

What it looks like

sk-ant- followed by the rest of the key (Redaxa's rule needs at least 16 letters, digits, hyphens or underscores after sk-).

Example

You paste

ANTHROPIC_API_KEY=sk-ant-api03-RedaxaDocsSampleNotRealRedaxaDocsSampleN

Redaxa returns

ANTHROPIC_API_KEY=[SECRET]
Reported asAPI key or token
Severitycritical: direct account or system compromise, as with keys, passwords and tokens
Replaced with[SECRET]
Probable serviceAnthropic / Claude
Credential typeAPI key
EvidenceAnthropic-specific prefix; ownership and permissions are unverified.
Recommended actionRevoke or rotate if genuine

All values on this page are synthetic or published specimens; none is a working credential or a real person's data.

Key format, rotation and exposure

In a repository check

The same example, committed to a public repository and run through the free repository check:

Values are always shown masked in repository reports. No key is ever tested against its provider.

What it does not flag

If it already leaked

Disable or delete the key in the Claude Console (API keys), create a replacement, and review usage and spend for the period the key was exposed.

What Redaxa adds to every finding of this kind: If genuine, revoke or rotate it at the issuing service, update the application, then remove the exposed value from code and review Git history. Deleting it from Git does not revoke access.

Official guidance: platform.claude.com.

Step by step: pasted a key into ChatGPT, or committed one to GitHub.

Common questions

What should I do if my Anthropic API key leaked?

Disable or delete the key in the Claude Console under API keys, create a replacement, and review usage and spend for the period the key was exposed. Disable can be reversed; Delete is permanent.

What does an Anthropic API key look like?

It starts with sk-ant-. The example in Anthropic's own docs is sk-ant-api03-... and the official SDKs read the key from the ANTHROPIC_API_KEY environment variable.

Where should I look for a leaked Anthropic key?

Start with the name ANTHROPIC_API_KEY in pasted shell sessions, .env files and CI logs, because that is the variable the official SDKs read.

Can I put an Anthropic API key in a web page?

No. Anthropic tells developers to call the API from their own back end, because anyone who loads a web page can read a key that sits in its code.

Does an expired Anthropic API key still work?

No. A key that has expired returns a 401 authentication error and cannot be reactivated.

Check before you paste

The free Chrome extension runs this check inside ChatGPT, Claude, Gemini and Perplexity before a message is sent, on your device and with no daily limit. On the web you get 5 free prompt checks a day with no account.

Add the Chrome extensionTry a free web check

Worried it is already in your code? Check a public GitHub repository free (3 checks a day).

Related

Sources