Status: [UNTESTED] Endpoints found: http://localhost:8080/v1/chat/completions http://localhost:8080/v1/messages Source: https://github.com/Cristofervaltz/AegisProxy
AegisProxy Banner

🛡️ AegisProxy

Enterprise-grade LLM Security Gateway & PII Sanitizer

[![Go Reference](https://pkg.go.dev/badge/github.com/Cristofervaltz/AegisProxy.svg)](https://pkg.go.dev/github.com/Cristofervaltz/AegisProxy) [![Build Status](https://github.com/Cristofervaltz/AegisProxy/actions/workflows/ci.yml/badge.svg)](https://github.com/Cristofervaltz/AegisProxy/actions) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

Protect your sensitive corporate data before it reaches public LLMs.

--- ## 🌟 Overview **AegisProxy** is a high-performance, drop-in proxy server that sits between your applications and LLM providers (like OpenAI, Anthropic, and Google Gemini). It intercepts API requests, automatically detects and masks Personally Identifiable Information (PII) using Machine Learning (ONNX) and regular expressions, and injects secure API keys from HashiCorp Vault. When the LLM responds, AegisProxy flawlessly restores the original data before returning it to the client. The LLM never sees your secrets, and your application never knows it was masked. ## ✨ Features - **🌐 Multi-Provider Support**: Seamlessly proxy requests to **OpenAI**, **Anthropic (Claude 3)**, and **Google (Gemini)**. - **🧠 Context-Aware Masking (ML)**: Uses on-device ONNX models (`distilbert-ner`) to detect context-based PII (Names, Organizations, Addresses) that regex would miss. - **⚡ High-Performance Rate Limiting**: Protect your APIs from abuse with token-bucket rate limiting backed by Redis or In-Memory stores. - **🔐 Secure Key Storage**: Native integration with **HashiCorp Vault** to dynamically inject provider API keys. Clients no longer need to handle secrets. - **📊 Real-time Audit Logging**: Tracks token usage, latency, IP addresses, and masked PII counts in structured