prxy.monster API-key BYOK is live. Start free

guardrails

Category: safety · Cloud + Local · Status: v1.0 — production (regex backend)

Content filtering at the gateway layer instead of in your app code.

What it does

Pluggable content filtering. v1 ships the regex backend — local, zero-cost, no third-party calls.

When to use it

Configuration

guardrails:
  pii_redact: true                    # default false
  profanity_block: false              # default false
  custom_patterns:
    - 'sk-[a-zA-Z0-9]{20,}'           # block accidental API key paste
    - '^password:'                    # block "password:" leading lines
  backend: 'regex'                    # only 'regex' in v1
  on_pii: 'redact'                    # 'redact' | 'block' | 'log-only'

Behavior on violation

Match typeDefault action
PII (email/SSN/card/phone)Redact in place, continue
Profanity400 short-circuit
Custom pattern400 short-circuit

Set on_pii: 'block' to short-circuit on PII too. Set on_pii: 'log-only' to only count matches in metadata without mutating the request.

PII patterns built in

Metrics emitted

Roadmap

Source

src/modules/guardrails.ts