NeMo Guardrails vs LLM Guard

LLM Guard is archived and receives no security fixes, so new guardrail work should start from NeMo Guardrails. This page shows when each fits, what decides the choice and how to plan a move.

On this page

NeMo Guardrails vs LLM Guard: when each one fits

LLM Guard was archived on July 9, 2026 and no longer receives security fixes, so a team starting a new runtime guardrail rollout should begin with NeMo Guardrails. NeMo Guardrails is an Apache-2.0 project that NVIDIA still releases, with version 0.25.0 published on November 19, 2026. It fits teams that need to express conversation policy: Colang dialog rails that steer topics, input and output rails, and execution rails that gate custom actions and tools. If your application is a chat assistant with defined topics, or an agent that calls tools you must control, those rails map directly to the problem. Plan for the Colang learning curve and for the Python 3.11 to 3.13 requirement in the 0.25.0 release.

LLM Guard still matters in one situation: an existing scanner pipeline that already runs in production and has been tested. Its documentation lists 15 input scanners, including Prompt Injection, Secrets and Token Limit, and 20 output scanners, including Sensitive, Malicious URLs and JSON. Keep it running only under a written migration plan with a named owner, a removal date and compensating controls, because no security fixes are coming. Its last PyPI release, 0.3.16, requires Python 3.10 or newer but below 3.13, so a runtime upgrade may force the decision earlier. Before you schedule the cutover, confirm that each scanner you depend on has an equivalent rail or check in NeMo Guardrails and test the replacement against the same traffic, since the two tools' outputs will differ.

The decision turns on three checks. First, list the risks you must block, such as prompt injection, data leakage, off-topic conversations and unsafe output, and map each to a rail or scanner. Second, confirm the Python version your platform team supports, since NeMo Guardrails 0.25.0 requires 3.11, 3.12 or 3.13 while LLM Guard does not run on 3.13. Third, confirm the model dependencies. NeMo Guardrails includes self-check, fact-checking, hallucination, content safety and jailbreak detection components, and some of these depend on models you must host or call. Check the NeMo Guardrails documentation for which components need a model endpoint, and confirm that the models you need can run inside your own network.

NeMo Guardrails vs LLM Guard by scenario: which fits your team

This table maps common team situations to the better fit between NeMo Guardrails and LLM Guard, and names the condition that would change each answer. Read each row against your own architecture and assessor expectations. The main takeaway is that LLM Guard is archived, so any scenario that requires a maintained component points to NeMo Guardrails.

ScenarioBetter fitReason and condition that changes the answer
New deployment needing conversation policiesNeMo GuardrailsColang dialog and topic rails define conversation flows that scanners do not model. If you only need stateless content scanning, confirm whether a simpler scanner covers the requirement.
Existing LLM Guard deploymentKeep running, plan migrationLLM Guard was archived on July 9, 2026 and receives no security fixes. Keep it isolated, document the risk, and plan a move to a maintained option.
RAG application needing retrieval chunk checksNeMo GuardrailsRetrieval rails inspect chunks before they reach the model. Confirm that your retrieval pipeline can pass chunks through the rail configuration without custom glue code.
Agent with tool callsNeMo GuardrailsExecution rails apply checks to custom actions and tools. Confirm the tool-call policies you need can be expressed in Colang and tested in your environment.
Regulated team that must show a maintained componentNeMo GuardrailsNeMo Guardrails is Apache-2.0 licensed and still receives releases, with 0.25.0 published on November 19, 2026. LLM Guard is archived, so an assessor is likely to flag it as unmaintained. Confirm your assessor's expectations for vendor support and patch cadence.
Team needing a fast, scanner-only input and output filterLLM Guard, with cautionLLM Guard documents 15 input scanners and 20 output scanners, which suits pattern-level checks. Because it is archived, use it only for existing systems and plan a replacement.
Team relying on NVIDIA NeMo MicroservicesConfirm the migration path firstNVIDIA sunset the NeMo Guardrails microservice on October 1, 2026. Confirm with your NVIDIA account team which open-source path applies before choosing either tool.

How NeMo Guardrails and LLM Guard sit in the request path

Both tools sit between an application and a model, but they do different jobs. NeMo Guardrails wraps the conversation in configurable rails, while LLM Guard applies a library of scanners to text going in and coming out. The cards below cover how each is invoked, which Python versions each needs, and why the retired NeMo microservice is a different product from the library.

NeMo Guardrails rail types

NeMo Guardrails runs five rail types: input rails on the user message, dialog rails that steer the conversation flow, retrieval rails over RAG chunks, execution rails around custom actions and tools, and output rails on the model reply. Rails are configured in Colang, so the policy lives in files your team must write, review and version. Check which rails your use case needs before you estimate the configuration work, because execution and retrieval rails only apply if your app calls tools or retrieves documents.

NeMo Guardrails repository

NeMo Guardrails invocation paths

You can call NeMo Guardrails through its Python API inside your application, or run it as a guardrails server that loads configurations from a folder and exposes an HTTP API, including a /v1/chat/completions endpoint. The server route lets clients that already speak the chat completions format send traffic through the rails without code changes on their side. Confirm how your gateway, authentication and logging sit in front of that server before you choose it as the enforcement point.

NeMo Guardrails docs

LLM Guard scanner pipeline

LLM Guard documents 15 input scanners, such as Prompt Injection, Secrets, Token Limit and Toxicity, and 20 output scanners, such as Sensitive, Malicious URLs, JSON and No Refusal. Each scanner inspects a prompt or response and returns a verdict you act on in your own code. It is a scanning layer rather than a conversation controller, so you decide where the calls sit and what a failed scan does. Confirm the scanner set and model downloads you need, since several scanners depend on Hugging Face models.

Input and output scanners
15 / 20
LLM Guard docs

Python versions and deployment modes

NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13. LLM Guard's last PyPI release, 0.3.16 from May 2025, requires Python 3.10 or newer but below 3.13, so the two cannot share one interpreter pin without planning. LLM Guard runs as a pip library or an API server. Your platform team should confirm the interpreter version it will standardize on, since a shared runtime may rule out one of the two tools without any code change.

NeMo Python range
3.11 to 3.13
llm-guard on PyPI

Library versus retired microservice

NVIDIA sunset the NeMo Guardrails microservice as of October 1, 2026, and says no new releases will follow for its container. The open-source library and its guardrails server are a separate, still-published Apache-2.0 project. Any design that assumed the microservice must be re-planned around the library or another NVIDIA platform. Ask NVIDIA's account team what applies to your existing deployment before you migrate.

NeMo Microservices sunset notice

Where each control runs in a chat request

The request starts at the client application and enters the self-hosted service. In this layout, LLM Guard's input scanners check the prompt first, then NeMo Guardrails input and dialog rails apply their policies before the model endpoint is called. The model's raw completion passes through NeMo Guardrails output rails and then LLM Guard's output scanners before the reply returns to the client. Everything inside the boundary runs in your infrastructure. Check each hand-off: which component sees the raw prompt, which one writes logs, and whether a blocked request returns a consistent refusal. The order shown is one option, so confirm your own sequence in testing.

One possible layout of both controls around a self-hosted model.

What each platform blocks, depends on and needs to run

This table compares what NeMo Guardrails and LLM Guard check, which Python versions and deployment modes they support, and which model dependencies they bring. Read the maintenance row first, because the LLM Guard archive changes the decision for any new rollout. Latency, identity integration and logging are not covered by the facts available here, so confirm them with each vendor or in your own test environment.

RequirementNeMo GuardrailsLLM Guard
Maintenance and licenseApache-2.0 and actively released. Version 0.25.0 was published November 19, 2026. LLMRails is deprecated in favor of Guardrails.MIT, but archived on July 9, 2026 and no longer maintained. Last PyPI release is 0.3.16 (May 19, 2025).
Input checksInput rails, self-check input moderation, and jailbreak and injection detection.15 documented input scanners, including Prompt Injection, Anonymize, Secrets, Toxicity and Token Limit.
Output checksOutput rails, self-check output moderation, fact-checking and hallucination detection.20 documented output scanners, including Factual Consistency, Malicious URLs, JSON, No Refusal and Sensitive.
Dialog policiesDialog rails written in Colang control conversation flow and allowed topics.No dialog rail type appears in its documented scanner lists. Confirm before relying on conversation-level policy.
RAG chunk and tool checksRetrieval rails screen RAG chunks. Execution rails govern custom actions and tools.Scanners act on prompts and responses. Confirm any chunk-level or tool-call checks in your own test.
Python versionsPython 3.11, 3.12 or 3.13 for version 0.25.0.Python 3.10 or newer, but below 3.13.
Deployment modesPython API, or a guardrails server with an HTTP API, a provided Dockerfile and a /v1/chat/completions endpoint.Python library installed with pip, or deployed as an API server.
Model dependenciesIncludes NVIDIA content safety and topic safety models. Self-check rails depend on the model you configure. Confirm model hosting and licenses.Scanners depend on models on Hugging Face, which the project states are no longer maintained.
Latency, identity and loggingNot covered by the supplied facts. Confirm latency, SSO and audit logging with NVIDIA or in your own test.Not covered by the supplied facts. Confirm latency, SSO and audit logging with the maintainer or in your own test.

License, release status and paid options for each platform

NeMo Guardrails is an Apache-2.0 library developed in the NVIDIA-NeMo/Guardrails repository. NVIDIA still publishes new releases, with 0.24.1 on September 16, 2026 and 0.25.0 on November 19, 2026, and 0.25.0 is published to PyPI with the Apache-2.0 license expression. Its release status is active, so the main planning questions are version pinning and migration rather than whether the project continues.

  • License: Apache-2.0, which applies to the library code. Check the license file for the exact terms before you redistribute or embed it in a product.
  • Current releases: 0.24.1 on September 16, 2026, followed by 0.25.0 on November 19, 2026.
  • Deprecation to plan for: 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. NVIDIA publishes a 0.25 migration guide.
  • Runtime requirement: 0.25.0 requires Python 3.11, 3.12 or 3.13, which affects base images and build pipelines.
  • Paid editions: none are documented in the supplied facts for the library. Ask NVIDIA whether any commercial support applies to your use.

Before you pin a version, confirm the license terms for your use case, read the release notes for each version you plan to run, and ask NVIDIA in writing about support terms if your procurement requires them.

What drives the running cost of each guardrail setup

The largest one-time cost is engineering time spent deciding what each setup should block and then tuning it. With NeMo Guardrails, that means writing Colang flows for input, dialog, output, retrieval and execution rails, wiring in the models those rails call, and testing the flows against your own conversations. With LLM Guard, the work is choosing from its 15 input and 20 output scanners, setting thresholds, and deciding which scanners run on which routes. Both need a named owner who approves policy changes. Ask for policy authoring and threshold tuning as separate line items, because false positives that block legitimate users often consume more hours than the first build.

Recurring cost comes from three places: compute on every request, model storage and refresh, and upgrades. Every guard sits in the request path, so cost grows with traffic and with the number of model-backed checks that run per call. Confirm whether your NeMo rails call an LLM for self-check moderation and what that adds per turn. LLM Guard's models are hosted on Hugging Face, and the project is no longer maintained, so you will host and check those artifacts yourself without upstream fixes. On the NeMo side, version 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, so someone must budget a migration. NeMo 0.25.0 requires Python 3.11, 3.12 or 3.13, while the last LLM Guard release on PyPI, 0.3.16, supports Python below 3.13.

Before you sign, ask the implementer for a written scope that itemizes policy authoring, tuning cycles, a regression test suite for your attack and benign traffic, environment and Python version setup, model artifact hosting and refresh, and handling of deprecations such as the LLMRails change. Ask who performs retesting after each policy change and who is on call for false-positive escalations. For an existing LLM Guard deployment, request a separate migration estimate, since no new LLM Guard rollouts are recommended. DeployOpen does not publish a price list, and most engagements are fixed-scope, so the quote should follow from that written scope and state which upkeep items are retainers rather than one-time work.

Moving from LLM Guard to NeMo Guardrails: what changes and in what order

This sequence turns an archived LLM Guard setup into a NeMo Guardrails setup that you have tested against your own traffic before any production switch. The output is an inventory, a mapping of each scanner to a rail or separate control, a regression test set, and a documented cutover with LLM Guard retired.

  1. Inventory every LLM Guard scanner in use

    The platform or application owner lists each input and output scanner the deployment calls, including the scanner's configuration values, the models it loads from Hugging Face, the endpoint or library call that invokes it, and the team that owns the resulting block decision. Scanners that are enabled in code but never change a response should be flagged, since they still count toward the migration. The step is done when every active scanner appears in one table with its owner and its current thresholds. Confirm the exact configuration keys against the LLM Guard documentation for your installed version, since the last PyPI release is 0.3.16 and the project is no longer maintained.

  2. Map each scanner to a rail or control

    The security architect decides, for each scanner, whether NeMo Guardrails covers the same risk through an input, dialog, retrieval, execution or output rail, whether a built-in model or integration covers it, or whether it needs a separate control outside the guardrail layer. Scanners for prompt injection, toxicity, sensitive data and malicious URLs usually need an explicit decision because the NeMo side may use a different detector or model. The output is a mapping sheet with three columns: source scanner, target rail or control, and open questions. The step is done when the security owner has signed off on every row, including the rows marked as unresolved.

  3. Write Colang policies and server configuration

    The engineering team writes the Colang flows and the configuration folder that the NeMo Guardrails server loads, following the mapping from the previous step. Thresholds from LLM Guard are recorded as reference data in a separate file, not copied into Colang logic, because the detection methods differ. The team tests the configuration locally with the Python API before running the server, and builds the server image from the provided Dockerfile if the deployment uses containers. The step is done when the configuration loads without errors on the Python version your platform supports, which the NeMo Guardrails 0.25.0 release requires to be 3.11, 3.12 or 3.13. Confirm that the NeMo Guardrails version you pin is one you can support for your deployment window.

  4. Build a regression set from prior traffic

    The team exports a sample of previously blocked and allowed prompts and responses from LLM Guard audit logs, removing or tokenizing personal data first under your privacy controls. Each record is labeled with the expected outcome and the reason, such as a prompt injection attempt or a response containing a credential. Known attack prompts from garak or promptfoo can be added to widen coverage. The output is a versioned test set stored with the configuration. The step is done when a reviewer has checked the labels on a representative sample and the set covers each scanner from the inventory. Test cases transfer directly, while the labels remain the reference for both platforms.

  5. Run both guardrails in parallel

    The platform team routes a copy of live or replayed traffic through both LLM Guard and NeMo Guardrails, without letting NeMo's decisions affect users. The team compares block and allow outcomes against the labeled set and against each other, and records latency and any errors from the model dependencies each system loads. Disagreements are reviewed one by one, with each outcome assigned to a fix in the Colang policy, a threshold change, or an accepted difference documented for the risk owner. The step is done when the disagreements are resolved or accepted in writing and latency is measured under your expected load, not only in a test environment.

  6. Cut over with a documented rollback

    The change owner moves the request path to NeMo Guardrails after the risk owner approves the parallel results. The change record names the rollback step, the monitoring signals to watch, and the person who can reverse the switch. The team confirms that audit logging for NeMo Guardrails captures the decisions your compliance reviewers need, since the logs now come from a different system. The step is done when production traffic runs through NeMo Guardrails under the approved configuration and the rollback has been rehearsed in a non-production environment.

  7. Retire LLM Guard and keep evidence

    After a stable period agreed in the change plan, the team removes LLM Guard from the request path, deletes its dependencies and cached models from the images, and revokes any service credentials it used. The team archives the inventory, mapping sheet, test set, parallel-run results and cutover record together, so an auditor or internal reviewer can trace each control. The step is done when no service or image still loads LLM Guard and the evidence bundle has been reviewed by the compliance owner. Because LLM Guard receives no security fixes, keeping it running in any path after cutover leaves a known gap.

Where NeMo Guardrails and LLM Guard projects usually run long

Air-gapped rollouts usually take longer than the library install. NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, so the first task is mirroring that interpreter and every dependency into your artifact repository. The larger risk is model weights. The library includes self-check moderation, fact-checking, hallucination detection, NVIDIA content safety and topic safety models, and jailbreak and injection detection. Depending on which rails you enable, these may fetch models on first use. Confirm in the NeMo Guardrails documentation which models each rail loads, where they come from, and how to stage them ahead of time. LLM Guard carries a similar exposure. Its README states that its models on Hugging Face are no longer maintained, so any offline copy you pin is a version you must review and own yourself.

The heavier work is policy. NeMo Guardrails defines input, dialog, retrieval, execution and output rails in Colang, so security and product owners must read and approve the rail definitions themselves, not only the Python code that loads them. Schedule a review cycle in which the security lead signs off on blocked categories and the product owner signs off on user-facing refusal wording. LLM Guard's scanners are chosen per pipeline, which is quicker to start, but each scanner and its threshold still needs a named owner. In both cases, the effort that most often runs long is building evaluation data: a labelled set of benign and adversarial prompts and responses that shows each control blocks what it should and passes normal traffic. Without that set, every tuning change becomes a guess and cannot be defended in a review.

Two integration points decide whether the review process holds up. Logs from the guardrails server and from calling applications should reach your SIEM with the caller identity and the policy version attached, so reviewers can trace a blocked answer to a user and a rule set. NeMo Guardrails exposes an HTTP API and a /v1/chat/completions endpoint, so authentication and authorization belong in the gateway you place in front of it, and designing that gateway is your work. Confirm what the server logs by default before you rely on it. The API is also changing. NeMo Guardrails 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earliest than 0.27.0. If your code calls LLMRails today, schedule a migration pass and pin your version until it is complete. The NeMo Guardrails documentation is the starting point for the 0.25 migration guide.

Questions buyers ask before choosing or moving guardrails

Is LLM Guard still safe to run in production?

LLM Guard is no longer maintained, so it receives no security fixes, and its owner archived the repository on 9 July 2026. The project README says the library and its Hugging Face models are no longer under active development. Existing deployments can keep running, but you carry the risk of any flaw found after archiving. DeployOpen supports existing LLM Guard deployments and helps plan a move to a maintained guardrail option such as NeMo Guardrails. We do not recommend new LLM Guard rollouts. The last PyPI release, 0.3.16, was uploaded on 19 May 2025, so check your pinned versions and dependencies against your own security review process.

What drives the implementation effort for NeMo Guardrails?

Effort follows the number of rails you need, how many conversation flows you must write and test in Colang, and which built-in models or third-party integrations you enable. Each rail type (input, dialog, retrieval, execution and output) adds configuration and test cases. Your inference stack matters too: NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, and its built-in checks may call separate models that need capacity in your own infrastructure. Ask for a written scope that lists each rail, each model dependency and the test cases you expect to see. Note that the LLMRails class is deprecated in 0.25.0 in favor of Guardrails, with removal planned no earlier than 0.27.0, so confirm that your configuration targets the current API.

How long does a migration from LLM Guard take?

No fixed duration can be stated from the researched facts, and any number quoted without a scope would be a guess. The main variables are the number of scanners you use, since LLM Guard documents 15 input scanners and 20 output scanners, and the amount of labeled test data you have to show that each replacement control blocks what the old one blocked. Teams with a small scanner set and existing evaluation data usually finish faster than teams that rely on many scanners with custom thresholds. Ask for a timeline tied to a written scanner inventory, a mapping from each scanner to a NeMo Guardrails rail or model, and an agreed test plan before work starts.

What does the work need from our team?

Plan for time from security engineering, the team that owns your LLM application, and whoever signs off on policy. Security engineers need to define which risks must be blocked and how false positives will be handled. Application engineers need to expose the request path, provide logs and wire guardrail calls into the service. Your compliance lead should review the evidence, such as test results and configuration history. Someone who knows Python deployments should own the runtime. Confirm these roles in writing so that each party knows what it must provide and by when.

Can our internal team migrate guardrails without outside help?

An internal team can do it if it already runs Python services in its own infrastructure, has people comfortable with declarative policy files, and has time to build and maintain a test suite. Outside help is most useful when the team needs an independent review of blocking coverage, help turning an informal scanner setup into a documented configuration, or a fixed-scope engagement with a written deliverable list. DeployOpen deploys and hardens self-hosted platforms in your own infrastructure and prepares the evidence that your compliance team reviews, but it does not issue audit reports or certifications. Decide the split between internal and external work based on who will maintain the rails after handover.

How should we confirm latency and model dependencies?

Measure them on your own hardware with your own traffic, because neither tool's published facts give you a latency figure you can rely on for your setup. For NeMo Guardrails, list every built-in check you enable and note which ones call a separate model, since that adds a dependency and its own load. For LLM Guard, record which scanners load Hugging Face models and where those weights are stored, given that the project's models are also unmaintained. Run a benchmark with representative prompts and responses, record p50 and p95 latency with each rail or scanner turned on, and repeat after each version upgrade. Ask your vendor or implementation partner to deliver these measurements as part of the written scope.

How DeployOpen helps choose, implement or migrate guardrails

DeployOpen works on NeMo Guardrails vs LLM Guard as a self-hosted implementation inside your own infrastructure, starting from your written requirements rather than a tool preference. Because LLM Guard is archived, most of our work on this pairing is supporting existing deployments and planning a move to a maintained guardrail option.

How we scope

  • We confirm which risks your application must block, such as prompt injection, data leakage and unsafe output.
  • We inventory existing LLM Guard scanners, their deployment mode and the applications that call them.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we build

  • We implement the chosen guardrail option in your cloud account, data center or air-gapped network.
  • We write and test policies, including Colang rails for NeMo Guardrails where dialog or topic control is needed.
  • We wire guardrail checks into request paths and test them against attack cases before any production cutover.

How we hand over

  • You receive configuration, policy documentation and test results covering the agreed scope.
  • We document access control, audit logging and data handling settings so your security team can review them.
  • We walk your engineers through running, updating and rolling back the guardrail layer on their own systems.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • We can track upstream releases and plan upgrades, including the NeMo Guardrails 0.25 migration steps.
  • Ask any provider for a written quote tied to a defined scope, and confirm maintainer status before committing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.