Skip to content
Benchmarks

redact-secret · Report

Inference API key

sk-or-v1- followed by 64 lowercase hexadecimal characters (73 characters), per OpenRouter's secret-format documentation.

  • OpenRouter
  • Detectors: openrouter-api-key
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT1 · Provider-documented
  • Dossier researched2026-09-24
Registry detector openrouter-api-key since redact-secret#727 (registry pinned at dad7868); graduated from a Beta.8 arrival family (#208, research #220), contract in benchmarks/lib/beta8/208.ts. Management keys (sk-or-mgmt-) are openrouter:management-api-key, not members of this family. The public key hash has the same 64-hex body shape without the prefix.

Research record

From credential-evidence snapshot-2026.10.06.4 · records at 77ce761 · schema 1.8.0. It describes the research on the format, not what any scanner or the product does, and not a support status.
  • Review stateDraft, not reviewed
  • Format revision1 · current
  • ResearchResearched
  • Researched2026-09-24

3 events in the review history: 2 observed, 1 reviewed. Latest: observed on 2026-09-24 by automation, project maintainer. Project-maintained review is not independent validation. The family record at this release.

Format

Provider format research from credential-evidence snapshot-2026.10.06.4 · records at 77ce761 · schema 1.8.0.

What it looks like

Descriptive pattern
^sk-or-v1-[0-9a-f]{64}$

Parts are shown as recorded. Evidence classes belong to the facts below; no class is assigned to a part.

Format facts

Open questions

No open question is recorded for this revision.

Benchmark dossier notes

From the provider dossier, as written. The evidence level above says how well the format is backed; a fact the dossier does not record is not shown.
Shape
prefix sk-or-v1- followed by 64 lowercase hexadecimal characters (73 in total). OpenRouter's own Secrets guardrail page states this shape, and the create-key API example matches it. OAuth PKCE keys use the same shape per the vendored OpenAPI example.
Basis
T1, provider documentation (guardrail secret formats, create-keys reference), corroborated by TruffleHog, flare-redact and betterleaks. Betterleaks is case-insensitive; a few rules use looser classes than hex.
Issuance
not attempted. Free accounts can create a key; the checklist is in benchmarks#220. No pre-v1 or v2 shape was found.
Contract in core
detector-families.md (frozen in the #726 record; management and uppercase variants are intentional gaps).

In this benchmark

Fixture rows on the current run. Counts are for redact-secret in published · redact-secret 0.1.0-beta.14 mode.
Fixtures
32
Left readable
0
Redacted too much
0
False alarms
0

32 fixtures: 12 expect a redaction, 20 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented12000
T2Tool-corroborated12000
T3Project policy8000

Every scanner on the same fixtures

In run order. Counts are what each scanner recorded on this family's fixtures, whichever rules it has; a scanner with no rule for the family has nothing to report on it.

Counts per scanner on this family's fixtures
ScannerFixturesLeft readableToo muchFalse alarms
flare-redactRuntime library · 1.6.1 · Published npm package · secrets-only (pii, generic_assignment disabled) · JavaScript engine1 rule targets it32000
gitleaksRepository scanner · 8.30.1 · Directory scan · default rulesNo rule maps to it32401
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped32000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabled1 rule targets it32000

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
the key hash returned by the API is 64 hex characters, the same body without the prefix, so a bare 64-hex string is not a key. The label is a masked form (sk-or-v1- plus a short head and tail). OpenAI sk- and Anthropic sk-ant- keys are different families. sk-or-mgmt- is the sibling below.

Scanner rules for this family

Mapped by hand (reviewed 2026-09-30) from each scanner's pinned rule file, never from what a scanner found on the fixtures.
Peer scanner rules that target this family
ScannerRuleWhat the rule matches
flare-redact · rules 1.6.1openrouter_keysk-or-v1- + 64 hex
trufflehog · rules 3.97.4openroutersk-or-v1- + 64 hex

No rule maps to this family in gitleaks, openredaction.

32 of 32 rows

Fixtures in this family

32 rows, redact-secret's outcome on each. Rows that need a look come first (0), then the rest in corpus order. Choose "Every scanner" to see each scanner's outcome for the same rows.
Fixtures in Inference API key
FixtureKind and evidenceredact-secret
openrouter-api-key-bearer-long-body-twinopenrouter · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
openrouter-api-key-chat-pasteopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-key-shape-bareopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-key-shape-quotedopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-key-shape-unicode-crlfopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-base64-config-encoded-valueopenrouter · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
openrouter-api-key-bearer-headeropenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-composeopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-compose-half-body-twinopenrouter · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
openrouter-api-key-create-key-responseopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-docs-proseopenrouter · prose-mentionMust not flagT3 · Project policyQuiet
openrouter-api-key-envopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-env-lookup-referenceopenrouter · templated-referenceMust not flagT3 · Project policyQuiet
openrouter-api-key-env-short-body-twinopenrouter · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
openrouter-api-key-env-template-placeholderopenrouter · documentation-placeholderMust not flagT3 · Project policyQuiet
openrouter-api-key-exportopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-guardrail-marker-placeholderopenrouter · documentation-placeholderMust not flagT3 · Project policyQuiet
openrouter-api-key-key-hash-public-idopenrouter · public-identifierMust not flagT2 · Tool-corroboratedQuiet
openrouter-api-key-label-proseopenrouter · benign-lookalikeMust not flagT3 · Project policyQuiet
openrouter-api-key-maskopenrouter · benign-lookalikeMust not flagT3 · Project policyQuiet
openrouter-api-key-masked-label-placeholderopenrouter · documentation-placeholderMust not flagT3 · Project policyQuiet
openrouter-api-key-openai-compatibleopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-openai-non-hex-body-twinopenrouter · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
openrouter-api-key-openrouter-sdkopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-prefix-check-near-missopenrouter · format-near-missMust not flagT2 · Tool-corroboratedQuiet
openrouter-api-key-prefix-onlyopenrouter · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
openrouter-api-key-printenvopenrouter · documented-format-literalMust redactT1 · Provider-documentedRedacted
openrouter-api-key-printenv-glued-twinopenrouter · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
openrouter-api-key-referenceopenrouter · benign-lookalikeMust not flagT3 · Project policyQuiet
openrouter-api-key-sdk-wrong-prefix-twinopenrouter · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
openrouter-api-key-short-bodyopenrouter · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
openrouter-api-key-user-and-models-public-idopenrouter · public-identifierMust not flagT2 · Tool-corroboratedQuiet

Sources

Researched 2026-09-24.

Documentation and code

Research log

Other OpenRouter families