🔒 Runs 100% locally via the real apii engine on 127.0.0.1 — no outbound calls. Type anything; nothing leaves your machine.

apii — keep Arabic & GCC PII off the LLM

Names, IBANs, national IDs, phones, emails get swapped for reversible tokens before anything reaches Claude / GPT — and restored locally, just for you.

pip install apii GitHub ↗ PyPI ↗

1 · Pick a sample (or edit / paste your own)

2 · Two boundaries

What the LLM receives — only tokens

        
What you see — real values, on your machine

        

3 · The vault — token ↔ real value, encrypted & local

Token (the LLM sees this)TypeReal value (stays with you)

4 · Round trip — restore with the real engine

The model only ever knew tokens. Edit this reply — mangle a token's hex, reorder them, add prose — then restore. Restoration runs in the real apii engine (exact match + fuzzy fallback for tokens an LLM garbled).

Model reply — tokens, editable
Restored locally — real values, on your machine