Skip to main content
PasteGuard ships as a single all-in-one Docker image — the Bun proxy and the PII detector (deterministic checks plus a semantic backend) run together in one container. GLiNER is included as the default backend. 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.

Detector startup crash in 0.9.3

The 0.9.3 image can terminate the detector with SIGSEGV while importing ONNX Runtime 1.29.0. Its telemetry initialization fails in the runtime image, which has no shell. The proxy then reports HTTP 503 from /health. For an existing 0.9.3 deployment, disable ONNX Runtime telemetry:
With Docker Compose, add this to the pasteguard service and recreate the container with docker compose up -d --force-recreate pasteguard:
Images built from the current Dockerfile set this automatically. GLiNER detection remains enabled. The build also checks real detector startup and inference in the offline runtime as the same nonroot user that runs the service.

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.

Detector Models

The image includes urchade/gliner_multi_pii-v1 and loads it offline by default. Custom Hugging Face and local models are documented under GLiNER.

Environment Variables

Next Steps

Quickstart

Make your first request

Configuration

Customize PasteGuard