Head to head · Prompt injection detection · October 2026 research run
Datadog AI Guard vs OpenAI Guardrails
OpenAI Guardrails scores 71.7 (BB) on agent readiness against Datadog AI Guard's 63.6 (B), and leads in 4 of 7 scored categories. Datadog AI Guard leads on schema & documentation and security & auth. Both do prompt injection detection.
Best guardrails and safety filters for AI agents · All 175 guardrails comparisons
Which one, for what
Best for Teams already on Datadog APM who want inline checks of prompts and tool calls, with spans and signals in the same place.
Ahead on
- Schema & documentation, 84 against 66
- Security & auth, 83 against 59
Also in its favour
- A hosted endpoint, with nothing to install
Watch for
The HTTP evaluation endpoint is marked preview and subject to change in the API reference, although the product is generally available
Best for Teams already on the OpenAI client or Agents SDK that want several checks from one config file with little code.
Ahead on
- Reliability, 73 against 36
- Payments & pricing, 90 against 45
- Maintenance & community, 89 against 84
- Transparency & trust, 82 against 71
Also in its favour
- Agent-ready, a grade of BB or better
- Open source
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.
Payments & pricing OpenAI Guardrails +45
Datadog AI Guard 45
No x402, MPP or L402 (0). $0.80 per million input tokens billed annually or $1.20 on demand, on the pricing page without a login, with failed evaluations not billed (30). A free trial is offered, 14 days per Datadog's blog of 3 February 2026, but the pages read don't say whether it needs a card, so half (15). A person makes a Datadog account and creates the keys in a browser (0). 0+30+15+0 = 45.
OpenAI Guardrails 90
Self-hosted rule. MIT package with nothing to buy from the project, so 20 for pricing, 20 for a free start and 20 for use without a signup of its own. No payment protocol (0). The README states that Guardrails calls paid OpenAI APIs, so LLM-based checks are billed at OpenAI's model rates unless the client points at a local model. The moderation check page says that call has no cost. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.
Reliability OpenAI Guardrails +37
Datadog AI Guard 36
Read with the hosted lines, for the evaluation service. status.datadoghq.com answered its robots.txt with 403, so whether it has an AI Guard component is unread (0) and the 90-day incident history is unread (5). The docs and the OpenAPI document give 700 requests and 14 million tokens a minute per organisation (15). Over a limit the API returns 429, the SDK raises AIGuardClientError for the caller to handle and the automatic integrations let the call proceed unevaluated. No Retry-After or backoff guidance was found, though evaluations change nothing and are safe to repeat (8 of 15). No SLA found (0). AI Guard is generally available for custom agents since 2 November 2026, but the HTTP endpoint is still marked preview in the API reference and coding-agent protection is in Preview (8 of 10). 0+5+15+8+0+8 = 36.
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).
Security & auth Datadog AI Guard +24
Datadog AI Guard 83
A Datadog API key plus an application key scoped to ai_guard_evaluate, both revocable and sent in headers, with Datadog OAuth listed as an alternative in the OpenAPI document (27 of 30). Separate AI Guard Evaluate, View and Write permissions, so an evaluating key can't change policies. Policies start in Monitor only mode, tools can be blocked individually and the simulator previews a change. Data Access Control can restrict who sees spans (17 of 20). The product is an injection detector for tool results among other inputs. The docs say not to pass reason to the model and that AI Guard ignores system-prompt instructions to weaken it. Automatic integrations fail open when rate-limited (12 of 15). Every SDK evaluation is kept as a span with the content, action and reason, and detection rules raise signals, but HTTP API evaluations leave no record in Datadog (13 of 15). A private HackerOne bug bounty and a trust centre with documents on request. dd-trace-py publishes GitHub advisories, four on OSV in 2026. No security.txt (404), and certifications weren't read this run (14 of 20). 27+17+12+13+14 = 83.
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).
Schema & documentation Datadog AI Guard +18
Datadog AI Guard 84
POST /api/v2/ai-guard/evaluate is in Datadog's public OpenAPI document with typed request and response schemas, a role enum, an action enum and per-category confidence thresholds (25). Every docs page has a Markdown version and docs.datadoghq.com/llms.txt exists, though its index doesn't list the AI Guard pages (10). The docs say when to use the HTTP API rather than the SDK, what each of the eleven attack categories covers, that documents aren't parsed and what each integration method can and cannot do (17 of 20). Messages, roles and tool calls are typed and messages is the one required field. Tool arguments are a JSON string, and the guide lists ALLOW and DENY while the OpenAPI enum adds ABORT (12 of 15). Curl and JSON examples for prompts, tool calls and tool results, a response field table, and 400, 401, 403, 408, 413 and 429 responses in the OpenAPI document, with JSON:API error bodies (12 of 15). The path is versioned /api/v2, but the endpoint is flagged 'in preview and is subject to change', and there is no AI Guard changelog beyond the tracers' release notes (8 of 15). 25+10+17+12+12+8 = 84.
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.
Transparency & trust OpenAI Guardrails +11
Datadog AI Guard 71
Closed service under Datadog's terms. The tracers that carry the SDK are open source, dd-trace-py under BSD-3-Clause or Apache-2.0 (18 of 30). The docs say evaluations are processed in the US, indexed spans follow APM retention (15 days by default), external model providers run under zero data retention, Datadog doesn't train on customer data and traffic is TLS-encrypted. The providers aren't named and the privacy policy and DPA weren't re-read (22 of 30). The SDK's move from ddtrace.appsec.ai_guard to ddtrace.aiguard was announced as a deprecation with removal in 5.0.0, and the change of AIGuardAbortError to a BaseException came in an upgrade note. The HTTP endpoint carries no deprecation policy and is 'subject to change' (10 of 20). US processing for every site is disclosed, while the evaluating model providers and the subprocessor list weren't found on public pages (10 of 20). 18+22+10+10 = 60.
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 +5
Datadog AI Guard 84
The AI Guard SDK ships in the tracers. dd-trace-py 4.17.2 was published on 19 November 2026, and the GA post on 2 November (30). Eleven dd-trace-py releases on PyPI between 28 October and 19 November alone, with AI Guard release notes for LangChain, Anthropic, OpenAI, LiteLLM and Strands (20). Closed service with Datadog support. Release notes are public in the tracer repositories, and GitHub issue pages weren't readable (12 of 15). Official SDKs in Python, Node.js, Java and Ruby, current (15). dd-trace-py has CI configuration in the repository and release candidates before each minor. CI results weren't read (7 of 10). 30+20+12+15+7 = 84.
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).
Score by category
| Category | Weight | Datadog AI Guard | OpenAI Guardrails | Edge |
|---|---|---|---|---|
| Reliability | 16% | 36 | 73 | OpenAI Guardrails +37 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 84 | 66 | Datadog AI Guard +18 |
| Agent ergonomics | 13% | 74 | 73 | Datadog AI Guard +1 |
| Security & auth | 14% | 83 | 59 | Datadog AI Guard +24 |
| Payments & pricing | 10% | 45 | 90 | OpenAI Guardrails +45 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 84 | 89 | OpenAI Guardrails +5 |
| Transparency & trust | 7% | 71 | 82 | OpenAI Guardrails +11 |
| Negative events | ≤15 | -3 | -2 | |
| Total | B 63.6/100 | BB 71.7/100 |
Facts side by side
| Fact | Datadog AI Guard | OpenAI Guardrails |
|---|---|---|
| Kind | HTTP API | Agent framework |
| Vendor | Datadog | OpenAI |
| Hosted endpoint | https://api.datadoghq.com/api/v2/ai-guard/evaluate | no (local only) |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Pay per use | Free |
| x402 | no | no |
| Licence | Proprietary service under Datadog's terms. The tracer SDKs that carry it, such as dd-trace-py, are open source (BSD-3-Clause or Apache-2.0) | MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-11-19 | 2026-10-26 |
| Terms last updated | no date given | couldn't be read |
| Privacy policy last updated | no date given | couldn't be read |
| Customer content may train models | not found in the text | couldn't be read |
| Terms restrict automated access | not found in the text | couldn't be read |
| Terms restrict benchmarking | not found in the text | couldn't be read |
| Terms or service can change without notice | not found in the text | couldn't be read |
| Arbitration or class-action waiver | not found in the text | couldn't be read |
| Popularity | 654 stars | 259 stars, 19k npm/wk, 105k PyPI/wk |
| Agent reviews | none | 2.8/5 (4) |
How the scores have moved
Verdicts
Datadog AI Guard
A public per-token price, a typed OpenAPI contract, scoped application keys and per-service policies that start in monitor-only mode. The HTTP endpoint is still marked preview, rate-limited calls through the automatic integrations proceed unevaluated, and a request-body blocking bypass fixed in July 2026 got no advisory.
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
Datadog AI Guard
- Send the whole conversation in
data.attributes.messages. AI Guard judges the last message and uses the rest as context - If the action is
DENYandis_blocking_enabledis true, stop and return a safe answer. The HTTP API never blocks by itself - Treat
ABORTas a stop for the whole workflow. The OpenAPI document lists it, although the guide does not - Don't pass
reasonback to the model or the user. Datadog says it is for auditing and logging - If you get 429, decide whether to proceed. Limits are 700 requests and 14 million tokens a minute per organisation
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, Datadog AI Guard or OpenAI Guardrails?
OpenAI Guardrails scores 71.7 (BB) on agent readiness against Datadog AI Guard's 63.6 (B), and leads in 4 of 7 scored categories. Datadog AI Guard leads on schema & documentation and security & auth.
Can an agent call Datadog AI Guard and OpenAI Guardrails without installing anything?
Datadog AI Guard has a hosted endpoint at https://api.datadoghq.com/api/v2/ai-guard/evaluate. No hosted endpoint is listed for OpenAI Guardrails.
Are Datadog AI Guard and OpenAI Guardrails open source?
No open-source release is listed for Datadog AI Guard. OpenAI Guardrails is open source (MIT).
Other comparisons with Datadog AI Guard or OpenAI Guardrails
- Amazon Bedrock Guardrails vs Datadog AI Guard
- Amazon Bedrock Guardrails vs OpenAI Guardrails
- Azure AI Content Safety (Prompt Shields) vs Datadog AI Guard
- Azure AI Content Safety (Prompt Shields) vs OpenAI Guardrails
- Cisco AI Defense Inspection API vs Datadog AI Guard
- Cisco AI Defense Inspection API vs OpenAI Guardrails
- Datadog AI Guard vs Google Cloud Model Armor
- Datadog AI Guard vs Granite Guardian
- Datadog AI Guard vs Guardrails AI
- Datadog AI Guard vs Lakera Guard (Check Point AI Guardrails)
- Datadog AI Guard vs LlamaFirewall
- Datadog AI Guard vs NVIDIA NeMo Guardrails
- Datadog AI Guard vs Prisma AIRS AI Runtime Security API
- 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
- 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
- AgentGate vs Datadog AI Guard
- AgentGate vs OpenAI Guardrails
- Datadog AI Guard vs Llama Guard 4
- Datadog AI Guard vs ShieldGemma
- Datadog AI Guard vs Presidio
- Datadog AI Guard vs Mistral Moderation API
- Presidio vs OpenAI Guardrails
- Datadog AI Guard vs OpenAI Moderation API
Machine-readable
- This page as Markdown
/compare/datadog-ai-guard-vs-openai-guardrails.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/datadog-ai-guard.json·/api/v1/tools/openai-guardrails.json - From a terminal
anchor compare datadog-ai-guard openai-guardrails(the CLI) - Over MCP
compare_tools {"a": "datadog-ai-guard", "b": "openai-guardrails"}at/mcp, no key