# Datadog AI Guard vs ShieldGemma

> Datadog AI Guard scores 63.6 (B) to ShieldGemma's 57.3 (C) for policy enforcement. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-shieldgemma
- Markdown: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-shieldgemma.md (~5,700 tokens)
- Slim: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-shieldgemma.min.md (~1,080 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-shieldgemma.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-23

Datadog AI Guard scores 63.6 (B) on agent readiness against ShieldGemma's 57.3 (C), and leads in 5 of 7 scored categories. ShieldGemma leads on reliability and payments & pricing. Both do policy enforcement.

- Datadog AI Guard: grade B, 63.6/100, rank #670 of 1654. Markdown https://www.anchorterminal.com/tools/datadog-ai-guard.md · JSON https://www.anchorterminal.com/api/v1/tools/datadog-ai-guard.json
- ShieldGemma: grade C, 57.3/100, rank #952 of 1654. Markdown https://www.anchorterminal.com/tools/shieldgemma.md · JSON https://www.anchorterminal.com/api/v1/tools/shieldgemma.json
- Best guardrails and safety filters for AI agents: https://www.anchorterminal.com/best/guardrails/index.md
- All 175 guardrails comparisons: https://www.anchorterminal.com/compare/guardrails/index.md

## Which one, for what

### Datadog AI Guard (B)

Good 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 56
- Security & auth, 83 against 53
- Maintenance & community, 84 against 40
- Transparency & trust, 71 against 54

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

### ShieldGemma (C)

Good for: Policy-specific content moderation of English text input or output, or of images, on the owner's hardware, with a probability to threshold.

Ahead on:
- Reliability, 46 against 36
- Payments & pricing, 78 against 45

Also in its favour:
- No key needed to call it
- No incidents deducted, where Datadog AI Guard loses 3 points for them

Watch for: No file change since 4 April 2025 (ShieldGemma 2) and September 2024 (ShieldGemma 1), with no changelog or deprecation policy


## Why the edge

### Maintenance & community: Datadog AI Guard +44

- 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.
- ShieldGemma (40): Read as a model, on the lines used for Granite Guardian (recency 30, deprecation 12, churn 8, responsiveness 25, packages 15, health 10). The newest file change is ShieldGemma 2 on 4 April 2025, 19 months before the check, and ShieldGemma 1 last changed in September 2024 (0 of 30). No deprecation policy. Both generations stay downloadable, and the ai.google.dev page was marked deprecated with a pointer to gemma.ai without dates for the models (3 of 12). Two generations in 2024 and 2025, each in its own repository, none replaced in place (6 of 8). Google accounts (members of Google's Gemma organisations on the Hub) answered every thread we sampled on the 2B, 9B and ShieldGemma 2 pages, from August 2024 to 22 March 2026, but leave most threads open (16 of 25). Transformers, Keras and Ollama's library load it (12 of 15). No CI, and Ollama's library build was last updated 2 years ago (3 of 10). 0 + 3 + 6 + 16 + 12 + 3 = 40.

### Payments & pricing: ShieldGemma +33

- 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.
- ShieldGemma (78): Self-hosted rule. Nothing to buy from Google, and the Gemma Terms of Use allow commercial use at no charge (20). Free to run with no card (20). Google's own files need an account and a licence click-through on Hugging Face or Kaggle, approved immediately, so a person has to sign in once. Ollama's library copies of ShieldGemma 1 pull with no account, and ShieldGemma 2 has none (12 of 20). No payment protocol (0). No hosted ShieldGemma from Google or an inference provider was found. 20 + 20 + 12 + 0 = 52. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 52 is 78.

### Security & auth: Datadog AI Guard +30

- 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.
- ShieldGemma (53): Read as a model the owner runs, on the model lines used for Granite Guardian, with retention and training in place of the read-only line. No key is needed to run it. Google's files need a Hugging Face login and licence acceptance, approved immediately, so there is a token to download but no secret at run time (13 of 30). Self-hosted, so inputs stay on the owner's hardware and nothing reaches Google, though no Google page says so (15 of 20). It reads untrusted text by design. The card says the model is highly sensitive to the policy wording and may behave unpredictably with ambiguous language, and gives no prompt-injection guidance (6 of 15). No call log of its own, though each call returns a score (5 of 15). Weights are safetensors only and load through Transformers classes with no remote code. Google's security.txt is valid and points to its reward programme, and there is no model-specific security page or advisory record (14 of 20). 13 + 15 + 6 + 5 + 14 = 53.

### Schema & documentation: Datadog AI Guard +28

- 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.
- ShieldGemma (56): Read for a model the owner serves. There is no specification of its own. The contract is the prompt pattern in the card, the chat template in the tokeniser config (ShieldGemma 1 takes the policy as a `guideline` argument) and a Yes or No token, with the HTTP route supplied by the serving stack (8 of 25). gemma.ai/llms.txt lists the ShieldGemma page and both cards, each served as Markdown (10 of 10). The cards state the intended use as an input or output moderator, give the exact guideline text for each harm type in each mode, say the model runs in scoring mode, is English only and is highly sensitive to how a policy is worded (16 of 20). Fixed harm types and a binary answer, with the policy as free text (10 of 15). A Transformers snippet for each generation and a Keras notebook. No failure modes or error cases are documented (8 of 15). Two named generations with no changelog, and the ai.google.dev page is marked deprecated in favour of gemma.ai (4 of 15). 8 + 10 + 16 + 10 + 8 + 4 = 56.

### Transparency & trust: Datadog AI Guard +17

- 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.
- ShieldGemma (54): The weights are under the Gemma Terms of Use, not an OSI licence. They carry distribution conditions, the Prohibited Use Policy and a clause that lets Google restrict usage remotely where it believes the terms are breached. The terms are dated (1 April 2026) with earlier versions archived (15 of 30). Inputs stay on the owner's hardware, so no privacy statement applies. ShieldGemma 1 was fine-tuned on synthetic internal data and public datasets described in a technical report, and ShieldGemma 2 on a WebLI subset and synthetic images with CSAM filtering. No data is released (20 of 30). No deprecation policy or dated model retirements (5 of 20). The weights carry no telemetry of their own, with no statement either way, and downloads go through Hugging Face, Kaggle or Ollama (10 of 20). 15 + 20 + 5 + 10 = 50.

### Reliability: ShieldGemma +10

- 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.
- ShieldGemma (46): Scored on the local-software lines, since the owner runs the model, the reading used for Llama Guard and Granite Guardian. Google's install line is `pip install -U transformers[accelerate]` with no versions, a Keras Colab notebook covers ShieldGemma 1, and Ollama's own library carries ShieldGemma 1. No Python version or memory figure is stated, and the publisher's files sit behind a login and licence click-through (12 of 20). No CI, tests or evaluation code for the models were found. The technical reports describe the evaluation and nothing reruns it (0 of 25). On the Hub, 8 of 23 threads on the 2B, 2 of 10 on the 9B, none of 8 on the 27B and 9 of 10 on ShieldGemma 2 are open, but every open thread we sampled has a reply from a Google account, the newest on 22 March 2026 (15 of 25). No changelog or version tags. The two generations are named and sit in their own repositories (4 of 15). Released with no preview label (15 of 15). 12 + 0 + 15 + 4 + 15 = 46.

## Score by category

| Category | Weight | Datadog AI Guard | ShieldGemma | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 36 | 46 | ShieldGemma +10 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 84 | 56 | Datadog AI Guard +28 |
| Agent ergonomics | 13% | 74 | 72 | Datadog AI Guard +2 |
| Security & auth | 14% | 83 | 53 | Datadog AI Guard +30 |
| Payments & pricing | 10% | 45 | 78 | ShieldGemma +33 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 84 | 40 | Datadog AI Guard +44 |
| Transparency & trust | 7% | 71 | 54 | Datadog AI Guard +17 |
| Negative events | ≤15 | -3 | 0 | |
| **Total** | | **63.6 · B** | **57.3 · C** | |

## Facts side by side

| Fact | Datadog AI Guard | ShieldGemma |
| --- | --- | --- |
| Kind | HTTP API | Model API |
| Vendor | Datadog | Google DeepMind |
| Hosted endpoint | `https://api.datadoghq.com/api/v2/ai-guard/evaluate` | no (local only) |
| Transports | HTTP |  |
| Auth | API key | None |
| 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) | Gemma Terms of Use (last modified 1 April 2026) with the Gemma Prohibited Use Policy. Not an OSI licence |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-11-19 | 2025-04-04 |
| Terms last updated | no date given | 2026-04-01 |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | yes |
| Terms restrict automated access | not found in the text | not found in the text |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | not found in the text | not found in the text |
| Arbitration or class-action waiver | not found in the text | not found in the text |
| Popularity | 654 stars | none |

## How the scores have moved

### Datadog AI Guard

No score change since it was listed.

### ShieldGemma

- +3.3 on 13 November 2026: checklist

## 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.

**ShieldGemma.** Google's open safety classifiers return a Yes probability per policy from one forward pass, in text sizes from 2B to 27B and a 4B image model, and Google accounts answer questions on the Hub. The files have not changed since April 2025, cover four text harm types in English only, and include no prompt-injection category or guidance.

## Before you call either

### Datadog AI Guard

1. Send the whole conversation in `data.attributes.messages`. AI Guard judges the last message and uses the rest as context
2. If the action is `DENY` and `is_blocking_enabled` is true, stop and return a safe answer. The HTTP API never blocks by itself
3. Treat `ABORT` as a stop for the whole workflow. The OpenAPI document lists it, although the guide does not
4. Don't pass `reason` back to the model or the user. Datadog says it is for auditing and logging
5. If you get 429, decide whether to proceed. Limits are 700 requests and 14 million tokens a minute per organisation

### ShieldGemma

1. Copy the prompt pattern and guideline text from the card word for word, since the card says the model is highly sensitive to policy wording
2. Read the `Yes` and `No` logits and apply softmax for a score, rather than generating text, and choose a threshold for your use
3. Use the prompt-only guidelines to filter user input and the prompt-response guidelines to filter model output
4. Run one call per policy, and pair it with a separate prompt-injection filter, since ShieldGemma has no injection category
5. Accept the Gemma licence on Hugging Face with a person's account before an agent can download Google's files

## Questions

### Which is better for AI agents, Datadog AI Guard or ShieldGemma?

Datadog AI Guard scores 63.6 (B) on agent readiness against ShieldGemma's 57.3 (C), and leads in 5 of 7 scored categories. ShieldGemma leads on reliability and payments & pricing.

### Do Datadog AI Guard and ShieldGemma need an API key?

Datadog AI Guard needs an API key. ShieldGemma needs no key.

### Can an agent call Datadog AI Guard and ShieldGemma 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 ShieldGemma.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-shieldgemma.json, and with the fewest tokens: https://www.anchorterminal.com/compare/datadog-ai-guard-vs-shieldgemma.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "datadog-ai-guard", "b": "shieldgemma"}`. From a terminal: `anchor compare datadog-ai-guard shieldgemma`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/datadog-ai-guard.json and https://www.anchorterminal.com/api/v1/tools/shieldgemma.json

## Other comparisons with Datadog AI Guard or ShieldGemma

- [Amazon Bedrock Guardrails vs Datadog AI Guard](https://www.anchorterminal.com/compare/amazon-bedrock-guardrails-vs-datadog-ai-guard.md)
- [Azure AI Content Safety (Prompt Shields) vs Datadog AI Guard](https://www.anchorterminal.com/compare/azure-ai-content-safety-vs-datadog-ai-guard.md)
- [Cisco AI Defense Inspection API vs Datadog AI Guard](https://www.anchorterminal.com/compare/cisco-ai-defense-inspection-vs-datadog-ai-guard.md)
- [Datadog AI Guard vs Google Cloud Model Armor](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-google-model-armor.md)
- [Datadog AI Guard vs Granite Guardian](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-granite-guardian.md)
- [Datadog AI Guard vs Guardrails AI](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-guardrails-ai.md)
- [Datadog AI Guard vs Lakera Guard (Check Point AI Guardrails)](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-lakera-guard.md)
- [Datadog AI Guard vs LlamaFirewall](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llamafirewall.md)
- [Datadog AI Guard vs NVIDIA NeMo Guardrails](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-nemo-guardrails.md)
- [Datadog AI Guard vs OpenAI Guardrails](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-openai-guardrails.md)
- [Datadog AI Guard vs Prisma AIRS AI Runtime Security API](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-prisma-airs.md)
- [Amazon Bedrock Guardrails vs ShieldGemma](https://www.anchorterminal.com/compare/amazon-bedrock-guardrails-vs-shieldgemma.md)
- [Azure AI Content Safety (Prompt Shields) vs ShieldGemma](https://www.anchorterminal.com/compare/azure-ai-content-safety-vs-shieldgemma.md)
- [Cisco AI Defense Inspection API vs ShieldGemma](https://www.anchorterminal.com/compare/cisco-ai-defense-inspection-vs-shieldgemma.md)
- [Google Cloud Model Armor vs ShieldGemma](https://www.anchorterminal.com/compare/google-model-armor-vs-shieldgemma.md)
- [Granite Guardian vs ShieldGemma](https://www.anchorterminal.com/compare/granite-guardian-vs-shieldgemma.md)
- [Guardrails AI vs ShieldGemma](https://www.anchorterminal.com/compare/guardrails-ai-vs-shieldgemma.md)
- [Lakera Guard (Check Point AI Guardrails) vs ShieldGemma](https://www.anchorterminal.com/compare/lakera-guard-vs-shieldgemma.md)
- [Llama Guard 4 vs ShieldGemma](https://www.anchorterminal.com/compare/llama-guard-vs-shieldgemma.md)
- [Mistral Moderation API vs ShieldGemma](https://www.anchorterminal.com/compare/mistral-moderation-vs-shieldgemma.md)
- [NVIDIA NeMo Guardrails vs ShieldGemma](https://www.anchorterminal.com/compare/nemo-guardrails-vs-shieldgemma.md)
- [OpenAI Guardrails vs ShieldGemma](https://www.anchorterminal.com/compare/openai-guardrails-vs-shieldgemma.md)
- [OpenAI Moderation API vs ShieldGemma](https://www.anchorterminal.com/compare/openai-moderation-vs-shieldgemma.md)
- [Prisma AIRS AI Runtime Security API vs ShieldGemma](https://www.anchorterminal.com/compare/prisma-airs-vs-shieldgemma.md)
- [AgentGate vs Datadog AI Guard](https://www.anchorterminal.com/compare/agentgate-vs-datadog-ai-guard.md)
- [AgentGate vs ShieldGemma](https://www.anchorterminal.com/compare/agentgate-vs-shieldgemma.md)
- [Datadog AI Guard vs Llama Guard 4](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-llama-guard.md)
- [LlamaFirewall vs ShieldGemma](https://www.anchorterminal.com/compare/llamafirewall-vs-shieldgemma.md)
- [Datadog AI Guard vs Presidio](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-microsoft-presidio.md)
- [Datadog AI Guard vs Mistral Moderation API](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-mistral-moderation.md)
- [Presidio vs ShieldGemma](https://www.anchorterminal.com/compare/microsoft-presidio-vs-shieldgemma.md)
- [Datadog AI Guard vs OpenAI Moderation API](https://www.anchorterminal.com/compare/datadog-ai-guard-vs-openai-moderation.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
