{"id":39822141,"url":"https://github.com/sgasser/pasteguard","last_synced_at":"2026-06-04T15:00:30.229Z","repository":{"id":331663564,"uuid":"1130305975","full_name":"sgasser/pasteguard","owner":"sgasser","description":"AI gets the context. Not your secrets. Open-source privacy proxy for LLMs.","archived":false,"fork":false,"pushed_at":"2026-06-02T15:30:30.000Z","size":5687,"stargazers_count":646,"open_issues_count":3,"forks_count":27,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-06-02T17:17:09.512Z","etag":null,"topics":["anthropic","browser-extension","chatgpt","claude","data-protection","llm","open-webui","openai","pii","presidio","privacy","secrets","security"],"latest_commit_sha":null,"homepage":"https://pasteguard.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgasser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-08T10:13:56.000Z","updated_at":"2026-06-02T15:33:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sgasser/pasteguard","commit_stats":null,"previous_names":["sgasser/pasteguard"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/sgasser/pasteguard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgasser%2Fpasteguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgasser%2Fpasteguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgasser%2Fpasteguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgasser%2Fpasteguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgasser","download_url":"https://codeload.github.com/sgasser/pasteguard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgasser%2Fpasteguard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33910137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anthropic","browser-extension","chatgpt","claude","data-protection","llm","open-webui","openai","pii","presidio","privacy","secrets","security"],"created_at":"2026-01-18T12:58:49.975Z","updated_at":"2026-06-04T15:00:30.209Z","avatar_url":"https://github.com/sgasser.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Artificial Intelligence","NLP"],"sub_categories":["Android Launcher"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"assets/wordmark-dark.svg\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"assets/wordmark-light.svg\"\u003e\n    \u003cimg src=\"assets/wordmark-light.svg\" width=\"220\" height=\"44\" alt=\"PasteGuard\"\u003e\n  \u003c/picture\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/sgasser/pasteguard/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/sgasser/pasteguard/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/sgasser/pasteguard/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/sgasser/pasteguard\" alt=\"Release\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eAI gets the context. Not your secrets.\u003c/strong\u003e\u003cbr\u003e\n  Automatically hides names, emails, and API keys before you send prompts to AI.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#quick-start\"\u003e\u003cstrong\u003eQuick Start\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#chat\"\u003e\u003cstrong\u003eChat\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#coding-tools\"\u003e\u003cstrong\u003eCoding Tools\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"https://pasteguard.com/docs\"\u003e\u003cstrong\u003eDocumentation\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr/\u003e\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"assets/comparison-dark.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"assets/comparison.png\"\u003e\n  \u003cimg src=\"assets/comparison.png\" width=\"100%\" alt=\"PasteGuard — Without vs. With: masks names, emails, and API keys before they reach AI\"\u003e\n\u003c/picture\u003e\n\n\u003cp align=\"center\"\u003e\n  Detects 30+ types of sensitive data across 24 languages.\u003cbr\u003e\n  Your data never leaves your machine.\n\u003c/p\u003e\n\n## Works Everywhere\n\n**[Chat](https://pasteguard.com/docs/use-cases/chat)** — Masks PII and secrets when you paste into ChatGPT, Claude, and Gemini. You see originals, AI sees placeholders.\n\n**[Apps](https://pasteguard.com/docs/use-cases/apps)** — Open WebUI, LibreChat, or any self-hosted AI setup. Optionally routes sensitive requests to a local model.\n\n**[Coding Tools](https://pasteguard.com/docs/use-cases/coding-tools)** — Cursor, Claude Code, Copilot, Windsurf — your codebase context flows to the provider. PasteGuard masks secrets and PII before they leave.\n\n**[API Integration](https://pasteguard.com/docs/use-cases/api-integration)** — Sits between your code and OpenAI-compatible or Anthropic APIs. Change one URL, your users' data stays protected.\n\n## Quick Start\n\nRun PasteGuard as a local proxy:\n\n```bash\ndocker run --rm -p 3000:3000 ghcr.io/sgasser/pasteguard:en\n```\n\nPoint your tools or app to PasteGuard instead of the provider:\n\n| Target | PasteGuard URL | Original URL |\n|----------|----------------|--------------|\n| OpenAI | `http://localhost:3000/openai/v1` | `https://api.openai.com/v1` |\n| Anthropic | `http://localhost:3000/anthropic` | `https://api.anthropic.com` |\n| Codex CLI | `http://localhost:3000/codex` | `https://chatgpt.com/backend-api/codex` |\n\n```python\n# One line to protect your data\nclient = OpenAI(base_url=\"http://localhost:3000/openai/v1\")\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eEuropean Languages\u003c/strong\u003e\u003c/summary\u003e\n\nFor German, Spanish, French, Italian, Dutch, Polish, Portuguese, and Romanian:\n\n```bash\ndocker run --rm -p 3000:3000 ghcr.io/sgasser/pasteguard:eu\n```\n\nFor custom config, persistent logs, or other languages: **[Read the docs →](https://pasteguard.com/docs/installation)**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRoute Mode\u003c/strong\u003e\u003c/summary\u003e\n\nRoute 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.\n\n**[Route Mode docs →](https://pasteguard.com/docs/concepts/route-mode)**\n\n\u003c/details\u003e\n\n## Chat\n\nOpen-source browser extension for ChatGPT, Claude, and Gemini.\n\n- Paste customer data → masked before it reaches the AI\n- AI responds with placeholders → you see the originals\n- Works with the same detection engine as the proxy\n\nCurrently in beta. Apache 2.0.\n\n**[Join the Beta →](https://tally.so/r/J9pNLr)** · **[Chat docs →](https://pasteguard.com/docs/use-cases/chat)**\n\n## Coding Tools\n\nProtect your codebase context and secrets when using AI coding assistants.\n\n**Claude Code:**\n\n```bash\nANTHROPIC_BASE_URL=http://localhost:3000/anthropic claude\n```\n\n**Cursor:** Settings → Models → Enable \"Override OpenAI Base URL\" → `http://localhost:3000/openai/v1`\n\n**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.\n\n**[Coding Tools docs →](https://pasteguard.com/docs/use-cases/coding-tools)**\n\n## Dashboard\n\nEvery request is logged with masking details. See what was detected, what was masked, and what reached the provider.\n\n\u003cimg src=\"assets/dashboard.png\" width=\"100%\" alt=\"PasteGuard Dashboard\"\u003e\n\n[localhost:3000/dashboard](http://localhost:3000/dashboard)\n\n## What it catches\n\n**Personal data** — Names, emails, phone numbers, credit cards, IBANs, IP addresses, locations. Powered by [Microsoft Presidio](https://microsoft.github.io/presidio/). 24 languages.\n\n**Secrets** — API keys (OpenAI, Anthropic, Stripe, AWS, GitHub), SSH and PEM private keys, JWT tokens, bearer tokens, passwords, connection strings.\n\nBoth detected and masked in real time, including streaming responses.\n\n## Tech Stack\n\n[Bun](https://bun.sh) · [Hono](https://hono.dev) · [Microsoft Presidio](https://microsoft.github.io/presidio/) · SQLite\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on how to contribute.\n\n## License\n\n[Apache 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgasser%2Fpasteguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgasser%2Fpasteguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgasser%2Fpasteguard/lists"}