Cutting over from the LLM Guard API to a NeMo Guardrails server

A staged way to move clients off the archived LLM Guard API onto a NeMo Guardrails server, using shadow scanning and endpoint-by-endpoint moves instead of a big-bang switch.

On this page

Why the LLM Guard API cutover should run in parallel with the old service

Your LLM Guard FastAPI service is in production, clients call it, and the upstream project was archived on 9 July 2026. The move to a NeMo Guardrails server should be a staged cutover with both services running, not a switch. Keep the LLM Guard API answering live traffic while the NeMo Guardrails server runs beside it, and move clients one endpoint at a time once their decisions match. How long this takes depends on how many endpoints, client applications and scanner configurations you use, so count those first. Confirm the endpoints your clients call, which scanners each endpoint applies, and which of them actually block traffic rather than only logging. The LLM Guard documentation is the reference for the current scanner list and the API server settings you will need to record.

NeMo Guardrails is a different configuration model, not a drop-in replacement. LLM Guard scanners are configured as individual input and output scanners with their own thresholds. NeMo Guardrails expresses protection as rails in a config.yml file, optional Python actions and Colang files, and a guardrails server loads those configurations from a folder and exposes its own HTTP API. Request fields, response shapes, error handling and the meaning of a "blocked" result will differ, so do not assume the two services are equivalent at the API boundary. Compare the request and response contracts your clients depend on, and write down every field a client reads from the LLM Guard response before you design the new one.

Running both services side by side gives you the data to make that comparison safely. Send the same production-like requests to both, record each decision and its scores or reasons, and review the differences before any client moves. Pay particular attention to requests LLM Guard blocks that NeMo Guardrails allows, since those are the gaps that matter for security. Plan the cutover order with your security and platform owners, and keep the LLM Guard service running and reachable until every client has been moved and the comparison has been signed off. Decommissioning comes last.

Which LLM Guard API behaviors map to a NeMo Guardrails server

This table compares the LLM Guard FastAPI service with a NeMo Guardrails server, row by row, so you can see which client calls, configuration and response fields carry over directly and which need redesign. Read the right-hand column as the work you must plan before shadow scanning. The main takeaway is that the scanner-level logic will be rebuilt as rails, so the response contract and per-scanner thresholds need explicit decisions.

BehaviorLLM Guard APINeMo Guardrails server
Configuration sourceScanner list and settings in the API server configuration, one scanner per entryA config folder with config.yml, optional Colang files and optional Python actions loaded by the server
Input checkingInput scanners run on the prompt and return a sanitized prompt plus a per-scanner validity resultInput rails in config.yml run before the model call and can block, rewrite or pass the message
Output checkingOutput scanners run on the model response, with access to the original promptOutput rails run on the model response; confirm which context each rail receives in your version
Retrieval contentNo dedicated equivalent; RAG chunks are usually scanned as input textRetrieval rails scan RAG chunks as a separate rail type, so plan where existing chunk checks move
Per-scanner thresholdsEach scanner accepts its own threshold value in the API configurationThresholds live in the model or action used by each rail; re-tune them on your own traffic, since values do not carry over
Response fieldsScanner-specific fields report scores and a valid flag per scannerResponses follow the guardrails server format; scanner-specific score fields need an adapter or a change in client code
Restore stepDeanonymize reverses Anonymize placeholders using a Vault kept in the request flowNo direct equivalent; the restore step must be rebuilt in an action or in the client, as covered in the Presidio topic
Colang versionNot applicableColang 1.0 is the default; Colang 2.x needs an explicit choice, and converted configurations require manual review after conversion

Documented paths for moving the API layer

NVIDIA documents several ways to get NeMo Guardrails running in place of the LLM Guard API. Each path fits a different stage of the cutover, from a standalone server to a managed Kubernetes deployment. No direct importer from the LLM Guard API exists in the supplied facts, so endpoint mapping is manual and should be confirmed against the current documentation before you commit to a design.

Standalone guardrails server

The NeMo Guardrails server loads configurations from a folder and exposes an HTTP API, and the project provides a Dockerfile to build a server image. This is the closest match to running the LLM Guard FastAPI service as a separate process. Check that each config folder holds one rail set per application, that the server image builds against the Python version your platform team has approved, and that the HTTP request and response shapes are mapped by hand against your existing client calls.

NeMo Guardrails repo

Python API behind a thin adapter

During the transition, a small adapter can expose the old LLM Guard route shapes while calling the NeMo Guardrails Python API underneath. Clients keep their current contracts, so you can move one endpoint at a time and run shadow comparisons. The adapter becomes temporary code you must own, test and remove. Confirm the current Python API call signatures in the documentation, and record which LLM Guard response fields the adapter must still return.

Colang 1.0 to 2.x conversion

Colang 1.0 is the default configuration language, and the nemoguardrails convert tool helps move flows to Colang 2.x. NVIDIA states that converted configurations still need manual review, so budget review time for every flow, not only the ones that fail to convert. Pin the NeMo Guardrails version used for conversion and rerun your attack and benign test sets afterward, because a flow that converts cleanly can still change how a rail triggers.

Colang 2 migration guide

Microservice on Kubernetes with Helm

NVIDIA offers a NeMo Guardrails microservice, a production container image built on the same configuration model and deployed on Kubernetes with Helm. It suits organizations that already run Kubernetes and want the guardrail tier managed like other services. Ask NVIDIA or check the documentation for licensing terms, supported Kubernetes versions, resource sizing and how configurations are mounted, since these decide whether it fits your clusters and your approval process.

NeMo Guardrails docs

Shadow traffic goes to NeMo Guardrails, but LLM Guard still decides

The diagram starts at the client, where requests reach a gateway or router inside the client network. The gateway forwards each request to the LLM Guard API, which stays the authoritative decision during the parallel run, and copies the same request to the NeMo Guardrails server in shadow mode, where its verdict is recorded but not enforced. A comparison store holds both decisions side by side so teams can check agreement per scanner and per endpoint. Only after agreement is verified does the switch move an endpoint so that NeMo Guardrails becomes authoritative. The model provider sits outside the trust boundary, so check that no shadow traffic reaches it.

Parallel run: LLM Guard enforces while NeMo Guardrails runs in shadow.

Sequence for running both services side by side

The sequence moves traffic from the LLM Guard API to a NeMo Guardrails server in verified stages, so each client change is backed by compared decisions and can be reversed without a big-bang switch.

  1. Inventory endpoints and scanner settings

    Start by listing every route that calls the LLM Guard API, the client or service that owns each route, and the exact scanner set, thresholds and model settings configured for it. Record which scanners block traffic and which only log, because that distinction sets the bar the replacement must meet. The step is done when every endpoint has a row in a migration map that the security and platform owners have signed off, and the LLM Guard server configuration is stored in version control so it can be restored later.

  2. Stand up the NeMo Guardrails server

    Deploy the NeMo Guardrails server in the same environment as LLM Guard, using a configuration folder that holds the config.yml file, any Colang files and any Python actions. Pin the Python version to one that both the NeMo Guardrails release you choose and your container base image support, and confirm the server answers a health request and a test prompt before any traffic reaches it. Your team or the DeployOpen team can own this build, and the output is a reproducible image and config folder kept in source control.

  3. Map scanners to rails

    Translate each inventoried scanner into the NeMo Guardrails rail that will replace it, such as input rails, output rails or a custom action for a check with no built-in equivalent. Mark any scanner that has no maintained replacement yet so it is handled in its own sibling migration before cutover. The step closes with a written mapping that names the rail, the model or check it relies on, and the expected decision for each sample input, so reviewers know what they are comparing against.

  4. Shadow-scan a copy of real traffic

    Send a copy of production requests to the NeMo Guardrails server while clients continue to receive LLM Guard decisions. Handle the copies under the same data handling rules as live traffic, including retention, redaction and access limits, because the shadow path processes real prompts and outputs. The step is complete when shadow results are logged for each endpoint with the request identifier, both decisions and the latency of each service.

  5. Compare decisions and fix mismatches

    Compare the two decisions for every shadow request and classify each difference as a missed block, a new false positive or a threshold difference. Missed blocks are blocking issues, and each one is fixed in the rail configuration and re-run against the same sample before the endpoint advances. The output is a mismatch register with a resolution for every entry and a final comparison report that the security owner accepts for each endpoint.

  6. Move clients one endpoint at a time

    Switch one endpoint at a time from LLM Guard to NeMo Guardrails, starting with the endpoint that has the lowest risk and the clearest comparison results. Keep the LLM Guard route in place and record the exact gateway or client setting that selects each backend, so the change can be reverted by restoring that setting. Each switch is verified with live monitoring for blocks, errors and latency before the next endpoint moves.

  7. Keep a tested rollback path

    For every moved endpoint, rehearse the reversal before it is needed by switching the route back to LLM Guard in a non-production environment and confirming that requests are scanned as before. Keep LLM Guard running until the last client has moved and has operated through a full review cycle. This rollback path is what makes the cutover staged rather than a big-bang switch, and its test result is recorded with the endpoint's sign-off.

  8. Decommission LLM Guard after the last move

    Retire the LLM Guard API only after every client route points to NeMo Guardrails and no traffic has reached the old service through the agreed monitoring period. Archive the final configuration, scanner settings and comparison reports, then remove the service, its models and its network paths. Confirm the decommission against the migration map so that each original scanner is either replaced, documented as dropped with an owner's approval or handled in a sibling migration.

What to compare in shadow mode, by decision type

When LLM Guard and NeMo Guardrails both block a request, the replacement is doing its job for that input. Agreement still deserves a short review, because the two systems may block for different reasons. A request can be stopped by a prompt injection rail in one system and by a regex in the other, and that difference matters when you later explain coverage to a security reviewer.

  • Check the reason, not only the verdict: record the scanner or rail that fired on each side and compare them.
  • Check the category: confirm both systems flag the same type of content, such as injection, secrets or toxicity.
  • Owner: the security team signs off on agreement samples, since they confirm the block is correct.
  • Gap type: none. Agreement is not a gap, but a mismatch in reasons can point to a missing rail that happens to be covered by another.

Close this tab by confirming the sample of agreed blocks includes the high-risk categories in your inventory, not just the most common ones.

What drives the cutover effort and duration

This table lists the factors that change how much work a LLM Guard API to NeMo Guardrails cutover takes, which costs are paid once and which recur, and what to request in a written quote. Read each row as a question to answer about your own deployment before you ask for a scope. The main takeaway is that the number of clients and the amount of Colang and scanner threshold work usually matter more than the server itself.

DriverWhy it changes effortHow to keep it down
Endpoints and client applicationsEach endpoint and each calling application needs its own shadow comparison, switch and rollback. More callers mean more change windows to coordinate.Inventory callers first, group endpoints that share a scanner set, and move the lowest-risk client first.
Active scanners and custom thresholdsEvery scanner in use must map to a rail, a maintained replacement or an explicit decision to drop it. Tuned thresholds must be re-measured, not copied.Remove scanners that only log and carry no enforcement. Record each threshold with the traffic it was tuned on.
Scanners that block versus only logBlocking scanners need decision parity before cutover. Logging-only scanners still need a decision on whether NeMo should record the same signal.Mark each scanner as blocking or logging in the inventory before scoping replacement rails.
Colang conversion workColang 1.0 is the default and Colang 2.0 is also supported. NVIDIA's migration guide says converted configurations still need manual review, so conversion is a review task, not a one-command step.Decide the Colang version early, keep Python actions minimal, and test converted flows against the same decision set.
Shadow traffic volumeShadow scanning runs both services on live or replayed requests. Higher volume means more compute on both sides and longer comparison periods before you trust the results.Sample representative traffic, include known attack and benign sets, and set comparison exit criteria in writing.
Rollback requirementsA rollback path must work per endpoint within the agreed window. Stateful pieces such as logs, sessions or vault-style restore steps add test cases.Keep LLM Guard running until every client has passed a rollback drill, then plan decommission.
Client change windowsEach client team has its own release calendar, approval process and freeze periods. Coordination often sets the schedule more than engineering does.Ask each client team for its windows at scoping, and agree the endpoint order before the build starts.
One-time costsScanner mapping, configuration and rails work, shadow test design, client code changes and cutover runs are paid once per deployment, though retesting follows later changes.Ask the quote to list each workstream separately, with the named deliverable and the test evidence it produces.
Recurring costsNeMo server operations, container image updates, model and rail updates, and periodic retesting against new attack sets continue after cutover.Ask for the expected update cadence and who owns each recurring task after handover.

What usually goes wrong during an API cutover

Most failed cutovers do not fail loudly. They fail because two scanners disagree quietly, a client reads a field nobody documented, or an endpoint moves before its tests pass. Each card below names one of these risks and the step that prevents it.

Silent drift between scanner and rail outputs

LLM Guard returns a scanner verdict and a sanitized value per scanner, while a NeMo Guardrails server returns rail results and a generated response. The same prompt can be blocked by one and passed by the other without any error. Before any client moves, record the decision each system makes on the same captured traffic, and define in writing what counts as a match, such as the same block or pass outcome per category. Review every mismatch by hand before accepting a replacement rail.

NeMo Guardrails docs

Clients relying on undocumented response fields

Internal services often parse fields in the LLM Guard API response that were never part of a published contract, such as scanner scores, sanitized text variants or error strings. A NeMo Guardrails server will return a different envelope. Capture the exact response shape each client reads, including fields it ignores by accident, and list them in the migration map. Where a client needs a field the new server does not return, add an adapter in front of the server rather than changing the client during the cutover window.

Shadow traffic that is not representative

Mirroring a small or synthetic sample of prompts tells you little about production. Shadow traffic often misses long prompts, multilingual input, tool outputs and the retrieval chunks that output scanners see most. Ask the application owners which traffic classes matter most, then build the shadow sample to include each class with its share of volume. Keep shadow results separate from enforcement, so a mismatch in the sample never blocks a real user.

Keeping the old service alive on Python

LLM Guard's last PyPI release, 0.3.16, was uploaded on 19 May 2025 and requires Python 3.10 or newer but below 3.13. The old service therefore cannot follow a newer interpreter on the host image. Pin the runtime for the LLM Guard container or virtual environment, isolate it from base image updates, and restrict its network access to what it needs. Plan its retirement date now, because the parallel run will be the only supported path while both systems are up.

LLM Guard on PyPI

Endpoints moved before tests pass

Under schedule pressure, teams switch an endpoint to the new server because the shadow run looked quiet, not because the comparison met the acceptance criteria. Gate each endpoint on a checklist: mismatch rate reviewed, missed attacks and false positives measured against the agreed attack and benign sets, latency measured, and rollback tested. Move one client at a time, keep the LLM Guard route ready to receive traffic again, and record who approved each move.

Questions teams ask before cutting over from LLM Guard

How much effort does an LLM Guard to NeMo Guardrails API cutover take?

Effort depends mainly on how many endpoints and scanners the LLM Guard API serves, how many client applications call it, and how much of the scanner behavior has to be reproduced in NeMo Guardrails rails. A small deployment with one endpoint and a few input scanners is a much smaller job than a shared API used by many services with custom thresholds. The work includes building the NeMo Guardrails configuration, standing up the guardrails server, running shadow comparisons, and changing client calls. Ask any partner or internal lead for a quote built from your endpoint inventory, scanner list and client count, not from a generic estimate. No duration is given here because none is supplied for this work.

How long should the parallel run last before clients move over?

The parallel run should last until the shadow comparison covers enough real traffic to show that the NeMo Guardrails server blocks at least what LLM Guard blocked, with differences investigated and explained. What sets the length is the traffic mix: rarely seen attack patterns, seasonal workloads and low-volume endpoints need more time to appear in the data. Plan for a period that includes peak use and at least one full business cycle for each client. Agree the exit criteria in writing before the run starts, including the missed-attack and false-positive thresholds your security and product owners accept. The run length is a decision for your own data, not a fixed number.

What must our team provide before a cutover starts?

A cutover needs four inputs from your side before work begins:

  • An endpoint inventory listing every route the LLM Guard API serves and every client that calls it.
  • The scanner settings in use, including thresholds, models and which scanners block traffic versus only log.
  • Representative test traffic, both attack and benign, with any sensitive data handled under your data policy.
  • A named owner for each client application who can approve the switch to a new endpoint and handle rollback.

Without these, the team cannot prove parity, and the cutover stalls on discovery work.

Can an internal team run this cutover without a partner?

Yes, an internal team can run the cutover if it has engineers who can operate a Python service, write NeMo Guardrails configuration, and build a comparison harness. The harder parts are usually not the server itself but the inventory of scanners and clients, the attack and benign test sets, and the sign-off from client owners. Teams with limited capacity or without Colang experience often bring in a partner for specific parts, such as the configuration conversion or the parity testing. DeployOpen plans, implements and tests self-hosted open-source platforms in your own infrastructure under a fixed-scope written agreement, so the split of work can be set in the scope.

Does the converted Colang configuration still need review?

Yes. NVIDIA documents a Colang 1.0 to 2.x migration using the nemoguardrails convert tool and states that converted configurations still need manual review. Colang 1.0 is the default in NeMo Guardrails, and both versions are supported, so confirm which one your configuration targets before you convert. Review should check that each rail blocks the same input classes as the LLM Guard scanner it replaces, that thresholds and fallback messages are intentional, and that any Python actions still behave correctly. Read the NeMo Guardrails Colang 2 migration guide before starting the conversion.

Should we run LLM Guard and NeMo Guardrails side by side during cutover?

Yes, a side-by-side run is the usual way to avoid a big-bang switch. Both services receive the same requests in shadow mode, only the LLM Guard decision is enforced, and the team compares the two decisions per request. The comparison should record where each scanner blocked, where the two disagree, and the latency added by the new path. Keep LLM Guard as the enforcing path until the exit criteria are met, and keep the switch per endpoint so a single client can roll back without affecting others. LLM Guard is archived and no longer maintained, so keep it stable and contained during this period rather than adding scanners to it.

Who is responsible for maintaining the NeMo Guardrails server after cutover?

Your team owns the running server after cutover, unless a retainer with a partner covers it. Maintenance includes tracking NeMo Guardrails releases, such as v0.24.1 released on 16 September 2026, testing configurations after each upgrade, patching the container image, and keeping Python versions supported. NeMo Guardrails supports Python 3.10 through 3.13, so confirm your runtime matches before upgrading. Decide before cutover who receives release notes, who runs the regression set, and who signs off on configuration changes.

Official sources for the LLM Guard and NeMo Guardrails cutover

Start with the archive notice on the LLM Guard repository, because it sets the boundary for everything else in this cutover. The protectai/llm-guard repository was archived by its owner on 9 July 2026, and its README states that the project and its associated Hugging Face models are no longer under active development or maintained. Read the README and the last published release, 0.3.16 from 19 May 2025, before you finalize the migration map, and record the exact LLM Guard version your API server runs so you can match its behavior during shadow scanning. The LLM Guard documentation remains the reference for how each scanner was meant to behave, including the API server settings you are replacing.

On the NeMo Guardrails side, confirm the server behavior against the version you intend to deploy rather than against older blog posts or examples. The NVIDIA-NeMo/Guardrails releases page lists the current versions, including v0.24.1 released on 16 September 2026, and the NeMo Guardrails documentation describes how the guardrails server loads configurations from a folder and exposes its HTTP API. Pin the version in your container build, and check the request and response fields in the server documentation against the calls your clients make today, since the shadow comparison depends on those fields matching.

If you write new Colang configurations, use the Colang 2 migration guide as a checkpoint for which Colang version your configuration uses. NVIDIA says converted configurations still need manual review, so treat that guide as the list of items your reviewers must sign off on before any endpoint moves. Keep a dated copy of the sources you relied on, with the version you tested, so the cutover record shows what the team checked and when.

How DeployOpen scopes and delivers an LLM Guard API cutover

DeployOpen treats the move off the LLM Guard API as a written, staged engagement inside your own infrastructure. We scope the endpoints and clients in writing, build the NeMo Guardrails server alongside the running LLM Guard service, and move traffic endpoint by endpoint once the comparison results support each step.

How we scope

  • Engagements are fixed-scope, with endpoints, clients and deliverables agreed in writing before work starts.
  • We list each LLM Guard API endpoint, its calling clients and the scanners it runs on each request.
  • Scope records which endpoints block traffic and which only log, so the cutover criteria are explicit.
  • We confirm the Python version and hosting target for the NeMo Guardrails server before any build begins.

How we build

  • We build the NeMo Guardrails server from a configuration folder with config.yml and Colang files, deployed in your environment.
  • The LLM Guard service keeps running while the new server runs in shadow mode and logs decisions from both.
  • We build a comparison harness that records block and allow decisions from each service for the same requests.
  • Each endpoint gets its own routing change, so a rollback affects one client path rather than the whole service.

How we hand over

  • We deliver the endpoint map, configuration files, decision comparison results and the written cutover record.
  • Runbooks cover how to switch an endpoint back to LLM Guard and how to read shadow logs.
  • We document each rail that replaced an LLM Guard scanner, with the known gaps and the items your team must confirm.
  • Handover includes a review session with the engineers who will run the server after the engagement ends.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover NeMo Guardrails version upgrades, including checks on Colang changes and configuration reviews.
  • We can rerun the decision comparison when your traffic, models or scanner thresholds change.
  • Decommissioning the LLM Guard service is planned as a separate, documented step once no client calls it.

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.