Skip to main content
Mask mode replaces PII with placeholders before sending to the upstream AI service. 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

The provider receives: "Write a follow-up email to [[PERSON_1]] ([[EMAIL_ADDRESS_1]])"
4

Response masked

The 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 cloud AI services while protecting PII

Configuration

Masking Options

Response Headers

Mask mode sets these headers on responses:

Streaming Support

Mask mode supports streaming responses. PasteGuard buffers tokens and unmasks placeholders in real-time as they arrive.