SafeRelay CLI
Local DLP for AI-era workflows — 8 shields, 69 pattern types incl. Gov/CUI + exfiltration.
SafeRelay redacts sensitive data in your pipelines before it reaches AI tools, log aggregators, or external services. Redaction runs locally — your content is never sent to SafeRelay servers. Same engine as SafeRelay Browser Relay and Desktop.
BEFORE AFTER (SafeRelay)
───────────────────────────────────────── ─────────────────────────────────────────
OPENAI_API_KEY=sk-proj-abc...xyz OPENAI_API_KEY=[OPENAI_KEY_1]
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE AWS_ACCESS_KEY_ID=[AWS_KEY_1]
Authorization: Bearer eyJhbGciOiJIUzI1... Authorization: Bearer [BEARER_1]
Server: 10.45.2.115 Server: [IP_1]
SSN: 234-56-7890 SSN: [US_SSN_1]
CONTRACT: W912DR-24-C-0001 CONTRACT: [DOD_CONTRACT_1]
Installation
pip install saferelay
# With Redis support (distributed vault)
pip install saferelay[redis]
Requires Python 3.9+. No external dependencies for the base install.
Usage
# Free tier — mask IPs and API keys
cat /var/log/app.log | saferelay --mask
# Pro tier — full engine
docker logs my-app | saferelay --pro --mask > clean.log
cat ai_response.txt | saferelay --unmask
# Toggle individual shields off
cat data.txt | saferelay --pro --no-gov-cui --no-exfil
# Activate Pro
saferelay --unlock "YOUR-LICENSE-KEY"
# Status — shows active shields
saferelay --status --pro
Docker
docker pull logicgridai/saferelay:latest
cat /var/log/app.log | docker run --rm -i logicgridai/saferelay --mask
Kubernetes sidecar
containers:
- name: saferelay
image: logicgridai/saferelay:latest
env:
- name: SAFERELAY_LICENSE_KEY
valueFrom:
secretKeyRef:
name: saferelay-secret
key: license-key
Exfiltration Shield (bulk-export protection)
Beyond per-value redaction, SafeRelay blocks bulk exports — a sign of a dataset dump
rather than a snippet. Thresholds: ≥3 SSNs, ≥5 Luhn-valid credit cards, or ≥20 email
addresses in one input. When tripped, the CLI exits with a hard block (exit code 2) and
relays nothing. Disable with --no-exfil.
What gets redacted (8 shields, 69 types)
Free tier covers core developer secrets (devsec). Pro unlocks all 8 shields. National-ID patterns are checksum-validated (Luhn, mod-97 IBAN, Verhoeff Aadhaar, CPF, TFN, UK VAT) to minimize false positives.
| Shield | Covers | Free | Pro |
|---|---|---|---|
| DevSec | IPv4, API keys (OpenAI/Anthropic/AWS/GitHub/Slack/Google/Stripe/Docker/npm/Twilio/SendGrid/Gemini), bearer tokens, connection strings, .env values, crypto (BTC/ETH/SOL/WIF/seed phrases), PEM keys, MAC addresses | ✓ | ✓ |
| FinTech & PII | Credit cards (Luhn), US SSN, email, EU IBAN, UK NINO, Nigeria NIN/BVN/bank/phone, Canada SIN, India Aadhaar/PAN, South Africa ID, Australia TFN, Brazil CPF, Singapore NRIC, Germany Tax ID, US Green Card | — | ✓ |
| Corporate | EIN, DUNS, EU VAT, GB VAT | — | ✓ |
| Mission / Civic | GPS coordinates, UNHCR IDs, donor/beneficiary case IDs | — | ✓ |
| Gov / CUI | CUI markings & banners, DoD contract numbers (PIID), CAGE codes, SAM.gov UEI, DoD ID/EDIPI, FOUO/NOFORN/REL TO/DIST statements, ITAR/EAR99/ECCN export controls, .gov/.mil emails, FedRAMP IDs | — | ✓ |
| Exfiltration | Bulk-export threshold block (≥3 SSN / ≥5 CC / ≥20 email) | — | ✓ |
| Custom Terms | Your own codenames, hostnames, project IDs (--add-term) |
— | ✓ |
Browser extension & apps
| Surface | Link |
|---|---|
| Chrome | Chrome Web Store |
| Firefox | Pending Mozilla review |
| Desktop (Windows) | saferelay.ai |
Pricing
Browser extension is free (Chrome; Firefox pending). Desktop app is free to download; Pro unlocks the heavier shields. See saferelay.ai for current plans.
| Plan | Price |
|---|---|
| Free | $0 — browser & desktop |
| Browser Relay Pro | $6.99/mo or $69/yr |
| Desktop Pro | $9.99/mo or $99/yr |
| SafeRelay Suite (both) | $12.99/mo or $129/yr |
| Founder Lifetime (Browser + Desktop) | $99 one-time — first 100 founders |
Privacy
Redaction runs locally — your clipboard and log content is never sent to SafeRelay servers. License activation sends only a license key and an anonymous install ID to the license server — no log or clipboard data, ever. Pro license verification is fully offline (Ed25519), so it works air-gapped.
Full privacy policy: saferelay.ai/privacy
Built by LogicGrid AI, LLC — support@logicgrid.ai
Metadata
Release files for saferelay 3.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| saferelay-3.7.2.tar.gz | 30.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| saferelay-3.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.4 kB
Release files / saferelay-3.7.2.tar.gz
| Download URL | saferelay-3.7.2.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e56f49c832ae01778095ec6402ca08e6c75f3bbc377d832508052fdad8e04749
|
|
BLAKE2b-256 checksum How to use checksums |
592058d2b4afe687f4d472e1addfcbe9fed04f1b8b5a07dc2ba528e4d7c01828
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / saferelay-3.7.2-py3-none-any.whl
| Download URL | saferelay-3.7.2-py3-none-any.whl |
|---|---|
| Size | 28.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7ce4705d055019300dea813ccf9415418320b3a8042c7090589654130b111ba
|
|
BLAKE2b-256 checksum How to use checksums |
63436bcdbfb6c5fc46bb6b91c87f97f4e450def89d2d21f18b0433a516bdf9db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for saferelay 3.7.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for saferelay-3.7.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.