How it works
Andorg sits between your app and your AI provider. You change one line — the base URL — and send two keys: your Andorg key and your own provider key. Every request is masked on our machine, forwarded on your key, and restored on the way back.
- 1. Scan, on our machine. Hardcoded rules (cards, IBANs, phones, emails, IDs) plus a local AI model (names, companies, locations) find every private detail. No cloud model ever sees your raw text.
- 2. Mask. Each real value becomes a stand-in like
[PERSON_1]. The pairs list lives in memory only. - 3. Forward. The clean text goes to your provider, on your key, at your cost. We never resell tokens.
- 4. Restore & forget. The answer returns; we swap the real values back; the pairs list and your provider key are destroyed. We keep nothing.
from openai import OpenAI
client = OpenAI(
base_url="https://api.andorg.com/v1/openai",
api_key="ak_live_your_andorg_key",
default_headers={"X-Provider-Key": "sk-your-openai-key"},
)
client.chat.completions.create(model="gpt-4o", messages=[...])