# Secrets Check — Local Secret Pattern Scanner

> Secrets Check — Local Secret Pattern Scanner is a paid API for AI agents from relay402.georgespring.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Scans pasted file content or code diffs locally for exposed secrets such as private keys, API keys, GitHub tokens, and EVM private keys, without sending data to an LLM.

## Facts

- Endpoint: GET https://relay402.georgespring.workers.dev/api/security-secrets-check
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/secrets-check-local-secret-pattern-scanner-1eb71032
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_avrH4L17iG8jhj5r7JgtD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability secrets-check-local-secret-pattern-scanner-1eb71032
```

Example prompt: Can you scan this code snippet for any exposed secrets or private keys before I commit it? Here's the content: 'GITHUB_TOKEN=ghp_abc123... AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI...'

## When to prefer this

Choose this endpoint when you need fast, privacy-preserving secret detection on code, config files, or diffs without sending content to an LLM. It is ideal for pre-commit hooks, agent prelaunch audits, or any scenario where the content itself is sensitive and must not leave the local scan context. Prefer this over general-purpose LLM code review when pattern-based detection of well-known secret formats (GitHub tokens, EVM private keys, common API key formats) is sufficient.

## Known failure modes

- Missing 'content' query parameter returns a validation error
- Content exceeding 64,000 characters is rejected
- Obfuscated or encoded secrets may evade pattern matching
- False positives possible for placeholder or example key strings
- Non-secret sensitive data (e.g. passwords in natural language) may not be detected

## How this service works

local secret pattern scan for pasted files or diffs: detects common private keys, API keys, GitHub tokens and EVM private keys without sending data to an LLM.

## Output

Returns a list of detected secret patterns found in the submitted content, including the type of secret (e.g. GitHub token, EVM private key, AWS key), the matched pattern or location, and a risk summary — all computed locally without sending data to any external LLM.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "content"
     ],
     "properties": {
      "content": {
       "type": "string",
       "maxLength": 64000,
       "minLength": 1
      },
      "filename": {
       "type": "string",
       "maxLength": 200
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/secrets-check-local-secret-pattern-scanner-1eb71032/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relay402.georgespring.workers.dev](https://www.zero.xyz/host/relay402.georgespring.workers.dev/llms.txt)
