Why teams are migrating from LLM Guard to NeMo Guardrails now
If your organization runs LLM Guard in production, the project is now archived: the owner archived the repository on 9 July 2026, and the README states that LLM Guard and its models on Hugging Face are no longer under active development or maintained. The last PyPI release, 0.3.16, was uploaded on 19 May 2025 and requires Python 3.10 or newer but below 3.13, so the runtime you can keep patched is itself a constraint. NeMo Guardrails is the maintained target most teams evaluate, but the effort depends on three things you can count: how many input and output scanners you run, how much custom logic sits around them, and how many clients call the LLM Guard API.
No new LLM Guard rollouts are recommended. Existing deployments can keep running while you plan, but every new integration added now is one more component to replace later. The move is a scanner-by-scanner replacement, not a single switch. Each scanner blocks or flags a different kind of traffic, depends on different models, and has thresholds that were tuned to your data, so each one needs its own replacement and its own proof that it blocks at least what it blocked before. Start by confirming which scanners are enforcing decisions today and which only log, because that determines which replacements are urgent.
NeMo Guardrails is licensed under Apache 2.0, and NVIDIA publishes a configuration model built around config.yml, Colang files and optional Python actions. Confirm the Python version your target runtime supports against the NeMo Guardrails README, since it lists support for Python 3.10 through 3.13, and confirm the Colang version you will standardize on, because Colang 1.0 is the default and NVIDIA documents a migration path to 2.x that still requires manual review. Those two decisions shape everything that follows, so make them before you write the first rail.
Which LLM Guard scanners map to NeMo Guardrails rails and which need rework
This table compares each LLM Guard input and output scanner with the NeMo Guardrails rail, moderation model or application code that usually replaces it. Use it to sort scanners into direct replacements, partial matches and work that moves into custom actions or application code. Confirm every NeMo row against the release you plan to deploy, because rail names and bundled models change between versions.
| LLM Guard scanner | Closest NeMo Guardrails option | Fit | What to confirm or rebuild |
|---|---|---|---|
| Prompt Injection (input) | Jailbreak and injection detection in input rails | Partial | Measure detection against your own attack set; tune thresholds and test against LLM Guard results before cutover |
| Toxicity (input and output) | Self-check moderation or NVIDIA content safety models in input and output rails | Partial | Confirm the bundled content safety model and its license; re-tune thresholds on your traffic |
| Ban Topics (input) | Topic safety model or self-check input rail with a written topic policy | Partial | Rewrite banned topics as explicit policy text and Colang flows; validate examples |
| Secrets (input) | No direct rail; use regex-based custom actions or a dedicated secret detector | Rework | Keep detection outside the rail if needed; test with your own credential formats |
| Anonymize (input) | No one-to-one rail; use Presidio masking in custom actions or input rails | Rework | Presidio replaces the analyzer step; the restore mapping must be rebuilt in application code |
| Deanonymize (output) | No one-to-one rail; restore mapping kept in application code | Rework | Store token-to-value mappings securely and confirm the restore path before enabling it |
| Invisible Text (input) | Custom input action checking Unicode categories | Rework | Write and test the check; NeMo does not provide a same-named rail |
| Token Limit (input) | Application code or an input action before the model call | Rework | Usually simpler outside the rail; enforce limits where requests are accepted |
| JSON (output) | Application code or an output action validating the schema | Rework | Validate structure in the application that consumes the output |
| Malicious URLs (output) | Custom output action or external URL reputation service | Rework | Choose and confirm the reputation source; no bundled equivalent is assumed |
| Sensitive (output) | Output rail with PII detection through Presidio or custom actions | Partial | Confirm entity types and thresholds against your data classes |
| Factual Consistency (output) | Fact-checking and hallucination detection in output rails | Partial | Confirm the supported method and model requirements; measure against your test set |
| No Refusal (output) | Custom output action or dialog flow; no direct rail assumed | Rework | Define refusal patterns for your application and test them |
Documented import paths, conversion tools and APIs for the move
NeMo Guardrails offers a few documented ways to move configuration and run the rails, and none of them imports LLM Guard settings directly. The cards below cover the conversion tool, the two runtime interfaces and the deployment options, so you can choose how the replacement runs and what you must rebuild by hand.
Colang 1.0 to 2.x conversion tool
The nemoguardrails convert command migrates Colang 1.0 files to the Colang 2.x syntax. It only applies if your team has already written Colang rails, since LLM Guard has no Colang output to convert. Converted files still need manual review, because flow logic and action calls can change meaning during conversion. Plan a review pass and a test run against your attack and benign sets before you rely on any converted file.
No LLM Guard import format
LLM Guard has no export or import format that maps its scanners onto NeMo Guardrails configuration. Each scanner setting, threshold and model choice must be re-expressed by hand in config.yml, Colang files or Python actions. Treat your scanner inventory as the source for this rewrite, and record each mapping so reviewers can trace every LLM Guard scanner to its new rail.
Python API for in-process calls
The Python API lets your application load a rails configuration and call it inside the same process as the LLM. This matches how many LLM Guard deployments were used as a library installed with pip. Check the Python version first, since NeMo Guardrails supports Python 3.10 through 3.13, and pin the package version you tested against.
Guardrails server with a config folder
The guardrails server loads configurations from a folder and exposes them over HTTP. It is the closest match for a deployment that currently runs the LLM Guard API server, so clients can keep sending requests to a similar endpoint during a staged cutover. Confirm the request and response shapes against the documentation, since they differ from the LLM Guard API and clients will need changes.
NeMo Guardrails docsDockerfile for a server image
The project provides a Dockerfile to build a server image that packages the library, your configuration folder and your action code. Build the image from a pinned release, then store it in your own registry. Your configuration and any Python actions become part of the image build, so keep them in version control and rebuild the image whenever a rail changes.
NeMo Guardrails repositoryMicroservice on Kubernetes with Helm
NVIDIA also offers the NeMo Guardrails microservice, a production container image built on the same configuration model and deployed on Kubernetes with Helm. Choose it when your platform team already runs Kubernetes and needs cluster-level scaling and rollout control. Confirm licensing and support terms with NVIDIA before adopting it, since the open-source library and the microservice are separate products.
How a staged cutover from LLM Guard runs
The sequence moves an LLM Guard deployment to NeMo Guardrails one scanner and one endpoint at a time, with each stage closed by a recorded decision rather than a single switch-over date.
Inventory scanners and call sites
List every input and output scanner the deployment runs, with its thresholds, the models it loads and the application code, service or client that calls it. Record for each scanner whether it blocks traffic or only logs. The owning engineering team produces this map, and the security team signs off on which scanners enforce policy. The step is done when every LLM Guard call path appears in the map and every scanner has a stated enforcement mode.
Map scanners to NeMo rails
For each inventoried scanner, decide its replacement: an input rail, output rail, retrieval rail or a Presidio-based masking step, and note where a classifier or custom action is needed. Flag any scanner without a maintained equivalent so it is handled separately. The output is a mapping table reviewed by the security lead, who confirms which rails will carry enforcement. The step closes when each scanner has a named replacement or a documented gap.
Pilot rails in a non-production configuration
Build the NeMo Guardrails configuration in a non-production environment using config.yml, Colang files and any Python actions the mapping requires. Engineers test each rail against sample inputs and confirm the configuration loads with the chosen Python version. Expect manual review of any Colang converted from earlier syntax, as NVIDIA's migration guide advises. The step is done when each mapped rail loads and responds to its test cases in the pilot environment.
Run a shadow comparison
Send production-equivalent traffic to both LLM Guard and the NeMo Guardrails server, with NeMo decisions logged beside LLM Guard decisions but not enforced. Compare the two logs per scanner to find cases where NeMo misses what LLM Guard blocked and cases where it blocks benign traffic. Assign each discrepancy to a rail change or an accepted difference. The step is done when the discrepancy log has an owner and a disposition for every mismatch.
Gate on attack and benign set results
Run the same attack set and benign set against both systems and compare missed attacks, false positives and latency. Security and product owners set the acceptance criteria in advance, including that NeMo must block at least what LLM Guard blocked on the attack set. Failing rails return to the pilot stage. The gate closes with a signed comparison report that records the results and any accepted exceptions.
Cut over endpoint by endpoint
Move clients to the NeMo Guardrails server one endpoint at a time, starting with the lowest-risk call path, while keeping LLM Guard available for rollback. After each move, monitor blocks, errors and latency and compare them with the shadow results. The owning team confirms each endpoint in a change record before the next one moves. The step is done when every inventoried call path is served by NeMo Guardrails.
Decommission the LLM Guard service
Once no traffic reaches LLM Guard for an agreed observation period, stop the service, remove its API server and model caches, and revoke any credentials it used. Keep the configuration, logs and comparison reports for audit and incident review. The platform owner records the decommission in the change log and updates the asset inventory. The step is done when the LLM Guard service is off, its artifacts are archived and the inventory no longer lists it as running.
Keeping PII redaction when Anonymize is replaced with Presidio
Masking and restore are two separate jobs, and only the first one maps cleanly. LLM Guard's Anonymize scanner detected personal data in prompts and replaced it with placeholders, and its Deanonymize scanner used a vault to put the original values back into the model output. In a NeMo Guardrails deployment, the masking side is typically built as an input rail that pairs NeMo's sensitive data detection with Microsoft Presidio analysis, which is the same analyzer Anonymize already relied on. Confirm the Presidio version, recognizers and language settings you need against your current LLM Guard thresholds before you copy any entity list, because a default configuration will not match the entities you tuned.
The restore step is the part you must rebuild yourself. NeMo Guardrails does not provide a drop-in equivalent of the Deanonymize vault, so the mapping from placeholder to original value has to live in application code with its own storage, encryption, retention window and access controls. Keep that mapping scoped to a single request or session where you can, restrict which services and roles can read it, and log every restore without logging the restored values. Storing original values creates a new PII store that your security and compliance teams will need to review, so treat it as a system in its own right rather than a side effect of the rail.
Test restore on real model outputs before cutover, not on synthetic strings. Run a sample of production-like prompts through the masked path, capture what the model returns, and confirm that placeholders are restored correctly, that no placeholder leaks to the end user when the mapping is missing, and that output rails still see the content they need. Include multilingual text, names that occur more than once, and values the model rewrites or abbreviates, since those are the cases where restore most often fails silently.
Request flow during a parallel run of LLM Guard and NeMo Guardrails
The diagram starts at the client request reaching the application, which forwards the prompt to both LLM Guard and NeMo Guardrails inside the self-hosted trust boundary. Both scanners run in shadow mode, so only the existing LLM Guard decision is enforced while the NeMo Guardrails result is written to a decision log. A comparison step then reads both results and flags disagreements before any model call proceeds. Check that the log captures every scanner pair, so mismatches can be reviewed before cutover.
Shadow scanning sends each prompt to both guardrails, but only LLM Guard decides what reaches the model.
What drives the effort and cost of the migration
This table lists the factors that change how much work a move from LLM Guard to NeMo Guardrails takes, who pays for each part, and whether the cost is one-time or recurring. Use it to scope your own inventory before asking for a quote, since most of the variation comes from the inputs in the first three rows.
| Driver | Why it changes effort or cost | One-time or recurring | What to request or confirm in a quote |
|---|---|---|---|
| Scanners and thresholds in use | Each active input or output scanner needs a mapped rail, a threshold decision and a test. Scanners that only log need a different decision than scanners that block. | One-time | A written scanner inventory with thresholds and block or log mode per scanner, and the scope tied to that count. |
| Custom scanners or code around LLM Guard | Custom scanner classes, wrapper code and vault handling must be rewritten as NeMo actions or Colang flows, which usually adds more work than config mapping. | One-time | A list of custom code paths and whether the quote includes rewriting them or only porting behavior. |
| Clients and endpoints calling LLM Guard | Each client that calls the library or the API must be pointed at the new endpoint and its response format checked, so more callers mean more regression runs. | One-time | Confirmation of how many services call LLM Guard and whether client changes are in scope or handled by your teams. |
| Attack and benign test sets | Without a labeled attack set and a benign set from real traffic, parity with LLM Guard cannot be shown, and test creation becomes a separate task. | One-time, with reruns | Whether the quote covers building the sets, running both systems against them and reporting missed attacks and false positives. |
| Self-check and model-based rails | Self-check moderation, content safety and jailbreak models may need GPU capacity or a hosted model endpoint, and each adds latency and a per-call cost to the design. | Hardware or hosted access recurs; design is one-time | Which models are planned, where they run, and who owns the GPU capacity or model API account and its bill. |
| Colang 1.0 to 2.x conversion volume | NVIDIA documents a conversion tool, but converted configurations still need manual review, so the amount of Colang in use drives review time. | One-time | Whether Colang files are being written new or converted, and the expected review scope for each converted file. |
| Python version constraints | LLM Guard 0.3.16 requires Python 3.10 or newer but below 3.13, while NeMo Guardrails supports 3.10 through 3.13, so the target runtime may need an image or environment change. | One-time | The Python version of the current host and image, and whether the quote includes rebuilding the runtime for the target. |
| Library or microservice deployment | The open-source library runs inside your application process, while the NeMo Guardrails microservice runs as a container on Kubernetes with Helm, which adds cluster, ingress and operations work. | Microservice operations recur | Which deployment model is chosen, who runs the Kubernetes platform, and what monitoring and upgrade support is included after cutover. |
What usually goes wrong and how to prevent it
The failures below share a root cause: an LLM Guard scanner did a job that nobody wrote down, so the replacement quietly stops doing it. Each card names one failure, the signal that shows it, and a check to run before the cutover date is set.
Silent gaps from scanners without a rail
Some LLM Guard scanners blocked traffic with no obvious equivalent in NeMo Guardrails. A scanner may have been configured to block, not just log, and its replacement may exist only as a log entry or be missing entirely. Before migrating, match every blocking scanner to a named rail, a custom action, or a documented decision to accept the risk. Confirm each mapping with test traffic that the old scanner blocked, not with the config file alone.
NeMo Guardrails docsFalse positives from untuned thresholds
Thresholds copied from LLM Guard defaults rarely fit a new scanner's scoring model or your traffic. Expect a spike in blocked benign requests after the first switch, and a drop in catches if thresholds are raised to quiet the noise. Build a labeled benign set from real logs, record block rates per rail, and adjust thresholds against that set. Do not tune against the attack set alone.
PII restore data kept too long
LLM Guard's Vault-style restore kept original values in memory so Deanonymize could put them back in responses. A Presidio-based replacement that stores the mapping in a cache, a log or a database extends the life of raw personal data. Decide where the mapping lives, set an expiry, and confirm that logs record only masked values. Ask your privacy or compliance lead to sign off on the retention period before go-live.
Converted Colang that behaves differently
The nemoguardrails convert tool turns Colang 1.0 into Colang 2.x, and NVIDIA states that converted configurations still need manual review. Flow ordering, intent matching and default responses can change without any error message. Treat converted files as drafts. Run the same test suite against the Colang 1.0 and converted versions, and review every rail that returns a user-facing message.
Colang 2 migration guideCutover without a rollback path
Switching every client to the NeMo Guardrails server in one change leaves no quick way back if false positives or missed attacks appear in production. Keep the LLM Guard API running for the full cutover window, route clients endpoint by endpoint, and write down the exact step that returns traffic to LLM Guard. Rehearse the rollback in staging before the first production client moves.
Model dependencies that shift after archive
LLM Guard scanners load models from Hugging Face, and the project and its models are no longer maintained. A dependency can disappear, change its license terms, or be replaced by a new revision without notice, so the scanner's behavior changes even though your code did not. Pin model revisions and container images, mirror the artifacts you depend on, and record the checksum of each one in your migration map. Confirm the license of each model before you rely on it.
- Archive date
- 9 July 2026
Questions teams ask before moving off LLM Guard
What drives the cost of moving from LLM Guard to NeMo Guardrails?
The cost follows the scope of the move, mainly the number of scanners in use, how many applications call them, and how much tuning and testing each replacement needs. Scanners that map cleanly to a built-in NeMo rail cost less to move than custom Python actions, multi-tenant policies or retrieval rails over several knowledge bases. Ongoing costs are infrastructure for the NeMo Guardrails server, model hosting for any classifier rails you choose, and the time your team spends reviewing alerts. Ask any quote to split one-time work (inventory, configuration, testing, cutover) from recurring work (upgrades, retesting, support), and to state which items are priced separately.
How long does a migration from LLM Guard take?
Duration depends on scope, not on a fixed figure. The main variables are the number of input and output scanners in production, whether each one blocks traffic or only logs, how many clients call the API, and how many thresholds need re-tuning on real traffic. A deployment with a small, well-documented scanner set moves faster than one where scanners were added over several years without records. Ask for a plan that lists the phases, the exit criteria for each scanner and the dependencies on your change-control calendar, so the timeline is tied to named work rather than an estimate.
What does the migration need from our team?
The work needs four inputs from your side before it can be planned properly:
- A scanner inventory listing every input and output scanner in use, its thresholds, the models it loads and the callers that depend on it.
- Traffic samples, with sensitive data handled under your own policies, so decisions can be compared on realistic prompts and responses.
- Test sets covering attacks, benign requests and your own secret and PII formats.
- Environment access to the existing deployment, a staging environment that matches production and the deployment target for the NeMo Guardrails server.
The inventory is the first deliverable because every later estimate depends on it.
Can our internal team migrate from LLM Guard alone?
Your team can do it alone if it has engineers who know the application's prompt flow, can build and run a Python service, and can review security decisions with the people who own risk. The areas that tend to need the most specialist attention are PII handling with Presidio, jailbreak and injection testing, and the parts of the NeMo Guardrails configuration that use Colang. A partner is useful when the team lacks capacity or wants independent testing of the replacement before cutover. Whichever path you choose, the people who approve the guardrail's behavior should sign off on the test results.
Will existing LLM Guard deployments keep running during the move?
Yes, the existing deployment can keep running while the replacement is built, provided it is kept stable and contained. The LLM Guard project was archived on 9 July 2026, so it receives no fixes, but it can still serve traffic. Keep the current API server and model files in place, watch the Python version limit (the last PyPI release, 0.3.16, requires Python 3.10 or newer but below 3.13), and plan the decommission only after each client has moved. Running both side by side during the cutover is the normal pattern, so the old service stays the fallback until the new rails have passed your comparison tests.
Does NeMo Guardrails cover every LLM Guard scanner one for one?
No, and the mapping should be checked scanner by scanner. NeMo Guardrails provides input, dialog, retrieval, execution and output rails, and its library includes self-check moderation, jailbreak and injection detection, content safety and topic safety, but these do not replace every LLM Guard scanner with the same behavior or thresholds. Some scanners will map to a built-in rail, some will need a custom action or a separate library such as Presidio, and some may be better replaced by a different tool. Confirm each mapping against the NeMo Guardrails documentation for the version you deploy and test it against your own traffic before retiring the old scanner.
How do we know the replacement blocks at least what LLM Guard blocked?
You prove it with a comparison, not an assumption. Run the same attack, benign and secret test sets through both the existing LLM Guard scanners and the NeMo Guardrails configuration, then compare missed attacks, false positives and latency for each scanner. Record the decisions in a table so every difference is explained before cutover. Where the replacement misses something LLM Guard caught, either fix the rail or document the accepted gap and get the risk owner's sign-off. Ask your partner or internal team to keep these results as evidence for later reviews.
What should we ask a provider for in a migration quote?
Ask for a written scope that lists each scanner being replaced, the target rail or library for each one, the environments covered and the test sets used for comparison. Request the phases and exit criteria, the deliverables at each phase (inventory, configuration, test results, cutover runbook, decommission record) and the client inputs needed to start. Ask which items are one-time and which recur, such as retesting after upgrades, and whether support is offered as a retainer. Finally, confirm who owns the configuration, test sets and evidence after the engagement ends.
What this migration does not cover
This page covers replacing LLM Guard scanners with NeMo Guardrails rails and deploying the result as a server in infrastructure you control. That includes mapping scanners to input, output and retrieval rails, wiring Presidio for PII, configuring jailbreak and content safety rails, and running a staged cutover. It does not cover choosing a different guardrail framework from scratch, and it does not cover training models that your rails depend on.
Other replacement paths are covered on sibling pages. If your team is weighing Guardrails AI validators from the Guardrails Hub, whether standalone or through NeMo Guardrails, read the Guardrails AI migration page first, because validator licenses and maintenance status must be checked before adoption. Narrow scanner replacements, such as prompt injection, secrets, toxicity and banned topics, and the Anonymize and Deanonymize pair, each have their own page. Confirm which of these you need before you start, so the scanner inventory drives the decision rather than a single framework choice.
Also outside DeployOpen's scope are AI model training, fine-tuning a classifier on your own traffic, and agent engineering, such as designing the tools or workflows an agent calls. DeployOpen can test and harden a guardrail deployment and its surrounding controls, but building the models or agents themselves is a separate effort. Ask any partner, including DeployOpen, to state in writing which of these items sit inside its quote, and keep model work and agent work on separate tracking so that a guardrail finding does not stall unrelated product changes.
How DeployOpen works on this
DeployOpen plans and delivers the move from LLM Guard to NeMo Guardrails inside infrastructure you control, scanner by scanner, with a written scope agreed before work starts. Each step produces evidence that the replacement blocks at least what LLM Guard blocked today.
How we scope
- Inventory every LLM Guard input and output scanner in use, with thresholds, models and call sites.
- Map each scanner to a NeMo Guardrails input, output or retrieval rail, or to a named alternative.
- Agree deliverables, test sets and cutover criteria in writing before any build begins.
How we build
- Write config.yml, Colang files and Python actions for each rail, kept under version control.
- Wire Presidio for PII detection and masking where LLM Guard Anonymize and Deanonymize were used.
- Run the same attack and benign prompts against LLM Guard and the new rails, then compare misses and false positives.
How we hand over
- Deliver the guardrails server image build, deployment configuration and a staged cutover runbook.
- Document each rail's behavior, configuration keys, known gaps and the retest results behind them.
- Walk your operations and security teams through monitoring, logging and decommissioning the LLM Guard API.
How we support
- Support the cutover window with shadow comparison reports and decision logs for each endpoint.
- Plan upgrades when NeMo Guardrails releases new versions, including Colang migration review.
- Offer ongoing support, upgrades and continuous testing as a retainer after handover.

