Which LLM Guard replacement fits your situation
If you run LLM Guard in production, start from the need each option covers: NeMo Guardrails for dialog control, Guardrails AI for validator-based input and output checks, LlamaFirewall's PromptGuard 2 for prompt injection classification, and LlamaFirewall's AlignmentCheck for auditing agent reasoning. The right choice depends on scanner coverage, whether your stack is Python, and how much rule and validator code your team is prepared to write and maintain. LLM Guard was archived on GitHub on July 9, 2026, so it receives no security fixes, and none of these options is a drop-in API replacement. Expect changes to calling code, configuration and test suites.
Start by listing every LLM Guard scanner in your pipeline and mapping each one to a need. Input and output checks such as pattern matching or toxicity screening map most directly to Guardrails AI validators from Guardrails Hub, which are installed separately after pip install guardrails-ai. Prompt injection scanning maps to PromptGuard 2, which ships under the Llama 4 Community License, so ask your legal team to review that license alongside the MIT-licensed LlamaFirewall framework. Dialog and topic control require Colang definitions in NeMo Guardrails, which means more design work before go-live. Also confirm the Python version each candidate needs: NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, while LlamaFirewall requires 3.10 or later.
Do not confuse the NeMo Guardrails library with the NeMo Guardrails microservice. NVIDIA's NGC catalog entry states that the NeMo microservices were sunset as of October 1, 2026, with no new releases, so plan to run the Apache-2.0 library yourself. Decide how much your team will build: NeMo Guardrails and Guardrails AI both need configuration and custom code, and AlignmentCheck requires a Together API key. Confirm where that call goes and whether your data handling policy allows it before you deploy agent auditing in a private environment.
Which replacement to start from by scenario
This table matches common LLM Guard replacement scenarios to the option that fits each one best, along with the condition that makes that fit hold. Read each row as a starting point for a proof of concept before final selection. The main takeaway: NeMo Guardrails and Guardrails AI solve different problems, and LlamaFirewall splits direct prompt injection detection from agent reasoning audits.
| Scenario | Best fit | Why, and the condition that makes it hold |
|---|---|---|
| Colang-based dialog and output control | NeMo Guardrails | Configures input, dialog, output, retrieval and execution rails in Colang. Holds if your team will write and maintain Colang flows. |
| Chaining validators and structured output | Guardrails AI | Chains Guardrails Hub validators and generates output matching Pydantic models. Holds if you need validated structured data from LLM responses. |
| Classifier for direct prompt injection | LlamaFirewall with PromptGuard 2 | PromptGuard 2 labels prompts benign or malicious. Holds if direct injection is your main threat and the Llama license terms fit your use. |
| Auditing agent reasoning | LlamaFirewall with AlignmentCheck | AlignmentCheck audits agent reasoning but requires a Together API key. Holds if sending those checks to that external service passes your data policy. |
| Existing NVIDIA NeMo microservices | NeMo Guardrails library, after confirming the migration path | NVIDIA has sunset the NeMo microservice container. Confirm the NeMo Platform path with your NVIDIA account team before you commit. |
What each maintained option is and under which license
The four options below cover the maintained replacements for LLM Guard's scanners, plus the Meta models that can sit alongside them. Their licenses differ, and those differences decide what your legal and procurement teams must review before anything reaches production.
NeMo Guardrails
Apache-2.0 licensed, with release 0.25.0 published on November 19, 2026. It configures input, dialog, output, retrieval and execution rails in Colang and ships a server with an HTTP API. Check the 0.25.0 deprecation of the LLMRails class and plan the migration to Guardrails before you pin a version. NVIDIA's NeMo microservices container is sunset, so confirm you are using the open library and not that artifact.
NeMo Guardrails repositoryGuardrails AI
Apache-2.0 licensed, with v0.11.0 published on August 14, 2026. It runs input and output guards built from validators on Guardrails Hub and can generate output that matches Pydantic models. It can also run as a Flask REST service. Each validator on Guardrails Hub carries its own license, so confirm the terms of every validator you chain before you deploy it.
Guardrails AI repositoryLlamaFirewall framework
MIT licensed framework that layers PromptGuard 2, AlignmentCheck, CodeShield and custom regex or code scanners across chat models and agents. Version 1.0.3 is the latest on PyPI and it needs Python 3.10 or later. AlignmentCheck requires a Together API key, which means an external service and its terms enter your data path. Confirm that dependency with your security team before you select this option.
llamafirewall on PyPIPrompt Guard 2 and Llama Guard 4 models
Meta's classifier models, not frameworks. Prompt Guard 2 labels prompts as benign or malicious, and Llama Guard 4 classifies prompts and responses. Both ship under the Llama 4 Community License, which is not an OSI open source license. Read its terms with your legal team, since they apply to how you use and redistribute the weights, even though the surrounding framework code is MIT licensed.
- Llama Guard 4 parameters
- 12B
Validator licenses on Guardrails Hub
Validators are separate packages, so each one can bring a different license and maintainer than the Apache-2.0 core. Before you chain a validator into a production guard, record its license, its maintainer and when it last changed. Confirm these with each package page, since the core library's license does not cover them.
Scanner by scanner: what each option covers
This table sets the documented capabilities of NeMo Guardrails, Guardrails AI and LlamaFirewall side by side, naming the rail, validator or scanner that covers each need. Where the supplied material does not state a capability, the cell says to confirm it, so treat those gaps as open questions to test in a proof of concept before you commit to a replacement.
| Capability | NeMo Guardrails | Guardrails AI | LlamaFirewall |
|---|---|---|---|
| Input and output checks | Input and output rails, plus self-check moderation for both directions. | Input and output guards built from chained Hub validators. | Scanners run on chat and agent inputs; confirm output coverage for your flow. |
| Dialog control | Dialog rails steer conversation flow, configured in Colang. | Not covered in supplied facts. Confirm with a validator or custom code. | Not covered in supplied facts. Confirm before relying on it. |
| Retrieval and tool or execution checks | Retrieval rails screen RAG chunks; execution rails govern custom actions and tools. | Validators check text; confirm whether tool call arguments can be guarded. | Regex or custom scanners can be added; confirm tool-call coverage in your setup. |
| Jailbreak and injection detection | Included in the library's jailbreak and injection detection. | Depends on a suitable Hub validator; confirm the validator exists and fits. | PromptGuard 2 targets direct prompt injection and jailbreak attempts. |
| Structured output | Not a stated feature; confirm for your release. | Generates output matching Pydantic models via function calling or prompt optimization. | Not covered in supplied facts. Confirm if needed. |
| Agent reasoning audit | Not covered in supplied facts. Confirm. | Not covered in supplied facts. Confirm. | AlignmentCheck audits agent reasoning and requires a Together API key. |
| Insecure generated code | Not covered in supplied facts. Confirm with custom actions. | Possible through Hub validators; confirm availability. | CodeShield analyzes generated code in 8 languages using Semgrep and regex rules. |
| REST server mode | Server exposes an HTTP API and a /v1/chat/completions endpoint. | Flask service started with guardrails start, called through the OpenAI SDK. | Not covered in supplied facts. Installs as a Python library; confirm server options. |
| Python version needs | Python 3.11, 3.12 or 3.13 for version 0.25.0. | Not in supplied facts; confirm against current package metadata. | Python 3.10 or later. |
Where the scanners sit in a request path
The path starts with a user prompt that passes PromptGuard 2 on direct input and then NeMo input rails before it reaches the model endpoint. The model's reply goes through NeMo output rails before it returns to the user. Tool calls branch off the model into the agent path, where AlignmentCheck audits each step. AlignmentCheck is the only stage that leaves the client network in this layout, because it calls the Together API with its own key. Guardrails AI guards can occupy the same input and output positions as the NeMo rails. Check whether each stage runs synchronously, what it adds to response time, and whether your data policy allows the outbound call.
Scanner placement in one request, with the external AlignmentCheck call outside the client network.
Why the NeMo microservice sunset changes the NeMo option
NVIDIA has retired the NeMo Guardrails microservice container, so a team that planned to run that container inside its own infrastructure now has to re-plan. The NGC catalog page for the container says NeMo microservices has been sunset as of October 1, 2026, that there will be no new releases, and that the artifact is no longer supported. NVIDIA's archived NeMo Microservices documentation says all new development has moved to NeMo Platform and asks existing users to contact their NVIDIA account team to discuss next steps. The sunset affects the container, not the open-source library, which is a separate artifact.
If your team runs the microservice today, the first action is to contact your NVIDIA account team and ask what support, patches and migration path apply to your deployment and contract. Ask whether security fixes will be issued for the container after the sunset date, since the NGC page says no new releases will follow. Ask which NeMo Platform components, if any, replace the guardrail functions you use, and whether they run in your own cloud account, data center or air-gapped network. Record the answers in your change log before you schedule any upgrade or cutover.
The Apache-2.0 library is a different path and should be evaluated on its own terms. The library's current release is 0.25.0, published on November 19, 2026, and it requires Python 3.11, 3.12 or 3.13. NVIDIA's NeMo Helix project, which NVIDIA's documentation links from the NeMo Platform repository, runs NeMo Guardrails as an inference gateway middleware plugin that applies guardrail configurations to model endpoints. Treat the library, the server built from it and the Helix plugin as three options with different operating models. Confirm with NVIDIA which of them receives long-term support, and confirm how the 0.25.0 deprecation of the LLMRails class, with removal no earlier than 0.27.0, affects your configuration.
Running each option inside your own infrastructure
NeMo Guardrails is a Python library first. The 0.25.0 release requires Python 3.11, 3.12 or 3.13, so your virtual environment or base image has to match one of those versions. Your application can call the library through its Python API, or you can run a guardrails server that loads configurations from a folder and exposes an HTTP API. The project provides a Dockerfile for building a server image. Do not plan around the NGC microservice container, because NVIDIA's notice says NeMo microservices were sunset as of October 1, 2026, with no new releases and no support for that artifact. Rail configurations are files your team owns and reviews, written in Colang.
- Install path: install the nemoguardrails package from PyPI, or build from the Apache-2.0 repository, and pin the version you have tested.
- Serving pattern: a Python API inside your application, or the guardrails server built from the provided Dockerfile.
- Models and services: self-check moderation, fact-checking and hallucination detection make LLM calls, so confirm which model endpoint each rail uses and whether it sits inside your boundary. Confirm whether the NVIDIA content safety and topic safety models run locally in your environment.
- Upgrade path: 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, so schedule the 0.25 migration guide into your change calendar.
- Gateway option: NeMo Helix documents running NeMo Guardrails as inference gateway middleware. That is a different deployment model, so confirm it fits your architecture before you adopt it.
Before approval, run the deployed configuration with outbound network access blocked and confirm which rails fail closed when a model endpoint is unreachable.
Guardrails AI is installed with pip install guardrails-ai, then extended with validators from Guardrails Hub. Hub validators are installed separately and can be chained into a single guard, so the guard is only as contained as the validators you choose. A regex validator and a toxicity validator carry different dependencies and may load different models, so each one needs its own review. The library can also generate structured output that matches Pydantic models using function calling or prompt optimization, which matters if the LLM feeds typed data into downstream systems. It can run as a standalone Flask REST service started with the guardrails start command, and clients call it through the OpenAI SDK.
- Install path: pip install guardrails-ai, then install each Hub validator by name and pin every version.
- Python version: the facts available for this page do not state the supported Python range for the current release, so confirm it in the package metadata before you build the base image.
- Serving pattern: a Python guard inside your code, or a Flask service started with guardrails start that clients reach through the OpenAI SDK.
- Telemetry: guardrails configure asks whether to enable anonymous metrics reporting. Record the answer in your deployment standard and confirm the setting in networks with restricted egress.
- Validator dependencies: any Hub validator that calls an external API or downloads a model must be approved, mirrored internally or replaced. Custom validators are your code to test and maintain.
Before approval, produce a dependency inventory for every validator in each guard and a list of outbound destinations each one reaches.
LlamaFirewall is an MIT-licensed framework installed with pip install llamafirewall, and it needs Python 3.10 or later. It layers scanners: PromptGuard 2 for direct prompt injection, AlignmentCheck for auditing agent reasoning, CodeShield for insecure generated code, and regex or custom scanners. The Prompt Guard 2 model weights are separate from the framework and ship under the Llama 4 Community License, so the model files need their own license review and a copy in your internal artifact store. The package includes demos for OpenAI Agents and LangChain that show how the firewall wraps an agent loop.
- Install path: pip install llamafirewall, with version 1.0.3 as the latest on PyPI. Pin the version and mirror the package internally.
- Python version: 3.10 or later.
- Serving pattern: the facts available for this page describe a library, not a standalone server, so confirm how your chat or agent service will call it before you commit to an architecture.
- Models: Prompt Guard 2 comes in 86M and 22M parameter versions with a 512-token context window. Download, hash and host only the weights your review approves, and confirm which version matches your languages, since the 86M version is multilingual.
- External services: AlignmentCheck requires a Together API key, so it reaches a hosted service. In a restricted network, confirm whether it can be disabled or replaced with a model you host. CodeShield relies on Semgrep and regex rules, so pin and test those components too.
Before approval, confirm the Community License terms for Prompt Guard 2 and whether AlignmentCheck's external call is acceptable under your data handling rules.
Where DeepTeam guardrails fit as a lighter option
DeepTeam's guardrails are worth a look if your main goal is a smaller footprint than the options above. We have not verified DeepTeam's license, release history, scanner list or Python dependencies for this page, so do not shortlist it on the strength of its name or its position here. Before you add it to a comparison, open its repository and confirm the license terms, how recently it was released and whether commits and issues are being handled, the full list of guardrails it ships, and the packages it pulls into your Python environment. A lighter library that is lightly maintained can cost you more later than a heavier one with an active maintainer.
The trade-off to test is narrower coverage against lower operating effort. Start by listing every check your current LLM Guard configuration enables, since LLM Guard was archived on July 9, 2026 and will receive no security fixes. For each check, confirm whether DeepTeam's guardrails cover the same risk with an equivalent detector, and record the gaps. If the gaps fall on checks you rely on for prompt injection, data leakage or unsafe output, a smaller library is the wrong choice regardless of how little it costs to run. If the gaps fall on checks your application does not need, the smaller footprint may be the better fit.
Measure the operating side in your own environment, not in a demo. Install the candidate into a staging copy of the service, pin the version, run your adversarial test set against it, and record how much work each upgrade takes. Compare that with the effort of running NeMo Guardrails or Guardrails AI, which both add their own configuration or service layer. Ask the vendor or maintainer for a written statement of support and release expectations before you commit. If you would rather have an outside team run this comparison, DeployOpen can scope it in writing before any work starts.
How to choose and pilot a replacement
This sequence moves a team from its current LLM Guard setup to a documented replacement decision. Each step produces a written record, so security, legal and platform owners can review the chosen option before anything reaches production.
Inventory the LLM Guard scanners in use
List every input and output scanner your applications call, the service or library that invokes it, the models each one loads, and the environment where it runs. Include scanners enabled only in staging or by a single team, since those are easy to miss. Application and platform owners should do this together, because the calls usually sit in application code. LLM Guard is archived and receives no security fixes, so flag any scanner that acts as a security control. Done means a table with one row per scanner, its code location, its environment and a named owner.
Map each scanner to a candidate replacement
For each row in the inventory, identify the candidate that covers the same risk. Prompt injection and jailbreak detection can map to Prompt Guard 2 inside LlamaFirewall or to the jailbreak and injection detection in NeMo Guardrails. Content and format checks can map to validators from Guardrails Hub in Guardrails AI. If you ran the NeMo Guardrails microservice container, confirm the next step with NVIDIA, since NVIDIA has sunset that microservice. Done means every scanner has at least one candidate, and any gap is listed with a plan for custom code or another control.
Check the license of every model and validator
Record the license for each candidate component separately, since a framework and the models it loads can carry different terms. NeMo Guardrails and the Guardrails AI library are Apache-2.0 licensed, and LlamaFirewall is MIT licensed. Purple Llama models use Llama community licenses, and each Guardrails Hub validator should be checked on its own page. Confirm that the license of each model file matches the version you plan to deploy. Done means a license register with one row per component, its license, its source and a reviewer's initials.
Confirm Llama Community License terms with legal
Before any Llama model weights are downloaded into a staging or production environment, ask legal to review the applicable license text for each model. Llama Guard 4 and Prompt Guard 2 ship under the Llama 4 Community License Agreement, and the Llama Guard 3 and Prompt Guard models in the Purple Llama license table use the Llama 3.2 Community License. Also ask legal to review the AlignmentCheck requirement for a Together API key, since it adds a third-party service. This review is not legal advice from DeployOpen. Done means a written sign-off from legal recorded in the license register, with the approved model names and versions listed.
Build a staging pilot with recorded attacks
Create a staging copy of the application path that calls the scanners, and place each candidate in front of the same model endpoint. Generate an attack set with garak, which writes a JSONL report of every attempt and a hit log of attempts that found a vulnerability. Replay that set against each candidate and keep the logs with the exact component versions. Pin versions, such as NeMo Guardrails 0.25.0 or LlamaFirewall 1.0.3, so results can be repeated. Done means a baseline table showing which recorded attacks each candidate blocked, missed or flagged for review.
Measure false positives on production traffic
Run each candidate in shadow mode, where it scores requests without blocking them, against sampled production traffic. Use a sample that data handling rules allow you to process, and redact personal data before review. Have application owners read a sample of the requests each candidate would block and mark which blocks were wrong. Compare the false positive results per scanner against the coverage from the pilot, and record the sample size and time window used. Done means a false positive review for each candidate, signed by the application owner, that states what each candidate would have blocked.
Set the review gate for the chosen option
Write the pass criteria before the decision meeting. They should cover coverage of the recorded attack set, the false positive review, the license sign-off and pinned versions for every component. Name who approves the decision and who must re-run the pilot when a library, validator or model version changes. Schedule a repeat of the attack set after each upgrade, because the set only proves the state of the tested versions. Done means a signed gate record stating the chosen option, the tested versions, the open gaps and the owner of the next review.
What buyers ask before replacing LLM Guard
Does LLM Guard's archive mean we must replace it immediately?
No single date forces a change, but LLM Guard was archived on July 9, 2026 and is no longer maintained, so it receives no security fixes. Any new weakness in its scanners will stay unpatched upstream. How urgent this is depends on your exposure: how many scanners you run, whether they sit on public-facing input paths, and which compensating controls already exist. Start with an inventory of every LLM Guard scanner in production and the application paths that call it. Keep the current deployment under your existing controls while you plan the replacement, and record the decision and its reasons for your risk register. The LLM Guard repository is the place to confirm its archive status.
What drives the migration effort away from LLM Guard?
The main drivers are the number of scanners in use, how they are wired into your applications, and the runtime they must run on. Each scanner needs a documented replacement or a decision to drop it. Integration style matters: in-process library calls, a separate service, or agent and RAG pipelines each change the work. Runtime requirements also affect planning. LlamaFirewall needs Python 3.10 or later, and NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13. Some components add external dependencies: LlamaFirewall's AlignmentCheck scanner requires a Together API key, which means a vendor account and key management before it can run. Custom scanners you wrote yourself usually take the most time to port and test.
Can our own team migrate off LLM Guard without outside help?
Yes, many teams can, provided they have engineers who can read the current scanner configuration, build a test set from their own prompts and responses, and own the decision about which findings block traffic and which only log. Outside help tends to add the most value in three places: an independent security review of the new setup, hardening of the deployment in your own cloud or data center, and documentation that compliance and security reviewers can check. DeployOpen plans, implements, integrates, hardens and documents self-hosted platforms in the client's own infrastructure, and runs security testing of AI systems. Your team still needs to define acceptance criteria, because a tool cannot decide what your business should accept.
Which parts of a guardrail migration are one-time and which recur?
The one-time work covers mapping each scanner to a replacement, writing rails or validators, integrating them into the application, building an initial test suite and documenting the result. The recurring work is what keeps the setup safe after go-live. It includes tuning thresholds and handling false positives, reviewing model updates (Llama Guard 4 replaces the Llama Guard 3-8B and 3-11B-vision models in one model, so a switch changes what you test), tracking releases and deprecations, upgrading Python and dependencies, and retesting after every change. For example, NeMo Guardrails 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, so teams on that API will need a migration step on a schedule of their own.
What should a quote for replacing LLM Guard include?
A useful quote follows from a written scope, and it should state what is in and out of that scope. Ask for an inventory of current scanners and call paths, the target tool chosen for each scanner with reasons, the environments covered (development, staging and production), integration work, the testing approach and acceptance criteria, and the deliverables: configuration, runbooks, test results, a retest and handover notes. Also ask what is excluded, such as model hosting, third-party API charges, licenses, and your own engineering time. DeployOpen works on fixed-scope engagements where scope, deliverables and timelines are agreed in writing before work starts. It does not publish a price list, and a quote follows from that written scope. Ongoing upgrades and continuous testing are available as retainers, which should be priced separately.
How long does a pilot take, and what does it need from us?
No duration is published for this work, and any figure a provider gives should appear in the written scope. Pilot length depends on scanner count, the number of environments, and how quickly your team can supply test data. A pilot usually needs a non-production environment that matches production, a sanitized sample of real prompts and responses, the model endpoints and credentials, a named owner who decides which findings block and which only log, and agreed pass criteria. A good pilot runs the old and new scanners against the same traffic and compares the results. Factor in procurement for any third-party keys, such as the Together API key that AlignmentCheck requires, because account approval can add lead time before testing starts.
Do we need one tool to replace every LLM Guard scanner?
No, and most teams end up combining tools. Guardrails AI builds guards from validators published on Guardrails Hub, such as regex matching or toxicity detection, which can be chained together. NeMo Guardrails provides input, dialog, output, retrieval and execution rails, with self-check moderation, jailbreak and injection detection. Meta's LlamaFirewall layers PromptGuard 2 for direct prompt injection, AlignmentCheck for agent reasoning, CodeShield for generated code and regex or custom scanners. Check licenses per component: LlamaFirewall is MIT licensed, while Llama Guard 4 and Llama Prompt Guard 2 ship under the Llama 4 Community License Agreement. If you consider NVIDIA's NeMo microservice container, note that NVIDIA sunset it as of October 1, 2026, with no new releases, so confirm the current path with NVIDIA before you commit.
How DeployOpen scopes and supports a guardrail replacement
DeployOpen works on LLM Guard replacements as a self-hosted implementation inside your own cloud accounts, data centers or air-gapped networks. We scope the replacement against your application, your inputs and outputs and your review requirements before any build starts.
How we scope
- Inventory which LLM Guard scanners your application actually runs on prompts and responses today.
- Map each scanner to a candidate replacement, such as NeMo Guardrails, Guardrails AI or Meta's LlamaFirewall, and record the gaps.
- Agree the deliverables, timelines and responsibilities in writing before work starts, since most engagements are fixed-scope.
How we build
- Deploy the chosen guardrail components in your infrastructure with your identity, logging and data handling controls.
- Configure input and output rails or validators against the scanner behavior identified during scoping, and test them against prompt injection and data exposure cases.
- Confirm which components need external model services or API keys, and document where any data leaves your environment.
How we hand over
- Deliver architecture notes, configuration files and runbooks that your platform and security teams can review and maintain.
- Record test results, known limitations and the evidence your compliance reviewers ask for, without issuing any audit or certification.
- Walk your engineers through upgrades and version pinning so the replacement does not become the next unmaintained tool.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover, scoped in writing.
- Retest guardrail configurations after library upgrades, new model versions or changes to your application's prompts.
- Ask any vendor or partner to confirm license terms, release status and support windows before you rely on them.

