Skip to main content
PasteGuard

AI gets the context. Not your private data.

PasteGuard masks names, emails, secrets, and customer data before they reach ChatGPT, Claude, AI APIs, or coding agents.

Providers see placeholders, not originals
AI Input · What the model receives

Please help me respond to the support ticket from

Name
Email
Key

regarding the 401 authentication error they reported.

Try it!

How it works

You keep the originals. AI providers receive placeholders.

1

You type or paste

Use ChatGPT, Claude, your own app, Codex, or Claude Code normally.

2

PasteGuard hides it

Names, emails, API keys, and other private data become [[PERSON_1]], [[EMAIL_1]], etc.

3

AI responds

The model still understands the task. It does not need the original values.

4

You see originals

Where supported, PasteGuard restores the originals in the response.

PasteGuard
Live
Requests 6 total
Masked 100% 6 of 6
Scan Time 97 ms avg
Rate 6 /hour
Time Model Lang PII Detected Secrets
16:21:19 gpt-5.2 EN PERSONEMAIL API_KEY
Masked prompt

Please help me respond to the support ticket from [[PERSON_1]] at [[EMAIL_1]] regarding the [[API_KEY_1]] authentication error.

16:19:06 gpt-5.2 IT EMAILPERSON PASSWORD
16:18:55 gpt-5.2 ES EMAILPERSONPHONE
16:18:45 gpt-5.2 FR EMAILPERSON JWT

Protect every way your team uses AI

One privacy layer for Browser Chat, Apps & APIs, and Coding Agents.

Browser Chat

Beta

Use ChatGPT, Claude, and Gemini for real work without pasting raw names, emails, or confidential details into the provider.

ChatGPT Claude Gemini

Browser extension

Experimental builds for ChatGPT, Claude, and Gemini.

Install browser extension Works before text reaches the AI provider.
Preview
PasteGuard Auto + Manual
Auto-masking active
12
Today
847
Total
email 5
person 4
phone 3
K to mask selected text
Docs GitHub
v1.0.0

Apps & APIs

Put PasteGuard in front of your app or SDK so private data is masked before OpenAI, Anthropic, or another provider sees it.

Your app SDKs OpenAI API Anthropic API HTTP APIs
Your app or SDK
PasteGuard
[[EMAIL_1]] sarah@acme.com
OpenAI, Anthropic, ...

Coding Agents

Use Codex, Claude Code, Cursor, or other coding agents without sending API keys, passwords, or connection strings from your project.

Codex Claude Code Cursor Windsurf
.env.local
PROJECT
src
config
.env.local
package.json
1 # Database
2 DATABASE_URL=postgres://localhost:5432/app
3
4 # API Keys
5 OPENAI_API_KEY=[[API_KEY_SK_1]] masked
6 ANTHROPIC_API_KEY=[[API_KEY_SK_2]] masked
7
8 # AWS Credentials
9 AWS_ACCESS_KEY_ID=[[API_KEY_AWS_1]] masked
10 AWS_REGION=us-east-1
PasteGuard Active
3 secrets masked ENV UTF-8

For teams that cannot send raw data to AI

PasteGuard is for teams that cannot paste raw customer data, client files, or secrets into ChatGPT, Claude, or model APIs.

Run it yourself

Use it locally or self-host it in your own environment.

No telemetry

Open-source, auditable, and built without tracking.

Fits stricter AI policies

Useful for GDPR, DORA, client confidentiality, and internal AI policies.

Compliance boundary

PasteGuard helps reduce what reaches AI providers. Your legal and security controls still decide compliance.

Protected automatically

Detects over 30 types of private data and secrets in any language.

Names Emails Phone numbers Credit cards IBANs EU VAT numbers IP addresses Locations API keys SSH keys JWT tokens Passwords Connection strings Private keys Bearer tokens

Quick start

Get up and running in under a minute.

Install with Docker

Recommended
$ docker run --rm -p 3000:3000 ghcr.io/sgasser/pasteguard:latest

Then open localhost:3000

OpenAI Compatible

Apps, SDKs, agents

http://localhost:3000/openai/v1

Set as OPENAI_BASE_URL

Anthropic

Claude, Claude Code

http://localhost:3000/anthropic

Set as ANTHROPIC_BASE_URL

Beta Browser extension for ChatGPT, Claude & Gemini
Install browser extension

Open source & self-hosted

Fully self-hosted, auditable, and telemetry-free under the Apache 2.0 license.

Star on GitHub