OpenRouter API Key

Detects OpenRouter API keys, which start with sk-or-v1- followed by 64 lowercase hexadecimal characters. OpenRouter is a gateway to many model providers behind one key, so a leaked key lets someone else run billed inference against every model the account can reach. OpenRouter's management keys use the same format and are matched too.

Type
regex
Engine
universal
Confidence
high
Confidence justification
High confidence: OpenRouter's authentication documentation states the format exactly (sk-or-v1- plus 64 lowercase hexadecimal characters, 73 in total), and TruffleHog's production detector pins the same structure independently. The prefix is vendor-specific and the body length is fixed, so a chance match is not realistic. The enforce tiers still ask for a nearby OpenRouter or API-key term, and a single key stops at 75.
Jurisdictions
global
Regulations
Criminal Code Act 1995 (Cth)
Frameworks
CIS Controls, ISO 27001, NIST CSF, SOC 2
Data categories
credentials, security
Scope
narrow
Risk rating
8
Platform compatibility
Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, CrowdStrike DLP: Unsupported, Palo Alto: Unsupported, Netskope: Unsupported

Pattern

(?-i)(?<![A-Za-z0-9_-])(sk-or-v1-[0-9a-f]{64})(?![A-Za-z0-9_-])

Corroborative evidence keywords

openrouter, openrouter.ai, OPENROUTER_API_KEY, api key, api_key, apikey, access key, access token, auth token, authorization, bearer, conn str, connection string, connectionstring, cookie, credential, database, host, [object Object], oauth (+36 more)

Proximity: 300 characters

Should match

Should not match

Known false positives

References