How a NeMo Guardrails upgrade moves your application off LLMRails
If your application calls LLMRails directly, you need to move it before the class is removed. NeMo Guardrails 0.25.0 deprecates LLMRails in favor of Guardrails, with removal planned no earlier than 0.27.0. That gives you a window, but not an open-ended one, and the 0.25 migration guide published by NVIDIA is the right starting point for mapping your current calls to the new entry point. Treat the move as a planned, version-pinned change: pin the release you are moving to, run your existing test suite against it, and keep the previous pinned version available so you can roll back.
The change touches four areas. The first is the Python entry point, where the constructor, the way configurations are loaded and the call signatures used by your application may differ. The second is which rails run on IORails, the newer execution path, so you should confirm for each rail in your config.yml and Colang files whether it runs on IORails and whether its behavior matches what your tests expect. The third is lifecycle: check which start and stop calls your application makes and whether the new entry point requires them in the same places. The fourth is logging, where event names, fields and destinations can change, which matters if your audit or monitoring depends on them.
Plan rollback before you change code. Keep the prior pinned version, the prior configuration folder and the test results from both versions side by side. If a configuration falls back to a different execution path after the move, your tests should detect it, not your users. Ask your engineering team to confirm each of these details against the 0.25 migration guide and release notes for the exact version you target, because the details of each change are not covered in this section.
What changes between LLMRails and Guardrails, and what to do about it
This table compares the LLMRails class with the Guardrails entry point and the IORails engine, row by row, for a pinned NeMo Guardrails release. Read each row against the version you plan to run, and treat the action column as the work item to close before cutover. The main takeaway is that the deprecation is announced for 0.25.0, so the switch is a planned change now rather than an emergency.
| Change | Impact | Action needed |
|---|---|---|
| LLMRails deprecated in 0.25.0 | LLMRails still works in 0.25.0 but is deprecated in favor of Guardrails, so new code and reviews should not add new LLMRails calls. | Find every LLMRails reference in the application and configuration, then switch them to Guardrails in a branch tested against 0.25.0. |
| Removal planned no earlier than 0.27.0 | Upgrading to 0.27.0 or later may fail at import or call time if LLMRails is still used. The removal date is not fixed in the supplied facts. | Confirm the removal release in the 0.25 migration guide and release notes before setting the target version for the cutover. |
| 0.25 migration guide | The official guide is the reference for call-by-call changes and should override assumptions made from this page. | Read the guide end to end and record each item that applies to your code, configuration and actions. |
| Python 3.11, 3.12 or 3.13 required for 0.25.0 | Hosts or images on older Python versions cannot install 0.25.0 without a runtime change. | Check the Python version in every build image, test runner and server container before pinning 0.25.0. |
| Released versions 0.24.1 and 0.25.0 | 0.24.1 was released on 16 September 2026 and 0.25.0 on 19 November 2026, so a staged move from 0.24.1 limits the number of changes in each step. | Pin the exact version in requirements, lock files and images, and test the migration in a staging environment first. |
| IORails rail coverage | Confirm which of your input, dialog, retrieval, execution and output rails run on IORails in 0.25.0. Coverage differences can change which checks run in production. | Compare a list of your configured rails with the 0.25 documentation, then run a test set that covers each rail and record the results. |
| Lifecycle start and stop calls | Code that creates or shuts down the rails object may need new start and stop calls. Missing calls can leave resources open or fail on the first request. | Confirm the exact start and stop sequence in the 0.25 migration guide and add lifecycle calls to startup and shutdown tests. |
| Logging differences | Log messages, log names and the content captured in logs may change between LLMRails and Guardrails. Alerts and dashboards built on old log text may stop matching. | Compare sample logs from both code paths, update alert rules and parsers, and confirm the logging behavior in the release notes for the pinned version. |
| Rollback when a configuration falls back | If a configuration falls back to a different path, the active rails may not match what was reviewed. Keep the previous version available for a fast revert. | Keep the prior version pinned in the deployment record, test the rollback procedure, and verify active rails after any fallback. |
The decision path for each application during the move
The move starts by pinning the current NeMo Guardrails version so a rollback target exists. Teams then find every LLMRails call site, switch each one to the Guardrails entry point, and confirm that each configured rail actually runs on IORails. Lifecycle and logging checks run in a test environment, and only after they pass does the application promote, or fall back to the pinned version.
The decision path for moving one application from LLMRails to the Guardrails facade.
How the move differs for Python API callers, the guardrails server and NeMo Helix
For applications that import NeMo Guardrails as a library, the move happens in your application code. Release 0.25.0 deprecates the LLMRails class in favor of Guardrails, and removal is planned no earlier than 0.27.0, so existing imports keep working for now but will need changing before that release. The work sits in the import and construction path, and in any place your code starts, stops or reads logs from the rails object.
- Import and construction: Replace
LLMRailswithGuardrailswhere your code loads the configuration folder, and keep the configuration path identical while you test. - Rail routing: Confirm which input, dialog, retrieval, execution and output rails run on IORails after the change, using the 0.25 migration guide as the checklist.
- Lifecycle calls: Review every place the application starts and stops the rails object, including worker shutdown hooks, and match them to the new entry point.
- Logging and tracing: Compare log output and trace fields before and after the change, since dashboards and alerts often break at this point.
- Runtime: Confirm the environment runs Python 3.11, 3.12 or 3.13 before you upgrade the package.
Before release, check that the version pinned in your requirements file matches the version your tests ran against.
The guardrails server loads configurations from a folder and exposes an HTTP API, and the Dockerfile supplied with the project builds the server image. In this deployment style the change sits in the image build and the configuration folder, not in application code. Teams that call the HTTP API keep their client code unless the server release changes its endpoints, so the checklist focuses on what the server loads and how it starts.
- Image build: Rebuild the server image from the supplied Dockerfile at the version you intend to run, and avoid re-tagging an older image.
- Configuration folder: Check that
config.yml, Colang files and any Python actions still load under the new version and that the server reads the paths you expect. - Startup and health checks: Verify the container starts, loads each configuration and answers a test request before it receives production traffic.
- Log consumers: Update log collectors and dashboards for any change in output format or fields.
- Rollback images: Keep the previous image tag and its configuration folder version so the deployment can return to them if a configuration falls back.
Before each rollout, record the image digest and configuration folder version in your deployment record so that a rollback restores both together.
NeMo Helix, the open source control plane in NVIDIA-NeMo/nemo-helix, runs NeMo Guardrails as an inference gateway middleware plugin that applies guardrail configurations to model endpoints. Application code may not change at all in this model, so the owner of the gateway configuration decides what happens after the upgrade. Your task is to confirm which guardrail configurations apply to which endpoints once the change is made.
- Gateway owner: Name the team that owns the gateway configuration and make it responsible for the post-change check.
- Endpoint mapping: List each model endpoint and the guardrail configuration bound to it, then compare that list before and after the change.
- Version and compatibility: Confirm in the NeMo Helix documentation which NeMo Guardrails version the plugin runs, and whether your existing configurations fit it.
- Fallback behavior: Test what the gateway does when a configuration fails to load, because a silent fallback can serve an endpoint without the rails you expect.
- Application teams: Tell application owners which endpoints changed so they can retest their flows.
Ask the platform owner for a written list of active guardrail configurations per endpoint, and keep that list with the change record.
NVIDIA has sunset the NeMo microservices. The NGC catalog page for the NeMo Guardrails microservice container says the NeMo microservices were sunset as of October 1, 2026, that there will be no new releases, and that the artifact is no longer supported. NVIDIA's archived documentation says new development has moved to NeMo Platform and asks existing users to contact their NVIDIA account team. Teams running this container need a migration plan before any upgrade work begins.
- Support status: Record the container as unsupported in your risk register and set a review date for it.
- Account team: Contact NVIDIA's account team, as the archived documentation asks, and request next steps in writing.
- Target platform: Check what the NeMo Platform link now contains, since it resolves to NVIDIA-NeMo/nemo-helix, before choosing a destination.
- Destination choice: Decide between the open source NeMo Guardrails library or server path and the NeMo Helix route, then scope the work from that choice.
- Interim controls: Keep the current container isolated and monitored until the move is complete.
Do not start the library upgrade on this container until the destination and its owner are confirmed in writing.
Preparing the NeMo Guardrails upgrade before any code changes
Each item below protects the upgrade from a different failure: unknown call sites, lost configuration, drifting dependencies, silent behavior changes and a server that cannot be rolled back. Complete them in order, because the inventory and baseline decide what the test environment must prove.
Inventory every LLMRails call site
Search the codebase for LLMRails, direct generate and generate_async calls, and any internal wrapper that hides them. Record the module, the configuration path it loads, and whether it is called from a web handler, a batch job or a test. The deprecation of LLMRails in favor of Guardrails means every entry on this list is a planned change, and wrappers are the most likely place to miss one. Ask each owning team to confirm their entries.
Version config, Colang and actions
Commit config.yml, every Colang file and all Python actions to version control before editing anything, and tag the state that runs in production. Without a tagged copy, a fallback to the previous configuration can only be rebuilt from memory. Keep Colang files in their current version, since Colang 1.0 is the default and Colang 2.x changes behavior that must be reviewed separately.
Pin the current environment
Record the installed nemoguardrails version and the Python interpreter in a lock file or container image. The current release, 0.25.0, requires Python 3.11, 3.12 or 3.13, so confirm your runtime sits in that range before installing anything new. A pinned environment lets you tell whether a behavior change came from the upgrade or from a transitive dependency that moved.
- Supported Python
- 3.11 to 3.13
Mirror production in test
Build a test environment that uses the same model endpoints, safety models, rails and server settings as production, not a stub. If a rail calls a self-hosted classifier in production, the test environment needs that classifier too. Otherwise a passing test run says little about the live configuration. Confirm with the platform team which endpoints differ and document each difference.
Save baseline outputs
Run a fixed set of representative prompts through the current release and store the responses, blocked messages, rail decisions and latency. These saved outputs are the reference for judging whether the facade and IORails produce the same blocks, passes and wording. Include prompts that should be blocked, prompts that should pass, and borderline cases. Expect some differences in logging and metadata, and decide in advance which differences are acceptable.
Back up the current server build
Keep a tagged container image of the current guardrails server and a copy of the configuration folder it loads, so the previous build can be restored without a rebuild. Rehearse the rollback in the test environment before the production change. A rollback only works if the old image still starts with the saved configuration, so verify that as part of the backup.
The upgrade sequence, with a check and rollback point at each step
The sequence moves an application from LLMRails to the Guardrails entry point and IORails in small steps, with a passing check and a known rollback point before each one. Each step leaves a pinned, working previous version available until the new one is promoted.
Pin the current working version
Record the exact NeMo Guardrails version the application runs today, along with its Python version, lockfile, dependency tree and the complete configuration folder (config.yml, Colang files and custom actions). Store these in version control under a tag. This pinned version and configuration is the rollback point for every later step. The check that closes this step is a clean install from the lockfile into a fresh environment that reproduces the current behavior.
Record baseline behavior
Run a fixed set of representative prompts through the pinned version and save the inputs, the responses, which rails fired, and the log output. Include normal requests, requests that should be blocked, and edge cases such as multi-turn dialogs and retrieval-augmented answers. Your team owns this step because only the application owners know which outcomes are correct. It is done when the baseline set is stored with the configuration, so any later difference can be traced to a specific change.
Upgrade the Python environment to a supported interpreter
NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13. Build a new environment on one of these interpreters and install the target release in it, keeping the pinned environment untouched. Confirm the Pydantic and other transitive dependencies resolve without conflicts. The check that closes this step is that the existing test suite and the baseline prompt set run against the new environment with no import or dependency errors, and that the pinned environment still runs unchanged.
Switch LLMRails call sites to the Guardrails entry point
In a dedicated branch, replace each LLMRails construction and call with the Guardrails entry point described in NVIDIA's 0.25 migration guide. Search the codebase for every LLMRails reference, including tests, startup code and any custom action that touches the rails object. LLMRails is deprecated in 0.25.0 and removal is planned no earlier than 0.27.0, so this change is required before the next major removal. The check is a code search that finds no remaining LLMRails references outside the documented compatibility notes, plus a passing unit test run on the branch.
Confirm which rails run on IORails
Send the test prompts from the baseline set through the migrated branch and record, for each rail type (input, dialog, retrieval, execution and output), whether it executed. Compare the list with the baseline. Some rails or options may behave differently on IORails, so confirm this against the current NeMo Guardrails documentation and your own configuration rather than assuming parity. The check is a rail-by-rail table showing every rail the application depends on either runs on IORails or has a documented replacement. Any unexplained gap blocks promotion.
Run lifecycle start and stop checks
Verify that the application starts the guardrails runtime once, handles initialization failures visibly, and shuts it down cleanly on process exit, restarts and worker recycling. Test startup with a deliberately broken configuration to confirm the failure is reported and not silently replaced by an unguarded path. The check is a passing run of start, stop and restart scenarios, with no leaked sessions or orphaned connections in the logs. Keep these tests in the suite so later upgrades repeat them.
Compare logs against the baseline
Diff the migrated logs and responses against the baseline recorded in step two. Logging and trace output can change between entry points, so check that the fields your monitoring, audit and incident processes rely on are still present and carry the same meaning. Confirm whether any configuration falls back to a previous path, and if it does, treat that as a failed check until the cause is fixed. The check is an agreed list of expected differences, each approved by the owner of the downstream system that reads the logs.
Deploy to staging, then promote
Deploy the branch to a staging environment that matches production configuration, data sources and network path, and repeat the baseline and lifecycle checks there. Keep the pinned version image and configuration available for immediate redeployment. Promote to production only after staging passes all checks and the change is approved by the team that owns the release. If production shows a regression, redeploy the pinned version and configuration, then investigate in staging. The promotion is complete when production matches staging and the rollback artifacts are retained until the team agrees they are no longer needed.
What to do when a configuration falls back during the move
A fallback means a configuration that was meant to run on the Guardrails facade and IORails path instead runs on a different path, or drops a rail, without failing loudly. Your team has to detect that through tests and logs, because it will not announce itself in the application. Before any cutover, keep the previous NeMo Guardrails version pinned in your lock file and in a container image that can still be deployed, so that rolling back is a redeployment rather than a rebuild. Confirm the exact fallback conditions and the log messages that signal them in the 0.25 migration guide and the release notes on the NeMo Guardrails releases page, and write those signals into your alerting before the move starts.
Tag every configuration folder with the release it was tested on, for example in a README or a metadata file committed next to config.yml, and record the Python version used (NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13). When a fallback appears, the tag tells you whether the configuration was validated against the version now running. Run the same fixed set of prompts through the pre-move and post-move builds and compare blocked and allowed outcomes against that baseline. Any prompt that was blocked before and is allowed now, or the reverse, is a finding to explain before release. Treat differences in which rail fired as well as differences in the final answer, because a fallback can keep the answer the same while a rail silently stops running.
Decide whether to roll back the application or only the configuration. If the application code is sound but one configuration misbehaves, revert that configuration folder to the last tagged version and keep the new library, provided the configuration still loads under 0.25.0. If the library behavior itself changed the outcome for code you did not touch, roll back the library pin and the application together. Name the owner of that decision in your runbook, along with the baseline test set and the person who signs off on the rollback. Confirm with the NVIDIA documentation whether the old LLMRails path remains available during the deprecation window, since that determines how long a rollback target stays viable.
What makes a NeMo Guardrails upgrade take longer
This table lists the factors that most often stretch a move from LLMRails to the Guardrails facade and IORails, and what to check for each one. Read each row against your own codebase and environments, because a small application with tests and one environment usually moves much faster than a service with many wrappers and approval gates. Count the items in each row before estimating the work.
| Driver | Why it matters | What to check |
|---|---|---|
| LLMRails call sites and wrappers | Every direct construction or method call on LLMRails, including shared helper classes, must be found and changed before the deprecated class can be removed. | Search the codebase and internal libraries for LLMRails, then count call sites and wrapper classes that other teams import. |
| Custom actions and Colang files | Actions and flows may depend on attributes or return shapes that behave differently on the new entry point, so each one needs review. | List every custom action, Python module and Colang file, and note which ones return results used by callers. |
| Rail types in use | Input, dialog, retrieval, execution and output rails each have different wiring, so a configuration with all five has more paths to verify. | Record which of the five rail types each configuration enables and which rails run on IORails in your release. |
| Server or Helix gateway involvement | If a guardrails server or a NeMo Helix gateway loads the configuration, the change reaches clients outside your application code. | Confirm which deployments load configurations from the server folder or sit behind the gateway, and who owns each one. |
| LangChain use | LangChain integration is opt-in through NEMOGUARDRAILS_LLM_FRAMEWORK=langchain, so environments that rely on it need that setting kept and tested. | Check whether the environment variable is set in each deployment and which providers depend on LangChain classes. |
| Test coverage and baseline data | Without existing tests and recorded outputs for known inputs, differences in blocking or logging are hard to detect before release. | Confirm which tests exist, whether they assert on blocked responses, and whether you hold a saved baseline to compare against. |
| Environments and approval steps | Each environment, and each approval gate between them, repeats the verification and adds scheduling time that the code change itself does not. | List development, staging and production, the sign-offs each needs, and whether a rollback path is approved in advance. |
Questions teams ask before moving from LLMRails
How long does moving from LLMRails to Guardrails take?
No fixed duration is supplied for this move, so the honest answer depends on the shape of your setup. The main drivers are how many applications call LLMRails, how many of them construct it directly versus through a shared wrapper, how much custom Python code touches LLMRails attributes, and how complete your test suite is. A single application with one configuration and a working test suite is a small change. Several services with custom actions, multiple configurations and no automated tests take longer, mostly because each configuration has to be run and reviewed before cutover. Ask any partner, including DeployOpen, to break the work into inventory, code changes, configuration checks, testing and rollout, and to base each phase on your own repositories rather than on a generic estimate.
What does a NeMo Guardrails migration engagement cost?
DeployOpen does not publish a price list. Most engagements are fixed-scope, so the quote follows from a written scope that names the applications, configurations, rails and environments in play, along with the deliverables and timelines agreed before work starts. The main cost components are the inventory of current LLMRails usage, code changes to the application and any custom actions, validation of each rail on the Guardrails entry point, testing and documentation, and rollout support. Ask for the quote to separate one-time migration work from any recurring retainer for upgrades, testing or support. If you handle the move in-house, the cost is mainly the engineering time your team spends, plus the test environments and model endpoints you already run.
What does the migration need from our team?
The work needs read access to the application code and every NeMo Guardrails configuration folder, including the config.yml file, Colang files and any Python actions. It also needs a non-production environment where the application and its model endpoints can run, because each configuration has to be exercised before it is switched over. Plan for a named engineer who knows the application, someone who owns the model endpoints and any safety models the rails call, and a reviewer who can approve behavior changes. Test data that reflects real user traffic patterns, with personal data removed, makes the comparison between old and new behavior far more useful than synthetic prompts.
Can our own engineers move from LLMRails to Guardrails without a partner?
Yes, for a small, single-application setup with one configuration, a clear owner and an automated test suite, an internal team can usually do the move using NVIDIA's 0.25 migration guide and the release notes. Work through the LLMRails call sites, switch to the Guardrails class, confirm which rails your configuration uses are supported on IORails, and run your tests against each configuration. Teams with several services, custom actions that depend on older interfaces, or a production system with strict change controls often bring in outside help for the inventory and test design. Whichever path you choose, keep the rollback plan for configurations that fall back in the same change record.
What happens if we wait past NeMo Guardrails 0.27.0 to migrate?
NVIDIA deprecated the LLMRails class in NeMo Guardrails 0.25.0 in favor of Guardrails, and removal is planned no earlier than 0.27.0. That means LLMRails keeps working in the releases before removal, but code that depends on it will eventually break when a release drops it. Waiting does not create a deadline on its own, but it does raise the cost of the change, because more releases may add other interface changes to the same code. Check the release notes for each version you adopt, and treat 0.27.0 as the earliest possible removal rather than a confirmed date. Confirm the current plan in the releases page before you set an internal deadline.
Does checking IORails rail coverage need a vendor?
No vendor is required to check coverage, because the check is a configuration review you can run yourself. Start with the migration guide and the release notes for your target version, which describe what runs on IORails and what still depends on the older path. Then list every rail in your configuration, including input, dialog, retrieval, execution and output rails, and mark each one as supported, changed or unclear. Run the configuration through your tests and compare behavior before and after the switch. Where the documentation is silent on a rail, treat it as unverified and test it directly. A partner can help with this review, but the source of truth is NVIDIA's documentation for the version you run.
How DeployOpen scopes, delivers and supports the move
DeployOpen plans the move from LLMRails to the Guardrails facade and IORails as a written, fixed-scope engagement inside your own infrastructure. The work starts with an inventory of your configurations and call sites, then builds, tests, documents and hands over the migrated setup with a rollback path.
How we scope
- Inventory every LLMRails call site, configuration folder and deployment that the move touches
- Record which rails in each configuration run on IORails and which need a decision before cutover
- Agree in writing the deliverables, test evidence and handover items before any work begins
How we build
- Switch application code to the Guardrails entry point and add explicit start and stop lifecycle calls
- Run the migrated configurations side by side with the current setup and compare responses and logged events
- Test the rollback path, including what happens when a configuration falls back, before the change goes live
How we hand over
- Deliver a written record of changed code, configuration decisions and the logging differences your teams will see
- Document the rollback steps, owners and the checks to run after each configuration change
- Walk your engineers and security reviewers through the evidence so they can repeat the checks themselves
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the handover
- Retest configurations when NeMo Guardrails releases change the LLMRails deprecation timeline or the Python requirements
- Confirm with your team which environment, release and retainer terms apply before the engagement starts

