Quick Start

Deploy AI Privacy Gateway in 5 minutes.

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

  1. Download PrivacyGateway.exe
  2. Double-click to run
  3. 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

Next Steps