Awesome Infra for AI › LLM Gateways & Proxies

packyme/privacy-filter

⭐ 339 Go repository created 2026-05-29

Privacy Filter is a high-performance, pure Go solution designed to safeguard sensitive user data (PII and secrets) by redacting it from text before it interacts with Large Language Models (LLMs). It operates as a privacy gateway, supporting deployment as a core Go package for direct integration into gateways, an HTTP service with a REST API, or a gRPC service using standard interfaces. The system employs a dual-layer detection mechanism: structured PII (emails, phone numbers, national IDs, bank cards, IP addresses) is identified using regex patterns, while secrets and credentials (API keys, tokens, private keys, high-entropy strings) are detected using a robust gitleaks ruleset, contextual regex, and Shannon-entropy fallback. Detected sensitive information is replaced with irreversible, typed placeholders. A key design principle is speed and efficiency; it's implemented without external models, GPUs, or CGO, ensuring millisecond-level latency across text lengths, even in production environments. It prioritizes the identification of high-risk identity data and avoids slower, model-based methods like NER for person/place/organization recognition. This tool is crucial for companies handling sensitive data and aiming for compliance by preventing unintended data exposure to LLMs.

https://github.com/packyme/privacy-filter

llm-privacydata-redactionpii-detectionsecrets-detectionllm-gatewaygoprivacy-filterai-securitydata-governanceinference-middleware

Also in LLM Gateways & Proxies

diegosouzapw/OmniRoute

OmniRoute is a free AI gateway that unifies access to over 170 AI providers, offering token compression, auto-fallback, and aggregating free tiers to provide billions of free tokens monthly.

Mintplex-Labs/anything-llm

AnythingLLM is an all-in-one local-first AI application for chatting with documents, managing AI agents, and integrating with various LLMs and vector databases, offering dynamic model routing and m...

BerriAI/litellm

LiteLLM is an open-source AI Gateway and Python SDK providing a unified interface to over 100 LLM providers, with features like cost tracking, guardrails, load balancing, and observability.

QuantumNous/new-api

new-api is a unified LLM gateway and AI asset management system that enables aggregation, distribution, and cross-conversion of various LLMs into OpenAI, Claude, or Gemini compatible formats, offer...

Kong/kong

Kong Gateway is a cloud-native API and AI gateway offering high performance, extensibility via plugins, and advanced AI traffic capabilities including multi-LLM support, semantic security, and cach...

decolua/9router

9Router is an AI router and token saver that connects various AI coding tools to over 40 AI providers, optimizing usage with auto-fallback, quota tracking, and token compression.

apache/apisix

Apache APISIX is a dynamic, real-time, high-performance API Gateway that can also function as an AI Gateway, providing AI proxying, load balancing for LLMs, and robust security for AI agents.

lidge-jun/opencodex

OpenCodex is a universal local proxy that enables OpenAI Codex, Claude Code, and Grok Build to utilize any LLM provider, offering advanced model routing, account pooling, and API key management.