Skip to content

PasteGuard

Self-hosted proxy that masks PII and secrets before prompts reach AI providers

Permissive (OSI) · Apache-2.0 AI-native

Listed by , founder & editor

77

Health

Thriving

Overview

Stars

840

Last commit

yesterday

Nov 2026

Repository age

11 months

since Jan 2026

Latest version

v0.9.9

Nov 2026

Contributors

–

2 active in 90 days

Releases

25

last 12 months

Language

TypeScript

PasteGuard sits between you and AI providers and replaces personal data and secrets with placeholders before a request leaves your machine. The provider sees placeholders. You keep the originals, and supported placeholders are restored in the response.

It works in three places. A browser extension, still experimental, covers ChatGPT, Claude and Gemini. For apps and SDKs, you change one base URL, such as the OpenAI or Anthropic endpoint, to point at PasteGuard. Coding agents including Codex, Claude Code, Cursor, Windsurf and Copilot can be routed through it so logs, stack traces and config files are masked.

Two modes are offered. Mask mode swaps sensitive values for placeholders. Route mode sends requests that contain sensitive data to a local model such as Ollama, vLLM or llama.cpp, and other requests can still go to a cloud provider. It is written in TypeScript, runs from a Docker image and is licensed Apache-2.0. It is not a compliance program by itself.

Who it's for

Developers using coding agents on production code

Logs, configs and stack traces get masked before they leave your machine.

Skip if: Your agent tooling cannot be pointed at a custom base URL.

Teams building internal AI apps with customer data

One base URL change adds masking in front of OpenAI or Anthropic calls.

Skip if: You already run only local models and never send data to cloud providers.

Support or legal staff pasting documents into chatbots

The browser extension masks names and details in ChatGPT, Claude and Gemini.

Skip if: You need a mature, non-experimental extension.

The problem it solves

Sending customer records, credentials or logs to cloud AI services exposes private data, and redacting it by hand is slow. PasteGuard masks it automatically so you can still use hosted models.

Strengths

  • Masks PII and secrets, then restores supported placeholders in responses
  • Covers browser chat, API apps and coding agents
  • Route mode can send sensitive requests to a local LLM like Ollama
  • Single Docker command to run locally
  • Apache-2.0 license, 25 releases in the last year

Trade-offs

  • The browser extension is labeled experimental
  • Only 1 contributor in the last 90 days
  • Does not replace a legal or compliance program
  • Version 0.9.x, so expect change before a stable release

Self-host PasteGuard

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Quick start

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

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is PasteGuard free?

Yes. It is open source under Apache-2.0.

Can I self-host it?

Yes. Run the Docker image locally or in your own infrastructure.

Which AI tools does it work with?

ChatGPT, Claude and Gemini in the browser, OpenAI and Anthropic APIs, Codex CLI, and coding agents like Cursor and Windsurf.

Can it use a local model?

Yes. Route mode sends requests with sensitive data to Ollama, vLLM or llama.cpp.

Similar tools in AI security and guardrails

agent-safe-pipeline

AI security and guardrails

Open-source gateway that authorizes AI agent actions before they run

661 57 yesterday Thriving Apache-2.0

Adrian

AI security and guardrails

Runtime security monitor that checks AI agent actions and reasoning for attacks

599 97 34 days ago Slowing Apache-2.0

aifw

AI security and guardrails

415 3 30 days ago Slowing Unknown

gateway

AI security and guardrails

Self-hosted proxy that filters prompts and responses between your app and LLM APIs

181 20 17 months ago Dormant BUSL-1.1

shellward

AI security and guardrails

Scanner and runtime guard that checks AI projects against Chinese compliance rules

140 23 2 months ago Active Apache-2.0

jev-as-a-judge

AI security and guardrails

115 18 2 months ago Dormant Unknown