Skip to main content
PasteGuard ships as a single all-in-one Docker image — the Bun proxy and the PII detector (deterministic regex/checksum + multilingual GLiNER) run together in one container. No build step required.

Docker Image

Detection is multilingual and language-agnostic — one model finds entities regardless of the language the text is written in, so there are no per-language image variants.

Quick Start

PasteGuard runs on http://localhost:3000. Open http://localhost:3000 for the dashboard.
The first start loads the detection model and can take a little longer; the container reports healthy once both the proxy and the detector are ready.

Production Setup

For persistent logs and custom configuration:
This gives you:
  • Custom config — edit config.yaml to change detection settings
  • Persistent logs — request history in data/pasteguard.db survives restarts
  • Auto-restart — the container restarts automatically
Or with Docker Compose:

Languages and phone numbers

Detection is multilingual and needs no per-language configuration. Configure phone_regions only if you need national-format phone numbers without a + country prefix — see PII Detection Config.

Environment Variables

Next Steps

Quickstart

Make your first request

Configuration

Customize PasteGuard