REAL PAYMENTSBase (chain id 8453) · USDC payments have real value. Paid upstream failures are not automatically refunded.
Guide · Redaction

Scrub the log before the model reads it.

Agents that debug from logs paste whatever the log contains: customer emails, bearer tokens, cloud keys. This guide runs a real error log through the Secret & PII Redactor and shows what comes back — and what pattern matching cannot catch.

The example, run through the real engine

This is the exact input and an excerpt of the report Secret & PII Redactor returns for it. The full report also carries input and report SHA-256 hashes for verification.

Input
{
  "text": "2026-11-20 14:02:11 ERROR checkout failed for maria.lopez@example.test (card 4111 1111 1111 1111)\n  request from 198.51.100.24, header Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyXzQyIn0.c2lnbmF0dXJlX2hlcmU\n  retrying with AWS key AKIAIOSFODNN7EXAMPLE; customer phone +44 20 7946 0958\n2026-11-20 14:02:12 INFO retry for maria.lopez@example.test succeeded"
}
Report excerpt: redactedText, uniqueValues, redactionCount
{
  "redactedText": "2026-11-20 14:02:11 ERROR checkout failed for [EMAIL_1] (card [CARD_NUMBER_1])\n  request from [IPV4_1], header Authorization: Bearer [JWT_1]\n  retrying with AWS key [API_KEY_1]; customer phone [PHONE_1]\n2026-11-20 14:02:12 INFO retry for [EMAIL_1] succeeded",
  "uniqueValues": {
    "email": 1,
    "card_number": 1,
    "ipv4": 1,
    "jwt": 1,
    "api_key": 1,
    "phone": 1
  },
  "redactionCount": 7
}
0.011112 USDC per call · paid with x402 on Base

No account is needed to pay: an agent with its own wallet answers the HTTP 402 quote, or a human approves each payment through the local Agent Spend bridge. Payment settles before delivery; there is no automatic refund.

01What the log leaks

The four lines above hold six different sensitive values: an email address (twice), a test card number, a client IP, a JWT in an Authorization header, an AWS access key id and a phone number. Each would be copied verbatim into a prompt, a support ticket or an embedding.

02Same value, same placeholder

The redacted text keeps the structure the model needs to reason about the failure: both lines mention [EMAIL_1], so it can still tell that the retry was for the same customer. Seven spans are replaced; six distinct values get six placeholders.

The report also lists every span with its category and position in your original text, so you can map a placeholder back locally — the original values are never returned.

03What it checks, and what it cannot

Card numbers must pass the Luhn check and IBANs the mod-97 check, so order numbers and dates are left alone. API keys are matched by known prefixes (sk-, ghp_, xox…, AKIA, AIza, sk_live_), plus JWTs, bearer tokens and PEM private keys.

Pattern matching does not find names, postal addresses or personal details written in prose: "Maria from Valencia" stays as written. Treat redaction as one layer, not as a compliance guarantee.

04Use it inside an agent

Call the redactor before any step that leaves your boundary: before an LLM call, before writing to a log store, before creating a ticket. Agents pay per call in USDC through x402 or the local Agent Spend bridge, with a human approving each payment.

Questions

Are the original values stored or returned?

No. The report contains placeholders, categories and positions, never the matched values. Input and result bodies are not stored.

Can I redact only some categories?

Yes. Pass categories, for example ["api_key","jwt","bearer_token"], to leave emails and phone numbers untouched.

Does it detect names and addresses?

No. It is pattern-based. Free-text personal data needs a different approach and a human review.

What does it cost?

0.011112 USDC per call on Base mainnet, including the platform fee. The exact 402 quote is authoritative.

Next steps