推荐

Docker

Linux / macOS / Windows — 一键部署

docker run -d \
  -p 9999:9999 \
  -v ./vault_data:/app/vault_data \
  ghcr.io/gunxueqiu6/ai-privacy-gateway:lite
部署文档
Windows

Windows

单文件 .exe · Windows 10 / 11

前往下载
macOS

macOS

单文件可执行 · macOS 12+

前往下载
源码

Python 源码

pip 安装 · Python 3.11+

git clone https://github.com/gunxueqiu6/ai-privacy-gateway
cd ai-privacy-gateway
pip install -r requirements.txt
python main.py
GitHub

1. 验证运行

打开浏览器访问 http://localhost:9999/health,看到 {"status":"healthy"} 即成功。

2. 配置 AI 客户端

将 API 地址从 https://api.openai.com 改为 http://localhost:9999,API Key 不变。

3. 查看管理后台

访问 http://localhost:9999/admin 查看拦截统计和脱敏日志。