Quick Start
Deploy AI Privacy Gateway in 5 minutes.
Docker Deploy (Recommended)
docker run -d \
--name ai-privacy-gw \
-p 9999:9999 \
-v ./vault_data:/app/vault_data \
-e TARGET_LLM=https://api.openai.com \
ghcr.io/gunxueqiu6/ai-privacy-gateway:lite
Or use Docker Compose:
docker-compose up -d
Verify:
curl http://localhost:9999/health
# {"status":"healthy"}
Windows Deploy
- Download PrivacyGateway.exe
- Double-click to run
- Visit
http://localhost:9999/health
Configure AI Client
Change your AI client’s API URL to http://localhost:9999:
Cursor
Settings → API Key → Change Base URL to http://localhost:9999
Code Call
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:9999/v1",
api_key="your-api-key"
)
response = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "My phone is 13812345678"}]
)
# Gateway automatically replaces 13812345678 with [VAULT_PHONE_xxx]
# AI receives: "My phone is [VAULT_PHONE_xxx]"
# Gateway restores the original value before returning the response