Esta página se muestra en inglés. Una traducción al español está en curso.
ScriptsMay 13, 2026·2 min de lectura

pasteguard — Local Privacy Proxy for AI Tools

PasteGuard is an open-source local proxy that masks API keys, emails, and PII before requests reach OpenAI/Anthropic. Start via Docker.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Stage only · 29/100Stage only
Superficie agent
Cualquier agent MCP/CLI
Tipo
Script
Instalación
Docker
Confianza
Confianza: Established
Entrada
docker run --rm -p 3000:3000 ghcr.io/sgasser/pasteguard:en
Comando CLI universal
npx tokrepo install 332ca033-ee02-5115-a344-ab9d8fa85be3
Introducción

PasteGuard is an open-source local proxy that masks API keys, emails, and PII before requests reach OpenAI/Anthropic. Start via Docker.

Best for: Teams using AI coding tools who must avoid leaking secrets in prompts

Works with: Docker, OpenAI SDK base_url override, Claude Code via ANTHROPIC_BASE_URL

Setup time: 3-8 minutes

Key facts (verified)

  • GitHub: 628 stars · 26 forks · pushed 2026-05-13.
  • License: Apache-2.0 · owner avatar + repo URL verified via GitHub API.
  • README-verified entrypoint: docker run --rm -p 3000:3000 ghcr.io/sgasser/pasteguard:en.

Main

  • Treat PasteGuard as a drop-in reverse proxy: you change the base URL once, and it masks secrets/PII before the request leaves your machine.

  • Use it both for chat and coding tools: the proxy path supports OpenAI-style /v1 routing and a dedicated /anthropic endpoint.

  • If you need higher privacy, enable the project’s “route mode” idea: sensitive requests can be routed to a local model while non-sensitive traffic goes to a hosted provider (see docs).

Source-backed notes

  • README Quick Start runs a local proxy container on port 3000 and shows base URLs like http://localhost:3000/openai/v1.
  • README claims it detects 30+ types of sensitive data across 24 languages and keeps data on-device.
  • README includes a Claude Code example using ANTHROPIC_BASE_URL=http://localhost:3000/anthropic.

FAQ

  • Does it require code changes?: Usually no — you swap the provider base URL to the localhost proxy and keep the rest the same.
  • What does it mask?: README highlights names, emails, and API keys; masking behavior depends on its detection engine and config.
  • Can I use it with Claude Code?: Yes — README shows routing Anthropic requests via ANTHROPIC_BASE_URL to the local proxy.
🙏

Fuente y agradecimientos

Source: https://github.com/sgasser/pasteguard > License: Apache-2.0 > GitHub stars: 628 · forks: 26

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados