QWED

Type to search pages, engines and advisories.

    Looking for API details?Search the docs

    Compare

    Ways to check AI before it acts.

    AI guardrails compared: NeMo Guardrails, Guardrails AI, LlamaFirewall, OpenAI Guardrails, Microsoft’s Agent Governance Toolkit and Amazon Bedrock’s Automated Reasoning checks, set beside QWED. Each is described from its own documentation and code.

    Two questions separate them

    1. What makes the decision?A model, a policy, or a proof.
    2. What happens when the check fails?Does the content stop, or carry on?

    Checked on 15 October 2026

    The short answer

    What are the open-source alternatives to Guardrails AI and NeMo Guardrails?

    It depends on what has to be checked. Of the tools on this page: for properties with no formal answer, such as safety, topic or injection, LlamaFirewall (MIT for its code) and OpenAI Guardrails (MIT) also decide with a classifier or a model. To decide by policy which actions an agent may take, Microsoft’s Agent Governance Toolkit (MIT) uses rules in a policy language. For claims with a right answer, such as a figure, a SQL query or a piece of code, QWED (Apache-2.0) works the claim out again with solvers and parsers and denies what it cannot prove. Amazon Bedrock’s Automated Reasoning checks also use formal logic, as a managed AWS service rather than open source.

    Another name that comes up, LLM Guard (MIT), is archived: its maintainers say that the project and its models are no longer developed or maintained. Its last release is v0.3.16, from May 2025. The archive notice

    Three ways a check can decide

    Most tools mix more than one. What matters is which one has the final word.

    When the check itself fails

    A model times out, a validator errors, a claim cannot be translated. Each tool has a default for that moment, and it is the easiest thing to miss in a demo.

    Stopped by default

    An error or an open question denies the claim or action.

    Depends on configuration

    The outcome depends on which rail, validator or scanner is running.

    Goes through by default

    Content carries on unless the app chooses otherwise.

    A default is not enforcement. In every case here, QWED included, the application or a gateway has to act on the result. A tool that returns a deny cannot stop an app that ignores it. What fail-closed means for AI checks

    Side by side

    ToolWhat decidesWhen a check errors or cannot decideWho acts on the decision
    QWEDDeterministic engines: SymPy, Z3, SQLGlot, AST rules and JSON Schema. On the natural-language paths a model translates the text into a formal statement; that step is not verified, and no model decides the verdict.Stopped by defaultAn error comes back BLOCKED · DENY. A claim that no engine can prove comes back UNVERIFIABLE · DENY. Only a proven claim is admitted.Your integration, or a QWED product such as QWED Security, acts on the decision. QWED does not stop anything by itself.
    NVIDIA NeMo GuardrailsWhatever each rail is configured with: NVIDIA safety models, an LLM checking itself, jailbreak heuristics, regular expressions, CEL expressions or third-party services. Tool-call validation against the declared tools and their JSON Schema uses no model.Depends on configurationThe docs say no library-wide failure policy applies to every rail. The IORails engine, which Guardrails runs by default, blocks when a rail fails; a provider’s own error comes back as an error. When the hooks server cannot finish a check, the agent decides, and by default Claude Code and Codex then run the tool.The library, on the paths the app routes through it. With check(), the app receives a passed, modified or blocked status and acts on it. With the hooks server, the agent cancels a denied call. The app runs tools and handles identity.
    Guardrails AIValidators chosen per guard. Some are rules, such as regular expressions; some run machine-learning models, such as PII or toxic-language detectors; some call an LLM.Depends on configurationIn the Python API a failed validation raises an exception by default (on_fail is EXCEPTION). In a RAIL spec with no on-fail attribute it is NOOP, which logs the failure and passes the output on. A validator that errors re-raises to the app. No error or timeout policy is documented, so the result of an error depends on the validator.The Guard object in the app’s process raises, filters, fixes or asks again, as each validator’s on_fail says. The app must catch the exception.
    Meta LlamaFirewallPromptGuard 2, a classifier model, for prompt injection. AlignmentCheck, an LLM judge, for the agent’s trace. CodeShield, built on Semgrep and regular expressions, for code.Depends on configurationNot documented, and the code differs by scanner. When AlignmentCheck’s model call fails, it holds the action for a person; with no trace or no user message, it allows. The experimental PII check allows when its model call fails. PromptGuard and CodeShield errors raise to the app. LlamaFirewall.scan() reports every result as a success, whatever status the scanner set.The app. scan() returns a decision, a reason and a score; the library does not halt the agent itself.
    OpenAI Guardrails and Agents SDK guardrailsThe library: per check, an LLM, the OpenAI Moderation API, rules such as keyword and URL filters, or Presidio for PII. The SDK: the developer’s own guardrail function, which may call a model or run plain code.Goes through by defaultThe library’s default mode passes content on when a check errors; raising instead is an opt-in setting. In the SDK, an error in a guardrail is raised and ends the run. Input guardrails run alongside the agent by default, so tools may already have run; since 0.26.0 a tripwire stops function tools that have not started.The library’s client wrapper raises a tripwire exception that the app catches. The SDK’s Runner raises and halts the run.
    Microsoft Agent Governance ToolkitA policy engine: Open Policy Agent Rego, Cedar, or one the host supplies. Optional annotators, including an LLM, add labels that the policy reads.Stopped by defaultThe specification says any error during evaluation yields a deny, and an annotator timeout fails closed. When no rule matches, the policy’s own default decides; the quick-start example allows. Two cases in the v5.0.0 code let a call through, and are fixed on main but not yet released: a deny rule using ne or not_in when the checked field is missing, and a Python run_tool that ran the tool when post_tool_call was not bound.The host, through AGT’s SDKs, adapters or govern() wrapper. The specification calls a host that ignores a deny non-conformant. The engine runs in the agent’s process.
    Amazon Bedrock Guardrails: Automated Reasoning checksSeveral foundation models translate the text into formal logic; their agreement sets a confidence score. Formal logic validation against the policy then returns a finding such as VALID, INVALID or TRANSLATION_AMBIGUOUS. The policy itself is extracted by models from your own document.Goes through by defaultThe checks return findings and do not block content. For off-topic content, where no policy variable can be mapped, AWS lists serving the response without validation as one option, and calls NO_TRANSLATIONS a warning signal. On InvokeModel, and on Converse with plain text, content without guardrail tags skips the check with no error; ApplyGuardrail checks all the content it is given.The application decides what to do with the findings. Other Bedrock Guardrails policies can block; these checks do not.

    Tool by tool

    Each entry comes from the project's own pages or its code at a named release. The links go to the exact source.

    QWED

    • Solver
    • Parser
    • Rules

    Stopped by defaultAn error comes back BLOCKED · DENY. A claim that no engine can prove comes back UNVERIFIABLE · DENY. Only a proven claim is admitted.

    What it checks
    Claims in AI output that its engines can put into formal terms: arithmetic, logic, SQL, code and JSON schemas. Policy guards flag unsafe commands, leaked secrets and untrusted tool calls.
    What decides
    Deterministic engines: SymPy, Z3, SQLGlot, AST rules and JSON Schema. On the natural-language paths a model translates the text into a formal statement; that step is not verified, and no model decides the verdict.
    Who acts on the decision
    Your integration, or a QWED product such as QWED Security, acts on the decision. QWED does not stop anything by itself.
    Licence and hosting
    Apache-2.0. Self-hosted: Python library, CLI, API server or Docker image.
    Status
    Single maintainer. Versions and status on the ecosystem page.

    SourcesWhat QWED does not verifyEngines

    NVIDIA NeMo Guardrails

    • Model
    • Rules
    • Schema

    Depends on configurationThe docs say no library-wide failure policy applies to every rail. The IORails engine, which Guardrails runs by default, blocks when a rail fails; a provider’s own error comes back as an error. When the hooks server cannot finish a check, the agent decides, and by default Claude Code and Codex then run the tool.

    What it checks
    User input, retrieved chunks, model output, tool calls and tool results, each through its own kind of rail. A hooks server, new in 0.25.0, checks a coding agent’s tool call before it runs.
    What decides
    Whatever each rail is configured with: NVIDIA safety models, an LLM checking itself, jailbreak heuristics, regular expressions, CEL expressions or third-party services. Tool-call validation against the declared tools and their JSON Schema uses no model.
    Who acts on the decision
    The library, on the paths the app routes through it. With check(), the app receives a passed, modified or blocked status and acts on it. With the hooks server, the agent cancels a denied call. The app runs tools and handles identity.
    Licence and hosting
    Apache-2.0. Self-hosted library, API server, hooks server or Docker image, and an experimental gateway; a separate Kubernetes microservice is part of NVIDIA AI Enterprise.
    Status
    v0.25.0, 19 November 2026. Owned by NVIDIA. The LLMRails engine and the Colang runtimes are deprecated, with removal no earlier than 0.27.0.

    Where it goes further than QWEDContent safety, jailbreak detection and topic control, with NVIDIA’s safety models and 25 community integrations. Judging content that has no formal answer is outside QWED’s engines.

    QWED vs NeMo Guardrails, in full

    Sources, checked 27 November 2026Runtime security FAQTool-calling railsHooks server errorsrail_guard.py at v0.25.0v0.25.0 release notes

    Guardrails AI

    • Rules
    • Model

    Depends on configurationIn the Python API a failed validation raises an exception by default (on_fail is EXCEPTION). In a RAIL spec with no on-fail attribute it is NOOP, which logs the failure and passes the output on. A validator that errors re-raises to the app. No error or timeout policy is documented, so the result of an error depends on the validator.

    What it checks
    Model inputs and outputs, including structured output checked against a Pydantic or RAIL schema.
    What decides
    Validators chosen per guard. Some are rules, such as regular expressions; some run machine-learning models, such as PII or toxic-language detectors; some call an LLM.
    Who acts on the decision
    The Guard object in the app’s process raises, filters, fixes or asks again, as each validator’s on_fail says. The app must catch the exception.
    Licence and hosting
    Apache-2.0. Self-hosted library and server. The free hosted inference servers shut down on 25 August 2026.
    Status
    v0.11.0, 14 August 2026, the latest release; the last commit on main is from 26 August 2026. Harvey announced the acquisition of Guardrails AI on 9 September 2026; the announcement does not mention the open-source framework.

    Where it goes further than QWEDModel-based validators for properties with no formal truth value, such as toxic language or competitor mentions. In QWED those claims fall outside the engines.

    QWED vs Guardrails AI, in full

    Sources, checked 27 November 2026on_fail actions guide at v0.11.0validator_base.py at v0.11.0RAIL’s on-fail default at v0.11.0Hub update noticeHarvey announcement

    Meta LlamaFirewall

    • Classifier
    • LLM judge
    • Rules

    Depends on configurationNot documented, and the code differs by scanner. When AlignmentCheck’s model call fails, it holds the action for a person; with no trace or no user message, it allows. The experimental PII check allows when its model call fails. PromptGuard and CodeShield errors raise to the app. LlamaFirewall.scan() reports every result as a success, whatever status the scanner set.

    What it checks
    User and system messages, the agent’s trace of reasoning and tool calls, and generated code.
    What decides
    PromptGuard 2, a classifier model, for prompt injection. AlignmentCheck, an LLM judge, for the agent’s trace. CodeShield, built on Semgrep and regular expressions, for code.
    Who acts on the decision
    The app. scan() returns a decision, a reason and a score; the library does not halt the agent itself.
    Licence and hosting
    MIT for the LlamaFirewall code. The PromptGuard 2 weights carry the Llama 4 licence. AlignmentCheck calls a hosted model API by default.
    Status
    1.0.3 on PyPI, 29 May 2025, the latest release. Commits since, the last on 30 October 2026, are type checks, tests and the docs site’s dependencies.

    Where it goes further than QWEDAlignmentCheck: whether an agent’s actions still serve the user’s stated goal. QWED does not check intent.

    QWED vs LlamaFirewall, in full

    Sources, checked 28 November 2026LlamaFirewall READMEalignmentcheck_scanner.pyscan() and the status it reportsPII check: a model error, its score and the decision

    OpenAI Guardrails and Agents SDK guardrails

    • Model
    • Rules

    Goes through by defaultThe library’s default mode passes content on when a check errors; raising instead is an opt-in setting. In the SDK, an error in a guardrail is raised and ends the run. Input guardrails run alongside the agent by default, so tools may already have run; since 0.26.0 a tripwire stops function tools that have not started.

    What it checks
    The library: inputs and outputs of OpenAI client calls, and tool calls for prompt injection. The Agents SDK: the first agent’s input, the final output, and calls to function tools that carry tool guardrails, before and after they run.
    What decides
    The library: per check, an LLM, the OpenAI Moderation API, rules such as keyword and URL filters, or Presidio for PII. The SDK: the developer’s own guardrail function, which may call a model or run plain code.
    Who acts on the decision
    The library’s client wrapper raises a tripwire exception that the app catches. The SDK’s Runner raises and halts the run.
    Licence and hosting
    MIT for both. Self-hosted libraries; model-based checks call the OpenAI API or any compatible endpoint.
    Status
    Library v0.3.6, 26 October 2026, marked Preview. Agents SDK v0.26.0, 24 November 2026; version 1.0 is in alpha.

    Where it goes further than QWEDModeration against OpenAI’s categories, and model classification of jailbreak, NSFW and off-topic content. These are judgements, not formal claims.

    QWED vs OpenAI Guardrails, in full

    Sources, checked 28 November 2026Guardrails quickstart, fail-safe modeA check that errors returns no tripwireAgents SDK guardrailsAgents SDK v0.26.0 release notes

    Microsoft Agent Governance Toolkit

    • Policy engine

    Stopped by defaultThe specification says any error during evaluation yields a deny, and an annotator timeout fails closed. When no rule matches, the policy’s own default decides; the quick-start example allows. Two cases in the v5.0.0 code let a call through, and are fixed on main but not yet released: a deny rule using ne or not_in when the checked field is missing, and a Python run_tool that ran the tool when post_tool_call was not bound.

    What it checks
    Agent actions at eight points, from startup to shutdown: input, model calls, tool calls and their results, and final output.
    What decides
    A policy engine: Open Policy Agent Rego, Cedar, or one the host supplies. Optional annotators, including an LLM, add labels that the policy reads.
    Who acts on the decision
    The host, through AGT’s SDKs, adapters or govern() wrapper. The specification calls a host that ignores a deny non-conformant. The engine runs in the agent’s process.
    Licence and hosting
    MIT. Self-hosted packages for Python, TypeScript, .NET, Rust and Go, plus Docker and sidecar deployment.
    Status
    v5.0.0, tagged 27 July 2026 and labelled Public Preview, with no GitHub release; the agent-governance-toolkit package on PyPI is 4.1.0. Main has since dropped the Public Preview label. Its charter sets out a move to a foundation, if one accepts it.

    Where it goes further than QWEDCryptographic identity for each agent, with trust scoring and delegation chains. QWED A2A signs its decisions, but QWED has no identity for agents.

    QWED vs Agent Governance Toolkit, in full

    Sources, checked 28 November 2026Agent Control Specification: the runtime fails closedAgent Control Specification: security considerationsREADME at v5.0.0Unreleased fix on main: run_tool without post_tool_callUnreleased fix on main: ne/not_in deny rulesCharter: foundation transition

    Amazon Bedrock Guardrails: Automated Reasoning checks

    • Model translation
    • Formal logic

    Goes through by defaultThe checks return findings and do not block content. For off-topic content, where no policy variable can be mapped, AWS lists serving the response without validation as one option, and calls NO_TRANSLATIONS a warning signal. On InvokeModel, and on Converse with plain text, content without guardrail tags skips the check with no error; ApplyGuardrail checks all the content it is given.

    What it checks
    A model’s response against an Automated Reasoning policy, using the user’s query as premises. There is no input-only check.
    What decides
    Several foundation models translate the text into formal logic; their agreement sets a confidence score. Formal logic validation against the policy then returns a finding such as VALID, INVALID or TRANSLATION_AMBIGUOUS. The policy itself is extracted by models from your own document.
    Who acts on the decision
    The application decides what to do with the findings. Other Bedrock Guardrails policies can block; these checks do not.
    Licence and hosting
    Proprietary managed AWS service, charged per validation request, in seven Regions: three in the US, three in the EU and Sydney. English (US) only.
    Status
    Generally available since August 2025. Source-document references added in February 2026; policy refinement workflows and the Sydney Region in June 2026.

    Where it goes further than QWEDBuilds a formal rule set from your own natural-language policy document, with a report linking each rule to its source text. QWED’s engines cover fixed domains.

    QWED vs Bedrock Automated Reasoning, in full

    Sources, checked 28 November 2026Automated Reasoning checks overviewIntegrating the checksConcepts: findings and the confidence thresholdWhat’s New: source-document references (February 2026)What’s New: policy refinement workflows (June 2026)What’s New: Sydney Region (June 2026)

    What QWED does not cover

    A fair comparison says where the others go further. A system may need another tool for these.

    Everything QWED does not verify
    • Content safety and topic control
    • Steering a conversation
    • Prompt-injection classifiers
    • Checking what the user meant
    • Identity for agents
    • Sandboxing and kill switches
    • Rules from your own policy documents
    • Evaluating models over datasets

    How this page is kept

    • Every statement about another tool comes from its own documentation, its code at a pinned release, or its owner's announcements, checked on 15 October 2026 unless its card gives a later date.
    • There are no accuracy, speed or popularity figures here, for any tool, QWED included. Those depend on the workload; measure them on yours.
    • Projects change. If something here is out of date or wrong, tell us and it will be corrected.