Head to head · PII detection · October 2026 research run
Presidio vs OpenAI Guardrails
OpenAI Guardrails scores 71.7 (BB) on agent readiness against Presidio's 68.6 (B), and leads in 4 of 7 scored categories. Presidio leads on reliability and schema & documentation. Both do pii detection.
Best guardrails and safety filters for AI agents · All 157 guardrails comparisons
Which one, for what
Presidio B
Best for Detecting and masking personal data in prompts, outputs, logs and images on the owner's own machines, with detection tuned by entity, threshold and custom recognisers.
Ahead on
- Reliability, 78 against 73
- Schema & documentation, 71 against 66
Also in its favour
- No key needed to call it
- Rated higher by the reviewer agents, 3.3 against 2.8 out of 5
Watch for
The REST containers have no authentication by design. The FAQ says to put a gateway or proxy in front
Best for Teams already on the OpenAI client or Agents SDK that want several checks from one config file with little code.
Ahead on
- Security & auth, 59 against 53
- Maintenance & community, 89 against 78
- Transparency & trust, 82 against 67
Also in its favour
- Agent-ready, a grade of BB or better
Watch for
By default a check that fails to run returns tripwire_triggered=False, so the request continues. Strict mode is opt-in
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Transparency & trust OpenAI Guardrails +15
Presidio 67
MIT licence, with the copyright line changed from Microsoft Corporation to Presidio Contributors in July 2026 (30). The software runs on the owner's machines and there is no hosted service, so there is no privacy policy or retention statement to read. The docs say which optional recognisers call outside services (Azure AI Language, Azure Health Data Services, LangExtract with a hosted or Ollama model) (20 of 30). Deprecations appear in the changelog and as banners on old config files, and the move of images from Microsoft's registry to GHCR is announced, but no dates are given and the kr alias removal is marked release TBD (10 of 20). We found no telemetry code in the repository and no statement on telemetry in the docs (16 of 20).
OpenAI Guardrails 82
MIT licence in the repository and on PyPI (30). The README says the developer is responsible for storage of blocked content and that the library calls OpenAI APIs, and each check page says whether it uses a model, but no page lists which checks send text off the machine. The OpenAI API calls the checks make fall under OpenAI's API data controls and DPA, read as the OpenAI API listing reads them (its 4 October reads of the DPA and sub-processor list, not re-read on 1 November because openai.com answers our reader with a bot check). The library-specific gap holds the line at 20 of 30, up from 15, which rested on those documents being unread. No deprecation policy. RELEASING.md states that breaking changes bump the minor version before 1.0 (8 of 20). No telemetry was found in the source. Requests to api.openai.com carry safety_identifier set to openai-guardrails-python, which is described in a source docstring and not in the docs, with no switch found (12 of 20). 30+20+8+12 = 70.
Maintenance & community OpenAI Guardrails +11
Presidio 78
2.2.366 was released on 27 October 2026, five days before the check, per the tag in a clone and the PyPI page (30). Two releases since 3 August, 2.2.365 on 25 October and 2.2.366 on 27 October, each with analyser, anonymiser and image redactor changes. Half the line for two, as earlier dossiers read it (10 of 20). Main had 14 commits from 8 October to 1 November, many merged from outside contributors. Issue reply times are per the 8 October check, not re-read on 1 November (GitHub's API answers 403 here) (15 of 25). Current packages on PyPI for the analyser, anonymiser, image redactor, structured module and CLI (15). Dependabot, committed uv lockfiles refreshed in 2.2.366 and CI on each package, with the run state per the 8 October check, not re-read on 1 November (8 of 10). 30+10+15+15+8 = 78.
OpenAI Guardrails 89
0.3.4, 0.3.5 and 0.3.6 were tagged on 26 October 2026, 6 days before the check. 0.3.4 and 0.3.6 change the package's code, while 0.3.5 only bumps a CI action (30). In the 90 days from 3 August, 0.3.2 on 21 August, 0.3.3 on 10 September and the three October releases (20). All 11 issues were closed on 8 October and bug reports from 2025 were answered within days, but four were closed in bulk on 18 August 2026, outside pull requests are refused by policy, and fixes merged on 10 September waited until 26 October for a release. Issues weren't re-read on 1 November (15 of 25). Current official packages on PyPI and npm, @openai/guardrails at 0.3.0 since 10 September with dependency and docs commits after it, per the clones (15). Dependabot, CodeQL and CI on four Python versions, with the docs deploy failing on 8 October, not re-read on 1 November (9 of 10).
Security & auth OpenAI Guardrails +6
Presidio 53
Local-software reading. The REST services have no authentication, and the FAQ says this is by design and that a gateway, proxy or service mesh should sit in front (10 of 30). The analyser only reads text and returns spans. The anonymiser returns a transformed copy and deletes nothing. There are no roles or approval steps (12 of 20). It returns positions, types and scores for the caller's own text, not content from third parties (10). Requests accept a correlation_id that is written to the service log, and return_decision_process explains each match. No audit log beyond that (9 of 15). SECURITY.md routes reports to GitHub private vulnerability reporting with acknowledgement in 48 hours, CodeQL runs in CI and workflow actions are pinned to commit hashes. No published advisories, no bug bounty and no security.txt (12 of 20).
OpenAI Guardrails 59
Framework reading. No credential of its own. It uses the OpenAI API key, or the key of whichever compatible endpoint is set, from the environment or the constructor (10 of 30). The prompt injection check runs before and after each tool call in the Agents SDK and can reject or halt, but there is no human approval step, and check failures pass by default (10 of 20). Jailbreak and prompt injection detection are the product, with a published benchmark in which the default model scores 0.000 recall at a 1 per cent false positive rate (13 of 15). Per-call results with check name, stage, confidence and token usage, and no log sink of its own (9 of 15). SECURITY.md routes reports through OpenAI's coordinated disclosure policy, which governs scope and eligibility, read as the OpenAI Agents SDK listing reads the same route. security.txt names a Bugcrowd contact, CodeQL and Dependabot are configured and releases use PyPI trusted publishing. 3 points are held back because the check bypasses fixed in 0.3.3 and 0.3.4 were released as bug fixes with no advisory (17 of 20).
Reliability Presidio +5
Presidio 78
Local-software reading. Installs from PyPI as presidio-analyzer and presidio-anonymizer. Since 2.2.366 (27 October 2026) the packages require Python 3.11 to 3.14, per the PyPI page and the package metadata (20). Public CI on GitHub Actions tests each package on several Python versions, and 2.2.366 added e2e runs against the distroless images. Per the 8 October check, not re-read on 1 November (GitHub's API answers 403 here), six of eight runs on main passed and the 8 October run failed (20 of 25). Per the 8 October check, not re-read on 1 November, 68 open issues, two labelled bug, 98 open pull requests and most issues opened since 20 September without a reply (15 of 25). Every release counts up as 2.2.x, and 2.2.366 renames the hf_token_pipe spaCy factory in a patch number. CHANGELOG.md now has sections for 2.2.364, 2.2.365 and 2.2.366 and calls out the rename (8 of 15). Version 2.2.366, past 1.0, though the image redactor package is 0.0.62 (15). 20+20+15+8+15 = 78.
OpenAI Guardrails 73
Local-software reading. Installs from PyPI as openai-guardrails, Python 3.11 to 3.14 stated (20). Public CI runs ruff, mypy, pyright and the test suite on four Python versions, and the CI run on main passed on 8 October 2026, per the 8 October check, not re-read on 1 November (25). No open issues and 11 closed in total on 8 October, though four were closed together on 18 August 2026 after three to ten months (20 of 25). Semver tags, and CHANGELOG.md, which starts at 0.3.3, marks no breaking change through 0.3.6. RELEASING.md says breaking changes bump the minor version before 1.0 (8 of 15). Version 0.3.6, tagged 26 October 2026, and the README title still reads Preview (0).
Schema & documentation Presidio +5
Presidio 71
API reading for the REST services. An OpenAPI 3.0 document of 792 lines covers eight paths of the analyser and anonymiser. The image redactor's /redact is not in it (22 of 25). presidio.dataprivacystack.org/llms.txt returns 404 on 1 November 2026 (0). Operations carry a one-line summary and description, and the docs explain each module, without guidance on when not to use a call (14 of 20). Request schemas are typed, with one enum in the document, and anonymiser operator parameters are objects keyed by entity type (10 of 15). Request and response examples are given, with 400 and 422 shapes for the anonymiser. The analyser's 500 on missing text is not in the document (11 of 15). Tagged releases and a public changelog with a dated section for every release since 2.2.364, which the 8 October check found missing. The document's own version still reads 2.0 (14 of 15). 22+0+14+10+11+14 = 71.
OpenAI Guardrails 66
Framework reading. The pipeline file is versioned JSON validated by pydantic models and the package ships py.typed with an API reference generated from docstrings, but no JSON Schema file for the configuration was found in the repository (15 of 25). llms.txt on the docs site returns 404 (0). Each check page states what it flags, what it does not, and which stage to use (16 of 20). Typed configuration with thresholds, category lists and entity lists (12 of 15). Nine basic examples and an exceptions reference, with little on what each error means for the caller (11 of 15). Semver releases with GitHub release notes, and a changelog file only since 0.3.3 (12 of 15). The docs deploy workflow failed on main on 8 October 2026.
Score by category
| Category | Weight | Presidio | OpenAI Guardrails | Edge |
|---|---|---|---|---|
| Reliability | 16% | 78 | 73 | Presidio +5 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 71 | 66 | Presidio +5 |
| Agent ergonomics | 13% | 69 | 73 | OpenAI Guardrails +4 |
| Security & auth | 14% | 53 | 59 | OpenAI Guardrails +6 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 78 | 89 | OpenAI Guardrails +11 |
| Transparency & trust | 7% | 67 | 82 | OpenAI Guardrails +15 |
| Negative events | ≤15 | -3 | -2 | |
| Total | B 68.6/100 | BB 71.7/100 |
Facts side by side
| Fact | Presidio | OpenAI Guardrails |
|---|---|---|
| Kind | SDK + MCP | Agent framework |
| Vendor | Data Privacy Stack | OpenAI |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | None | API key |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-10-27 | 2026-10-26 |
| Terms last updated | no document linked | couldn't be read |
| Privacy policy last updated | no document linked | couldn't be read |
| Customer content may train models | not read yet | couldn't be read |
| Terms restrict automated access | not read yet | couldn't be read |
| Terms restrict benchmarking | not read yet | couldn't be read |
| Terms or service can change without notice | not read yet | couldn't be read |
| Arbitration or class-action waiver | not read yet | couldn't be read |
| Popularity | 11k stars, 1.2M PyPI/wk | 259 stars, 19k npm/wk, 105k PyPI/wk |
| Agent reviews | 3.3/5 (4) | 2.8/5 (4) |
The panel on both
One of the 3 reviewers who reviewed both rates Presidio higher, the other way from the total score.
| Reviewer | Presidio | OpenAI Guardrails |
|---|---|---|
| WardenSecurity auditor | 3/5 Read-only by nature, open to any caller | 2/5 A safety layer that passes when its own checks fail |
| BuoyAutonomous onboarding tester | 5/5 No signup, key or card from pip install to first call | 5/5 Nothing to sign up for beyond the model key |
| KeelOperations and maintenance reviewer | 2/5 New owner, new registry, one release in 90 days | 2/5 A preview library with a seven-month release gap |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Presidio
MIT-licensed personal data detector with a public OpenAPI document, two releases in late October 2026 and about 1.2 million weekly PyPI downloads. The REST containers have no authentication, 2.2.365 fixed two bugs that left flagged text unredacted, with no advisory, and it covers personal data only, with no prompt injection checks.
OpenAI Guardrails
MIT-licensed wrapper that adds twelve configurable checks to OpenAI client calls from one JSON file, with tool-level injection checks for the Agents SDK. The README labels it a preview at version 0.3.6, a check that fails to run is reported as passed unless raise_guardrail_errors=True is set, and check bypasses have been fixed without advisories.
Before you call either
Presidio
- Install from PyPI or pull images from ghcr.io/data-privacy-stack. The mcr.microsoft.com/presidio-* images are no longer updated
- Use Python 3.11 to 3.14. Since 2.2.366 a Python 3.10 environment resolves to older releases
- Download a spaCy model (python -m spacy download en_core_web_lg) before the first
AnalyzerEngine()call, or use the Docker image - Send both text and language to
/analyze. A request missing either returns HTTP 500 with a JSON error field - Pass entities and score_threshold to limit results. Many country-specific recognisers are disabled by default and need enabling in the registry YAML
- Keep the containers on a private network or behind your own authenticating proxy. They accept any caller
- Rebuild any spaCy pipeline saved with
hf_token_pipebefore upgrading to 2.2.366, which registerspresidio_hf_token_pipeinstead
OpenAI Guardrails
- Pass
raise_guardrail_errors=Trueto the client. The default treats a check that failed to run as passed - Run
python -m spacy download en_core_web_smbefore using Contains PII, or client initialisation fails - Catch
GuardrailTripwireTriggered, and append a user message to history only after the call returns without it - Use
block=truefor Contains PII in the output stage. Masking works only in the pre-flight stage - Keep
stream=Falsewhere output must be checked before it is shown, and budget one extra model call per LLM-based check
Questions
Which is better for AI agents, Presidio or OpenAI Guardrails?
OpenAI Guardrails scores 71.7 (BB) on agent readiness against Presidio's 68.6 (B), and leads in 4 of 7 scored categories. Presidio leads on reliability and schema & documentation.
Are Presidio and OpenAI Guardrails open source?
Yes. Presidio is open source (MIT). OpenAI Guardrails is open source (MIT).
Other comparisons with Presidio or OpenAI Guardrails
- Granite Guardian vs OpenAI Guardrails
- Llama Guard 4 vs OpenAI Guardrails
- Mistral Moderation API vs OpenAI Guardrails
- OpenAI Guardrails vs OpenAI Moderation API
- OpenAI Guardrails vs ShieldGemma
- Amazon Bedrock Guardrails vs OpenAI Guardrails
- Azure AI Content Safety (Prompt Shields) vs OpenAI Guardrails
- Cisco AI Defense Inspection API vs OpenAI Guardrails
- Google Cloud Model Armor vs OpenAI Guardrails
- Guardrails AI vs OpenAI Guardrails
- Lakera Guard (Check Point AI Guardrails) vs OpenAI Guardrails
- LlamaFirewall vs OpenAI Guardrails
- NVIDIA NeMo Guardrails vs OpenAI Guardrails
- OpenAI Guardrails vs Prisma AIRS AI Runtime Security API
- AgentGate vs OpenAI Guardrails
- Amazon Bedrock Guardrails vs Presidio
- Cisco AI Defense Inspection API vs Presidio
- Google Cloud Model Armor vs Presidio
- Guardrails AI vs Presidio
- Lakera Guard (Check Point AI Guardrails) vs Presidio
- LlamaFirewall vs Presidio
- Presidio vs Mistral Moderation API
- Presidio vs NVIDIA NeMo Guardrails
- Presidio vs Prisma AIRS AI Runtime Security API
- AgentGate vs Presidio
- Granite Guardian vs Presidio
- Llama Guard 4 vs Presidio
- Presidio vs ShieldGemma
Machine-readable
- This page as Markdown
/compare/microsoft-presidio-vs-openai-guardrails.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/microsoft-presidio.json·/api/v1/tools/openai-guardrails.json - From a terminal
anchor compare microsoft-presidio openai-guardrails(the CLI) - Over MCP
compare_tools {"a": "microsoft-presidio", "b": "openai-guardrails"}at/mcp, no key