Faasera Chat Compliance Proxy is a secure, pluggable reverse proxy that redacts sensitive information (PII, PHI, PCI, etc.) from chat completion requests before forwarding them to OpenAI or any LLM endpoint. It uses Faasera Profiler to perform inline masking for compliance and privacy protection.
/v1/chat/completions./api/profile-mask/<policyName>).git clone https://github.com/faasera/faasera-openai-proxy.git
cd faasera-openai-proxy
.env file# TLS configuration
FAASERA_PROXY_PORT=8080
FAASERA_CERT_FILE=certs/cert.pem
FAASERA_KEY_FILE=certs/key.pem
# Profiler
FAASERA_PROFILER_ENDPOINT=https://localhost:8000
# Target LLM
DEFAULT_TARGET=openai
OPENAI_API_KEY=sk-xxx
CLAUDE_API_KEY=sk-ant-xxx
make cert
make run
This starts an HTTPS server on https://localhost:8080.
curl https://localhost:8080/v1/chat/completions \
-k \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "My SSN is 123-45-6789 and my name is John Smith"}]
}'
John Smith, 123-45-6789) are redacted.The proxy can forward redacted requests to any of these:
| Provider | Env Value | Path |
|---|---|---|
| OpenAI | openai |
/v1/chat/completions |
| Claude | claude |
/v1/messages |
| Gemini | gemini |
/v1beta/models/... |
| Local | local |
/chat |
Change the target by setting:
DEFAULT_TARGET=claude
faasera-openai-proxy/
βββ main.py # Entry point (TLS-enabled server)
βββ Makefile # Run and cert helpers
βββ requirements.txt # Minimal dependencies
βββ config/
β βββ env.example # Sample env vars
βββ certs/
β βββ cert.pem, key.pem # TLS certificates (auto-generated)
βββ docs/
β βββ README.md # This file
βββ scripts/
β βββ generate_cert.sh # Self-signed cert generator
βββ faasera_openai_proxy/
β βββ __init__.py
β βββ proxy.py # Core proxy logic (mask + forward)
β βββ targets.py # LLM target router
βββ tests/
βββ __init__.py
βββ test_proxy.py # Basic tests
MIT. Includes third-party dependencies under their respective licenses.
Faasera is a real-time data compliance platform that automates data profiling, masking, validation, and privacy controls across modern AI and data pipelines.
| Resource | Link |
|---|---|
| π Website | faasera.ai |
| π§ Support | support.faasera.ai |
| π₯ YouTube | youtube.com/@FaaseraAI |
| πΌ LinkedIn | linkedin.com/company/faasera |
| π Facebook | facebook.com/faasera.ai |