Mask Mode
Mask mode replaces PII with placeholders before sending to your LLM provider. The response is automatically unmasked before returning to you.How It Works
1
Request arrives
Your app sends:
"Write a follow-up email to Dr. Sarah Chen (sarah.chen@hospital.org)"2
PII detected
PasteGuard finds:
Dr. Sarah Chen (PERSON), sarah.chen@hospital.org (EMAIL)3
Masked request sent
Provider receives:
"Write a follow-up email to <PERSON_1> (<EMAIL_ADDRESS_1>)"4
Response masked
Provider responds:
"Dear <PERSON_1>, Following up on our discussion..."5
Response unmasked
You receive:
"Dear Dr. Sarah Chen, Following up on our discussion..."When to Use
- Simple setup without local infrastructure
- Want to use external LLM providers while protecting PII
Configuration
Masking Options
| Option | Default | Description |
|---|---|---|
show_markers | false | Add visual markers around unmasked values |
marker_text | [protected] | Marker text if enabled |
Response Headers
Mask mode sets these headers on responses:fallback_language: