claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// Developer Tools

pasteguard

AI gets the context. Not your secrets. Open-source privacy proxy for LLMs.

// Developer Tools[ cli ][ api ][ web ][ claude ]#claude#anthropic#browser-extension#chatgpt#data-protection#gliner#llm#open-webui#devtoolsApache-2.0$open-sourceupdated 15 days ago
Actively maintained
100/100
last commit 1 day ago
last release 1 day ago
releases 22
open issues 0
// install
git clone https://github.com/sgasser/pasteguard

PasteGuard

AI gets the context. Not your secrets.
Automatically hides names, emails, and API keys before you send prompts to AI.

Quick Start · Chat · Coding Tools · Documentation


PasteGuard — Without vs. With: masks names, emails, and API keys before they reach AI

Detects personal data and secrets in many languages.
Your data never leaves your machine.

Works Everywhere

Chat — Masks PII and secrets when you paste into ChatGPT, Claude, and Gemini. You see originals, AI sees placeholders.

Apps — Open WebUI, LibreChat, or any self-hosted AI setup. Optionally routes sensitive requests to a local model.

Coding Tools — Cursor, Claude Code, Copilot, Windsurf — your codebase context flows to the provider. PasteGuard masks secrets and PII before they leave.

API Integration — Sits between your code and OpenAI-compatible or Anthropic APIs. Change one URL, your users' data stays protected.

Quick Start

Run PasteGuard as a local proxy:

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

Open localhost:3000 for the dashboard.

Point your tools or app to PasteGuard instead of the provider:

TargetPasteGuard URLOriginal URL
OpenAIhttp://localhost:3000/openai/v1https://api.openai.com/v1
Anthropichttp://localhost:3000/anthropichttps://api.anthropic.com
Codex CLIhttp://localhost:3000/codexhttps://chatgpt.com/backend-api/codex
# One line to protect your data
client = OpenAI(base_url="http://localhost:3000/openai/v1")

Detection is multilingual out of the box — no per-language images or setup. For custom config or persistent logs: Read the docs →

Route Mode

Route Mode sends requests containing sensitive data to a local LLM (Ollama, vLLM, llama.cpp). Everything else goes to the configured cloud provider. Sensitive data stays on your network.

Route Mode docs →

Chat

Open-source browser extension for ChatGPT, Claude, and Gemini.

  • Paste customer data → masked before it reaches the AI
  • AI responds with placeholders → you see the originals
  • Works with the same detection engine as the proxy

Currently in beta. Apache 2.0.

Join the Beta → · Chat docs →

Coding Tools

Protect your codebase context and secrets when using AI coding assistants.

Claude Code:

ANTHROPIC_BASE_URL=http://localhost:3000/anthropic claude

Cursor: Settings → Models → Enable "Override OpenAI Base URL" → http://localhost:3000/openai/v1

Codex CLI: Configure a custom provider with base_url = "http://127.0.0.1:3000/codex". See the coding tools docs for the full snippet.

Coding Tools docs →

Dashboard

Every request is logged with masking details. See what was detected, what was masked, and what reached the provider.

PasteGuard Dashboard

localhost:3000

What it catches

Personal data — Names, locations, emails, phone numbers, credit cards, IBANs, IP addresses, and EU VAT numbers. Works in many languages.

Secrets — API keys (OpenAI, Anthropic, Stripe, AWS, GitHub), SSH and PEM private keys, JWT tokens, bearer tokens, passwords, connection strings.

Both detected and masked in real time, including streaming responses.

How detection works

Detection runs as a separate service that PasteGuard calls over HTTP, so you can run it wherever you like. It mixes exact checks with checksums (IBANs, credit cards, emails, phones, IPs) and a small AI model (GLiNER) for names and places. It works the same in any language. Phone numbers are international-only by default; add phone_regions if you need local formats.

Code, Docker image, and tests are in detector/.

Tech Stack

Bun · Hono · GLiNER + python-stdnum (detector/) · SQLite

Contributing

See CONTRIBUTING.md for guidelines on how to contribute.

License

Apache 2.0

// compatibility

Platformscli, api, web
Operating systems
AI compatibilityclaude
LicenseApache-2.0
Pricingopen-source
LanguageTypeScript

// faq

What is pasteguard?

AI gets the context. Not your secrets. Open-source privacy proxy for LLMs.. It is open-source on GitHub.

Is pasteguard free to use?

pasteguard is open-source under the Apache-2.0 license, so it is free to use.

What category does pasteguard belong to?

pasteguard is listed under security in the Claudeers registry of Claude-compatible tools.

0 views
665 stars
unclaimed
updated 15 days ago

// embed badge

pasteguard on Claudeers
[![Claudeers](https://claudeers.com/api/badge/pasteguard.svg)](https://claudeers.com/pasteguard)

// retro hit counter

pasteguard hit counter
[![Hits](https://claudeers.com/api/counter/pasteguard.svg)](https://claudeers.com/pasteguard)

// reviews

// guestbook

0/500

// related in Developer Tools

🔓

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…

// devtoolsaffaan-m/JavaScript225,699MIT[ claude ]
🔓

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

// devtoolsgarrytan/TypeScript119,234MIT[ claude ]
🔓

🙌 OpenHands: AI-Driven Development

// devtoolsOpenHands/Python79,324NOASSERTION[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// devtoolssafishamsi/Python77,145MIT[ claude ]
→ see how pasteguard connects across the ecosystem