Replacing LLM Guard after the project was archived

LLM Guard was archived on 9 July 2026 and is no longer maintained. This page explains how to inventory the scanners you rely on, map them to maintained guardrails and cut over safely.

On this page

Replacing LLM Guard after the project was archived: why the scanner inventory comes first

If your team runs LLM Guard input and output scanners in front of language models, the first job is to write down exactly which scanners are in use, where they sit and what they block. The protectai/llm-guard repository was archived by its owner on 9 July 2026, and its README states that the project and its associated models are no longer under active development or maintained. The replacement path is maintained guardrails, and it starts from an inventory of the scanners you actually rely on, not from a list of everything LLM Guard offers. LLM Guard documents 15 input scanners and 20 output scanners, but most deployments use a small subset, and only that subset needs a replacement.

No new LLM Guard rollouts are recommended. The work here is about supporting the deployments you already have, keeping them safe while they run, and moving them to platforms that still receive releases. For rails that govern conversation flow, input and output checks and topic limits, plan against NeMo Guardrails, which is Apache-2.0 licensed and whose current release is 0.25.0. For scanner-style checks such as regex, toxicity or format validation, plan against Guardrails AI with validators from Guardrails Hub. Note that NVIDIA has sunset the NeMo microservice container, so do not build a new deployment on it. Confirm with NVIDIA which package and platform your existing NeMo setup should move to, since the sunset notice points to a successor platform rather than to the library alone.

For each scanner in the inventory, record the input or output side, the threshold or configuration in use, the Python version of the host (NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, while the last LLM Guard release on PyPI requires Python 3.10 or newer but below 3.13), and which application calls it. Then map each scanner to a rail or validator and run the old and new checks side by side on recorded traffic before cutover. The mapping exercise will show scanners with no direct equivalent, which need a custom validator or a different control entirely.

What the migration must preserve, and where each requirement comes from

This table lists what a replacement for LLM Guard must keep working, the source behind each requirement, and what it means for the build. Read it as a checklist to agree with security, compliance and platform owners before cutover, since most rows point to a parallel run rather than a switch.

RequirementSourceWhat it means for the build
Continuity of blocking behaviorTeam constraint: existing applications already depend on LLM Guard decisionsRecord which requests are blocked, sanitized or allowed today, then replay that traffic against NeMo Guardrails or Guardrails AI before any traffic moves. Keep the LLM Guard API running in parallel until cutover.
Documented coverage of each scannerArchive notice: the repository was archived on 9 July 2026 and is no longer maintainedMap every input and output scanner in use to a rail or validator, and mark any gap as an accepted risk with an owner. Do not assume a scanner with no equivalent is covered.
Logging of blocked and allowed requestsEU AI Act Article 12(1) and Article 19(1) for high-risk systems, if they apply to your use caseLog each guard decision with the policy version, the scanner or rail that fired, and the outcome. Confirm with counsel whether your system is high-risk and which retention rules apply.
Latency within the existing budgetTeam constraint: the current guard latency budget per requestMeasure LLM Guard latency on production-like traffic first. Guard checks from Guardrails AI or NeMo Guardrails add time and classifier model load, so benchmark both in the parallel run.
Evidence trail for the changeTeam constraint: security and compliance reviews of the guard layerKeep dated test results from the parallel run, the scanner-to-rail mapping, approved policy changes and the cutover record. Ask an independent assessor which of these artifacts they expect.
Supported runtime and versionsPyPI metadata: LLM Guard 0.3.16 (19 May 2025) requires Python 3.10 or newer below 3.13; NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13Check that the target runtime fits both platforms. A Python version that suits the old scanners may not run the replacement, so plan the environment before the parallel run.
Air-gapped or offline model accessTeam constraint: whether guard models and validator packages must be imported across a network boundaryConfirm which classifier models and validator packages the replacement downloads at runtime. Plan an offline import path and a process for updates, since no vendor will push fixes into your environment.

Which maintained guardrails fit each LLM Guard scanner family

LLM Guard bundled input and output scanners behind one API, so each scanner family needs a named home in the replacement. The cards below cover the two maintained libraries that fit most of those families and the gateway that can enforce them, along with the version and compatibility checks to run before you commit.

NeMo Guardrails for dialog and injection rails

NeMo Guardrails is Apache-2.0 licensed and its 0.25.0 release was published on 19 November 2026. Its input, dialog, output, retrieval and execution rails cover the work that LLM Guard's Prompt Injection, Ban Topics and Toxicity scanners did, configured in Colang. Its library includes jailbreak and injection detection and self-check moderation models. Confirm that each LLM Guard scanner has a rail or model with equivalent behavior on your own traffic, and check that your runtime uses Python 3.11, 3.12 or 3.13.

NeMo Guardrails repository

Guardrails AI validators for pattern checks

Guardrails AI is Apache-2.0 licensed, and v0.11.0 was published on 14 August 2026. Its guards are built from validators on Guardrails Hub, which fit the scanners that check defined patterns, such as regex matching for secrets, banned strings or JSON structure. Validators install separately after pip install guardrails-ai and can be chained. Confirm that each validator you need is published on the Hub and that its behavior matches the LLM Guard scanner it replaces.

Guardrails AI repository

Structured output validation with Pydantic

Guardrails AI generates output that matches Pydantic models through function calling or prompt optimization. This is the closest replacement for LLM Guard's JSON output scanner, and it also covers checks that depend on expected field types. Confirm which of your applications rely on JSON validity alone and which need field-level rules, because the second group needs a model definition rather than a text check.

LiteLLM as the enforcement point

LiteLLM is an AI gateway that calls more than 100 LLM APIs in OpenAI format and includes guardrails, logging and cost tracking. It is MIT licensed except for its enterprise directory, and v1.105.1 was published on 14 October 2026. Placing guard checks here means applications call one endpoint and every guard decision is logged in one place. Confirm which guardrail integrations your LiteLLM edition exposes and whether the enterprise directory features you need are covered by your license.

LiteLLM repository

Plan for the LLMRails deprecation

NeMo Guardrails 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. Teams that migrate LLM Guard's Python calls into NeMo should write new integration code against Guardrails and pin versions in their lockfiles. Run your parallel tests on the version you will ship, and schedule a review of the NVIDIA 0.25 migration guide before any upgrade past 0.25.0.

How traffic runs through both guard stacks during parallel testing

A request leaves the application and reaches the AI gateway, which sends it to the live LLM Guard scanners that still decide what the user sees. The same request is copied in shadow mode to the candidate NeMo Guardrails or Guardrails AI stack, whose verdict is not returned to the user. Both verdicts are written to a self-hosted log store, and teams compare them before moving the live path. Cutover happens only after the comparison results are accepted, and the check to confirm is that every blocked request has a logged decision from each stack.

Shadow testing runs candidate guards beside LLM Guard until comparisons pass.

How the migration runs from inventory to cutover

The sequence moves a live LLM Guard deployment onto maintained guardrails in six controlled phases, so each scanner's replacement is proven on the organization's own traffic before LLM Guard is switched off. Each phase closes with a written output that the next phase depends on.

  1. Inventory every enabled scanner and threshold

    Start by listing each application, gateway route and script that calls LLM Guard, then record which input and output scanners are enabled on each path and the threshold or configuration set for every scanner. Capture the scanner versions and the models they load, since the archived project's models also need to be accounted for. The step closes with a signed-off inventory that the application owners have confirmed, because a scanner that nobody remembers enabling is the most common source of surprise at cutover.

  2. Map each scanner to a replacement

    For each inventoried scanner, identify the closest NeMo Guardrails rail or Guardrails Hub validator and note how the behavior differs, including what the replacement detects, what it misses and where it runs. Record every scanner with no direct equivalent as a gap, along with the owner who must decide whether to accept it, build a custom validator or add another control. The output is a mapping table with a gap list that the security and compliance leads have reviewed.

  3. Build the replacement policies in parallel

    Implement the mapped rails and validators in a non-production copy of the gateway configuration, keeping policies in version control so each change can be reviewed and traced. Confirm that the target Python version and dependencies of each replacement package match the runtime you operate, and that any required model files can be imported into your environment. The step is complete when every mapped control loads and passes a basic test suite of known-good and known-bad prompts.

  4. Shadow run both stacks on recorded traffic

    Send copies of recorded production requests through both LLM Guard and the new guardrails without letting the new stack affect users, and log each decision from both sides with the request identifier. Keep the recorded traffic within the data handling rules that apply to prompts and logs, and restrict access to the shadow logs. The output is a paired decision log for every sampled request, which the next phase uses as its evidence base.

  5. Compare false positives and misses on your data

    Have reviewers label a sample of the paired decisions as correct, false positive or miss, and calculate the rates separately for each scanner and each application. Review the disagreements first, since they show where the replacement is stricter, looser or differently scoped. Agree in writing which differences are acceptable, which need a policy change and which block cutover. The step closes with a comparison report that the application owners and the risk owner have accepted.

  6. Cut over behind the gateway with a rollback path

    Switch each route to the new guardrails in stages, using the AI gateway to direct traffic and keep the LLM Guard path configured so that any route can be returned to it quickly. Monitor blocked requests, latency and error rates during each stage, and record the rollback steps and the people authorized to trigger them. The step is complete when every route runs on the new guardrails for an agreed observation period and the rollback has been rehearsed at least once.

  7. Decommission LLM Guard and keep the audit trail

    After the observation period closes, remove LLM Guard from the gateway and application configurations, delete its packages and the models it loaded from the runtime, and revoke any credentials it used. Retain the inventory, the mapping table, the gap decisions, the shadow comparison report, the cutover records and the version history of the policies as a dated audit trail. The output is a decommissioning record that shows what was removed, when, and who approved it.

Evidence the parallel run and cutover should produce

This table lists the records a parallel run and cutover should leave behind, the component that produces each one, and what a reviewer will look for. Read it as a checklist to agree before the parallel run starts, since missing records are hard to reconstruct after cutover.

Evidence itemProduced byWhat a reviewer checks
Scanner inventoryApplication repository and gateway configuration exportEvery LLM Guard input and output scanner in use, the model and version it runs with, and which applications call it
Scanner-to-rail mappingGuardrail configuration repositoryEach retired scanner traced to a NeMo Guardrails rail or Guardrails Hub validator, with gaps and deliberately dropped checks recorded and justified
Parallel-run comparison resultsObservability platform receiving both guard pathsSide-by-side verdicts for the same traffic, including false positives and missed detections reviewed by a named owner
Blocked-request logsAI gateway logs and guardrail decision logsEach block or redaction with timestamp, policy version, rule triggered and the user or service identity, retained for the period set by internal policy
Configuration version historyGuardrail configuration repository with commit historyEvery policy change linked to a version, author and reason, so any past decision can be tied to the exact rules active at that time
Change approvalsTicketing or change management systemSign-off from security, the application owner and, where required, compliance before each cutover step and rollback path
Retest recordSecurity testing report and retest trackerPrompt injection and data leakage test cases run against both guard paths before and after cutover, with results and fixes
Log retention and access settingsGateway and observability platform configurationWhere logs are stored, who can read them and how long they are kept, checked against the record-keeping duties in Articles 12 and 19 of the EU AI Act where the system is in scope

Where scanner mappings usually break

LLM Guard scanners do not map one to one onto NeMo Guardrails rails or Guardrails Hub validators, so the migration plan should treat each scanner as a behavior to reproduce, not a name to swap. The most common break is anonymization state across input and output. The Anonymize scanner replaces detected entities in the prompt with placeholders, and the Deanonymize scanner restores them in the response using a vault kept for that request. A rail that only masks input has no equivalent restore step, so the model may echo placeholders to users, or real identifiers may reappear in output. Decide whether the replacement flow stays in the gateway, in the application, or in a rail, and confirm where the mapping table lives and how long it is kept.

Other breaks come from output expectations and thresholds. The JSON and No Refusal output scanners check format and refusal behavior in ways that depend on how the application calls the model, so a structured-output validator in Guardrails AI, which generates output matching Pydantic models, may not check the same thing. Token Limit and Invisible Text are simple rules that are easy to port but easy to forget. Scores from Prompt Injection, Toxicity and Malicious URLs also use thresholds that do not carry over between tools, so a blocking level tuned for one scanner can produce many more false positives or misses in another. Record the threshold and the blocked-request decision for every scanner, then compare the two stacks on your own traffic.

The model files need separate attention. Scanners such as LLM Guard downloaded classifier models when they first ran, and NeMo Guardrails and Guardrails AI rely on their own models or validator packages. For air-gapped or restricted environments, inventory every model file, record its source and checksum, and re-verify it before import, because an archived project will not publish fixes or updates. Confirm each mapped behavior with a test set drawn from your own prompts and responses, including multi-turn sessions that exercise anonymization, and keep the results as evidence before cutting over.

Questions teams ask before replacing LLM Guard

How much effort does replacing LLM Guard take, and what drives it?

The effort depends on how many scanners you run, how far you have tuned their thresholds, and how many applications call them. Each scanner needs a matching rail or validator, a decision on whether it runs on input, output or both, and a test set that shows it still blocks what it blocked before. LLM Guard documents 15 input scanners and 20 output scanners, so a team that uses only a few will have a much smaller job than one that enabled most of them. Custom thresholds add work because each one has to be re-derived and justified in the new configuration. Ask any partner for a quote that lists scanners, applications, and threshold decisions as separate line items.

Can our internal team replace LLM Guard without outside help?

A team with experience in Python services, LLM application testing and security review can usually do the migration internally, especially for a small scanner set. The harder parts are usually not the code. They are agreeing policy with the owners of each risk, building representative test data, and deciding what a false positive costs the business. Teams without a security test function often underestimate the parallel-run and evidence work. Decide early whether the internal team will own the policy and the test evidence, and whether an outside partner will cover only the parts that need independent testing or hands-on capacity.

What does the migration need from our teams?

Three inputs matter most. First, representative traffic samples, with personal data handled under your own policies, so that you can see what the current scanners actually block and allow. Second, named policy owners for each risk category, such as data leakage, prompt injection and unsafe output, who can approve or reject rule changes. Third, test data, including known attacks, benign prompts that look suspicious, and outputs that must never reach users. Without these, the parallel run can show that the two stacks disagree but not which one is right. Confirm with your security and privacy teams how samples may be stored and reviewed before collection starts.

Do we have to run LLM Guard and the new guardrails in parallel?

Running both in parallel is not strictly required, but it is the safer path for most production systems. In a parallel run, the current scanners keep making the blocking decisions while the new rails log what they would have done. You then compare the two decision sets on the same traffic and resolve each mismatch before cutover. Skipping this step means your first real evidence of the new behavior comes from users. If you cannot run in shadow mode for an application, use a staged rollout with a narrow user group and a rollback plan, and record why the parallel run was skipped.

Does NeMo Guardrails replace every LLM Guard scanner?

No single replacement covers every scanner one for one, so the mapping has to be done scanner by scanner. NeMo Guardrails includes self-check input and output moderation, jailbreak and injection detection, fact-checking, hallucination detection, and content and topic safety models, and it supports input, dialog, output, retrieval and execution rails. Some LLM Guard scanners, such as those for secrets, invisible text, token limits or malicious URLs, may need a Guardrails Hub validator, custom code, or a separate control in the gateway. Confirm each mapping with a test case rather than assuming coverage from the category name.

What does the NeMo microservice sunset mean for our plan?

NVIDIA has retired the NeMo Guardrails microservice. Its NGC container page says NeMo microservices was sunset as of October 1, 2026, with no new releases and no continued support for that artifact. The library itself is still maintained: NeMo Guardrails 0.25.0 was published on November 19, 2026 under Apache-2.0. Plan around the library or the NeMo Helix control plane, not the retired container. Ask NVIDIA's account team, through the contact path in NVIDIA's archived documentation, what support is available for your deployment. Also confirm that any Python version you choose is supported, because NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13.

How long should we keep LLM Guard running after cutover?

Keep LLM Guard in place until the new rails have passed your tests on production-like traffic and the parallel-run mismatches are resolved and documented. After cutover, many teams keep the old scanners available in a rollback path for a defined period, but that period should be set by your change and risk owners, not by a vendor. The project was archived on July 9, 2026, and its last PyPI release, 0.3.16, dates from May 19, 2025, so do not expect fixes for new attacks. Record the removal date, the rollback criteria and the owner of the decision in your change record.

Can DeployOpen run the migration for us, and what does it cover?

DeployOpen plans, implements and tests self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. For a guardrail migration, that can include the scanner inventory, the rail or validator mapping, the parallel-run setup, security testing of the new controls, and documentation for your compliance reviewers. DeployOpen does not issue audit reports or certifications; independent auditors do that. A quote follows from the written scope, so ask for the inventory and mapping work as separate items from the parallel run.

What to ask an implementation partner before the cutover

Start by asking how the partner will build the scanner inventory. Ask for a list of every LLM Guard input and output scanner in use, the application and route each one protects, and the threshold and configuration values set for each. Ask whether the partner records the threshold in version control so a later change is traceable. LLM Guard documents 15 input scanners and 20 output scanners, so a partial list is common, and the inventory is the basis for every mapping decision that follows. Also ask who signs off on the list: the application owner, the security team, or both.

Next, ask how mappings to NeMo Guardrails rails or Guardrails Hub validators will be tested on your own data rather than on generic examples. Ask for a test set built from real but de-identified prompts and outputs, a record of how many blocked and allowed decisions the old and new controls produce on that set, and a review of every disagreement. Ask how shadow-mode decisions are logged, which fields are captured, and where those logs are stored, including whether prompt text is retained and who can read it. Confirm the retention period with your compliance team before the partner starts.

Finally, ask how the partner handles platform changes and rollback. NVIDIA has sunset the NeMo Guardrails microservice and points existing users to NeMo Platform, so ask which NeMo component the partner will deploy, whether it has a supported path for your use, and how the team will confirm that with your NVIDIA account contact. Ask for a documented rollback that restores LLM Guard or the previous gateway configuration within a stated window, and a retest plan after cutover that repeats the test set, checks gateway logs and runs a prompt injection test. Agree in writing who approves the final switch.

How DeployOpen scopes and runs a guardrail migration

DeployOpen treats the move off LLM Guard as a scoped migration: first a written inventory of the scanners your applications call, then a mapped set of replacement rails or validators, run in parallel with the existing setup until the team signs off on cutover. The work runs inside your own infrastructure, and the written scope sets what is covered before any changes are made.

How we scope

  • Inventory every LLM Guard input and output scanner called by each application, gateway route and service account
  • Record the scanner configuration, thresholds and any custom patterns that the current policies depend on
  • Agree in writing which applications, environments and risk categories the migration covers, with fixed deliverables and timelines

How we build

  • Map each scanner to a NeMo Guardrails rail or a Guardrails Hub validator, and flag scanners with no direct equivalent for redesign
  • Deploy the replacement guardrails in your infrastructure alongside LLM Guard and compare blocked and allowed decisions on representative traffic
  • Test prompt injection, data leakage and unsafe output cases against both configurations before any cutover is approved

How we hand over

  • Deliver the scanner-to-rail mapping, configuration files, deployment artifacts and the parallel-run comparison results
  • Document the cutover steps, rollback procedure and the logging of blocked requests so your security and compliance teams can review them
  • Provide a retest of the cut-over controls and a record of open gaps that remain with your team

How we support

  • Offer ongoing support, upgrades and continuous testing of the guardrail configuration as a retainer
  • Track new releases of the replacement frameworks and assess their impact on your deployed policies
  • Confirm with your team, before any engagement, which upgrade and testing cadence fits your change control process

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.