Migrate from Lakera Guard to NeMo Guardrails: what moves cleanly and what needs rework
Moving from Lakera Guard to NeMo Guardrails means re-implementing your guardrail policy as NeMo rails, then running both systems in parallel on recorded traffic. No export carries Lakera settings into NeMo, so the policy has to be written again and proven against your own data. Platform or security engineering usually owns this work, often with an implementation partner for the policy translation and the test harness. The main effort and risk sit in rebuilding and validating policy, not in standing up the server. The open-source library is licensed under Apache 2.0 and NVIDIA still publishes releases: version 0.25.0 appeared on PyPI on 19 November 2026, after 0.24.1 on 16 September 2026. Check the release history before you pin a version.
What moves cleanly is the integration shape. Your application already sends text to a guardrail check before and after the model call, and NeMo Guardrails maps that pattern onto input rails and output rails. The library includes self-check input and output moderation, jailbreak and injection detection, and content safety models, so common prompt attack categories have a starting point. What needs rework is every rule you configured in Lakera. Each category must be expressed as Colang rails in a configuration folder, with thresholds and allowed topics written down and tested. Teams still on the LLMRails class should plan the move to Guardrails, because 0.25.0 deprecates the former with removal planned no earlier than 0.27.0. Confirm your Colang version against the Colang 2 migration guide before writing new rails.
Do not build on the NeMo Guardrails microservice container without checking its status. NVIDIA states that NeMo microservices were sunset as of October 1, 2026, with no new releases and no support for that artifact. Its archived documentation directs existing users to their NVIDIA account team, and new development has moved to NeMo Platform. Before you design the target, ask NVIDIA in writing which path it supports for your deployment. Then confirm that your security review accepts the library's Python 3.11, 3.12 or 3.13 requirement and a server image you build yourself. Keep the Lakera calls live until the parallel run shows agreement your security team accepts, because the cutover should not begin until that evidence exists.
Which Lakera Guard controls map to NeMo rails, and where the gaps are
This table maps each Lakera Guard control family to the closest NeMo Guardrails equivalent and marks each row as clean, needs rework or gap. Use it as a checklist for your own migration, not as proof of equal coverage. Confirm the exact Lakera policy categories and thresholds from your own Lakera configuration, then measure detection quality on your traffic before switching enforcement.
| Lakera control family | NeMo equivalent | Status | Action before switching |
|---|---|---|---|
| Prompt attack detection | Input rails with jailbreak and injection detection | Needs rework | Confirm which Lakera attack categories you rely on, then replay recorded prompts to compare verdicts with the NeMo detectors |
| Harmful content moderation | Self-check input and output moderation, NVIDIA content safety model | Needs rework | Map each Lakera content category to a NeMo rail and test borderline examples in your language and domain |
| Data leakage and PII | Output rails with custom actions; no built-in PII detector equivalent to Lakera's | Gap | Plan a separate PII detector or redaction step and test it against your own data types |
| Policy thresholds | Per-rail prompts and model settings in Colang and config files | Needs rework | Document each Lakera threshold, then set and tune NeMo equivalents against measured false positives |
| Allow and deny lists | Colang flows matching topics, keywords or patterns in input and output rails | Clean | Export your current lists and recreate them as explicit flows with test cases |
| Tool and agent call screening | Execution rails for custom actions and tools | Needs rework | Enumerate every tool the application can call and write rails for each permitted argument pattern |
| Logging and audit evidence | Application logging around the guardrails server; no native equivalent of Lakera's dashboard | Gap | Define log fields, retention and access controls so security reviews can trace each verdict |
| Retrieval content screening | Retrieval rails for RAG chunks | Clean | Apply retrieval rails only if your application passes retrieved documents through the guardrails server |
What data and integrations move, and what has to be rebuilt
Moving off Lakera Guard is less about copying data and more about rebuilding four things: the policy configuration, the recorded verdicts used for comparison, the application call site, and the signals your team watches. Each one has a different owner and a different failure mode, so plan them separately. Confirm the export and log formats with Lakera or Check Point before you scope any data movement.
Policy configuration as NeMo folders
Lakera policies are set in its managed console, so there is no file to copy. Each rule you depend on has to be rewritten as a NeMo Guardrails configuration folder, with Colang flows for input and output rails and a model block that names the detection models and their settings. Write down every category you enforce today, then map each one to a rail or a self-check prompt. Treat the folder as source code under review, since a missing rule will not raise an error.
NeMo docsRecorded requests and verdicts
Side-by-side replay needs a sample of real prompts, responses and the Lakera verdict returned for each. Confirm with Lakera or Check Point which logs your tenant can export and in what format, because no export path is assumed here. Redact personal data, secrets and customer content at the source system before anything leaves it, and store the replay set in the same region and access scope as production logs. Keep the replay set small enough to review manually.
Application call site
The application currently sends text to the Lakera endpoint and reads a flagged or not flagged result. With NeMo Guardrails, the call changes to the guardrails server HTTP API, or to the Python API if the application runs in the same process. The response shape differs, so the wrapper that maps verdicts to block, warn or allow decisions must be rewritten and tested. Put the new call behind a feature flag so you can route traffic back quickly.
Monitoring and alerting hooks
Dashboards and alerts that count Lakera flags, latency or errors will go silent or change meaning after the switch. Rebuild each alert against the NeMo server's own logs and metrics, and define what a blocked or modified response looks like in your SIEM. Confirm whether the Lakera console alerts you rely on have an equivalent in your environment, and assign an owner for tuning the thresholds after cutover.
Choosing a NeMo deployment path after the NGC microservice sunset
Do not start new work on the NeMo microservices container from NGC. NVIDIA has sunset the NeMo microservices container as of October 1, 2026, with no new releases and no continued support for the artifact. Any migration plan that pins the Lakera replacement to that image will need rework within the project's lifetime. Existing NeMo Microservices users are directed by NVIDIA to contact their account team, so start that conversation before you commit a configuration. The two paths below are the ones to evaluate in its place.
The first path is the open-source NeMo Guardrails library, licensed under Apache 2.0, run in your own containers. Release 0.25.0 is published on PyPI and requires Python 3.11, 3.12 or 3.13, so pin the interpreter in your base image and check it against your existing application runtime. The project provides a Dockerfile for building a guardrails server image that loads configurations from a folder and exposes an HTTP API. Your Lakera replacement then becomes a service your team builds, versions, scans and deploys, which keeps the rails inside your own cluster and makes the image part of your change control.
The second path is NeMo Helix, the Apache-2.0 control plane in NVIDIA's nemo-helix repository, which documents NeMo Guardrails as an inference gateway middleware plugin that applies guardrail configurations to model endpoints. This fits a model-serving layer that already sits behind a gateway, but it changes where enforcement lives and who operates it. Confirm with NVIDIA's account team which path NVIDIA supports for your workload, and whether Helix is the intended successor for your use case. Also note that version 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. Write new integration code against the Guardrails interface and record the NVIDIA 0.25 migration guide as a dependency of your go-live checklist.
How the migration sequence runs from inventory to decommission
The sequence moves Lakera Guard enforcement to a self-hosted NeMo Guardrails server in five stages, each producing evidence that the next stage depends on. The parallel run is where false positives surface and get tuned before any user-facing decision changes.
Inventory every Lakera call site and policy
Your platform or application security team lists every application, service and gateway that calls Lakera Guard, the input and output checks each call makes, the thresholds and policy categories configured in Lakera, and every system that consumes Lakera logs or alerts. Each row gets a named owner who can approve changes to that application. The output is a single inventory sheet that maps each Lakera policy to a planned NeMo Guardrails input or output rail, with gaps flagged for policies that have no direct equivalent. The step is done when the owners have signed off on every row and the gap list has a decision for each item.
Pilot one application on a non-production server
Choose one low-risk application and deploy a self-hosted NeMo Guardrails server in a non-production environment, using the server mode that loads configurations from a folder and exposes an HTTP API. Start with a minimal rail set, such as jailbreak and injection detection on input, and add rails only after the pilot behaves as expected. Confirm the Python version your deployment uses is supported by the release you install, since NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13. The output is a running pilot with its configuration under version control and a short record of which rails are active. The step is done when the application calls the server successfully and the team can explain each active rail.
Run both guardrails in parallel on recorded traffic
Replay recorded prompts and responses through Lakera Guard and NeMo Guardrails at the same time, storing both verdicts next to each request. Enforcement stays with Lakera during this step, so users see no change. Review every disagreement, sorting each into a true positive, a false positive or a missed attack, and adjust NeMo Guardrails rails, thresholds or allow rules for the false positives. Repeat the replay after each tuning change, then move to live traffic in shadow mode once recorded results look stable. This is where false positives are found and tuned, so it should not be shortened. The output is a comparison report by policy category and a tuning log. The step is done when the disagreement rate is low enough that the security owner accepts the remaining differences in writing.
Cut over enforcement one application at a time
For each application that passed the parallel run, switch enforcement from Lakera Guard to NeMo Guardrails, starting with the application that has the lowest exposure. Keep the Lakera call available behind a configuration flag so the team can return enforcement to Lakera without a code release. Monitor blocked requests, latency and error rates during the switch, and agree beforehand who can trigger the rollback and what signal causes it. The output is a cutover record for each application showing the date, the owner's approval and the tested rollback path. The step is done when the application has run on NeMo Guardrails enforcement under normal load and the rollback path has been exercised in a test.
Decommission Lakera keys and retain logs
After every application has run on NeMo Guardrails enforcement for an agreed period, revoke the Lakera API keys and remove the Lakera calls from code and configuration. Export the Lakera logs and the parallel-run comparison data to storage you control, and apply the retention periods your legal, compliance and security policies require, not the defaults of either vendor. Confirm with your contract owner which Lakera data-handling terms apply after termination. The output is a decommission record listing revoked keys, removed call sites, the archived log locations and the retention rule applied to each. The step is done when no production traffic reaches Lakera and the archived evidence can be retrieved for a security review.
How both guardrails run side by side without exposing the application
The diagram starts at the application, which sends each user request to a gateway or proxy inside the client's own network. The proxy forwards the request to the existing Lakera Guard call, which keeps enforcing, and mirrors a copy to the NeMo Guardrails server. Both verdicts land in a comparison store, and only the enforcement switch, controlled by the chosen guardrail, decides what the user sees. Check that the shadow path never writes a response back to the end user and that the mirrored data stays inside the trust boundary.
Planning illustration: shadow verdicts are compared and never returned to users before cutover.
What drives migration cost and duration, and how to keep each down
This table lists the components that decide how much a Lakera Guard to NeMo Guardrails migration costs and how long it takes, with the reason each one matters and the lever that keeps it down. One-time work (design, build, replay testing and cutover) and recurring work (hosting, model updates, tuning and retesting) follow different curves, so read each row with both in mind. The main takeaway is that the call-site inventory and policy count set the scope, and most of the effort after that goes to false positive tuning and evidence.
| Driver | Why it matters | How to reduce it |
|---|---|---|
| Number of call sites and applications | Each application that calls the Lakera API needs its request path, headers, error handling and fail-open or fail-closed behavior changed to call the rails server instead. | Inventory every call site first, group applications that share a client library, and move the shared client once rather than each app separately. |
| Number and type of Lakera policies | Each detector category (prompt attacks, harmful content, data leakage, custom policies) maps to a different input or output rail, and each mapping needs its own test cases. | Map policies to rails in a short table before writing any Colang, and drop or merge policies that no application actually uses. |
| Rail design in Colang and custom actions | Input rails, output rails, dialog rails and execution rails each carry logic that someone must write, review and version. Custom actions that call internal services add integration and security review work. | Start with the input and output rails that replace existing Lakera verdicts, and add dialog or execution rails only when a documented need exists. |
| Choice and hosting of detection models | Built-in detection models can run on CPU or GPU capacity in your own environment. GPU capacity raises fixed hosting cost, while CPU capacity may raise latency, so the choice affects both one-time sizing and monthly spend. | Benchmark candidate models on recorded traffic before buying capacity, and ask the implementation partner to size CPU and GPU options in writing. |
| Volume of recorded traffic to replay and label | Side-by-side comparison needs recorded prompts and responses, and someone must label verdicts that disagree. Labeling effort grows with volume and with the number of policy categories. | Sample by application and verdict type, store only what privacy rules allow, and label disagreements first rather than every request. |
| False positive tuning cycles | Thresholds and rail prompts usually need several rounds of adjustment. Each round changes behavior, so it must be retested against the labeled set. This is often the longest part of the project and continues after cutover. | Set a fixed tuning scope and a cutover criterion in writing, and track false positives per application so tuning stays bounded. |
| Red-team testing of the rails | Rails can be bypassed by prompt injection or encoding tricks that the old Lakera setup blocked. Testing must cover the new rails, not only the reconfigured application, and must be repeated after each change. | Reuse the attack set from the Lakera evaluation, add known bypass patterns, and schedule retests with each rail or model change. |
| Integration with logging and SIEM | Verdicts, blocked requests and rail errors need to reach your existing logging and SIEM pipeline. Log formats, retention and access rules for prompts may need new handling for personal data. | Define the verdict log schema once, reuse existing pipelines, and confirm with your security team which fields may contain prompt content. |
| Change approval and evidence for security reviews | Moving an enforcement control needs change records, test results and updated data flow documentation. Auditors and security reviewers ask for this evidence, and gathering it late adds rework. | Collect test results, configuration versions and approvals as the work proceeds, and ask the partner for the evidence package in the written scope. |
What usually goes wrong in a Lakera to NeMo migration, and how to prevent it
Most failed guardrail migrations fail on coverage and operations, not on the rails themselves. The cards below cover the points where a Lakera Guard replacement tends to break, and each one ends with the check to run before enforcement is switched on.
Detection gaps after cutover
Lakera's detection coverage for prompt attacks, harmful content and data leakage does not map one to one onto NeMo Guardrails' input and output rails. Attack types that were blocked before may pass after cutover if no rail or model covers them. Build a labeled set of attacks from your own recorded traffic, run it through both systems in shadow mode, and list every case where Lakera blocked and NeMo Guardrails did not before you switch enforcement.
NeMo Guardrails docsFalse positives blocking real users
Rails tuned on a small test set often block legitimate requests such as policy questions, security training content or customer messages that mention sensitive terms. Measure the false positive rate on a labeled set of benign traffic from your own users, and record which rail or model caused each block. Roll out enforcement in stages, starting with logging only, then blocking for a small share of traffic, and widen only after the false positive rate is acceptable to the business owner.
Tool and retrieval paths outside the rails
Teams often attach guardrails to the chat endpoint and forget the paths that carry the most risk: retrieval chunks from RAG, tool calls and file reads. NeMo Guardrails offers retrieval rails and execution rails for these paths, but they must be configured and tested. Inventory every entry point and tool your application uses, assign each one a rail, and test indirect prompt injection through documents and tool outputs before go-live.
Latency and capacity surprises
Detection models that run locally need CPU or GPU capacity, and shared hardware can turn a fast check into a slow one under peak load. Each rail adds a model call or an LLM call to every request, so latency grows with the number of rails. Load test the full rail chain at expected peak concurrency on the hardware you will use in production, set timeouts and a defined fail-open or fail-closed behavior, and confirm capacity with your infrastructure team.
Unpinned versions and a retired artifact
NVIDIA has sunset the NeMo microservices container on the NGC catalog, so a deployment that pulls that image has no future releases or support. The open-source library is still released on PyPI under Apache-2.0, and recent releases deprecate LLMRails in favor of Guardrails, with removal planned no earlier than 0.27.0. Pin the exact library version and Python runtime, read the 0.25 migration guide, and confirm the release and deprecation plan with NVIDIA before you lock the version into production.
Colang 2 migration guideEvidence gaps for security reviews
Security and compliance reviewers ask for the rule set, the test results, the change history and the rationale for every block or allow decision. Lakera's managed console provides some of this, but a self-hosted rail set leaves that evidence with your team. Keep rail configurations in version control, store shadow test results and red-team reports with dated versions, log every guardrail verdict with its reason, and document the controls so an auditor or customer reviewer can trace each one to a test.
How the migration differs by team size and starting point
A single application with a short list of Lakera policies usually has one owner who can test changes end to end. The work centers on mapping each enabled policy to an input or output rail, running the NeMo Guardrails server beside the application, and checking that blocked requests return the same handling the application expects. Scope stays small, so the replay of recorded traffic can be reviewed by one team in a few sessions.
- Policy mapping: List each Lakera category in use, then assign it to an input rail, an output rail or both.
- Server deployment: Run the guardrails server from a configuration folder, using the provided Dockerfile for the container image.
- Side-by-side replay: Send the same recorded prompts to Lakera and NeMo, then compare the verdicts line by line.
- Enforcement switch: Move the application's call from Lakera to the NeMo endpoint behind a single configuration flag, so rollback is one change.
Before you start, confirm which Lakera categories the application actually relies on, because unused categories often never need a replacement rail.
A platform team that serves several product teams and several Lakera tenants has to decide whether guardrails are shared or owned per application. Shared rails reduce duplicated policy work but make every change a cross-team event, so the migration needs a versioned configuration repository, a review path for changes and an agreed owner for false-positive tuning. Tenant differences in Lakera settings have to be written down as explicit rail configuration before anyone switches traffic.
- Tenant inventory: Record which Lakera tenants, projects and thresholds each team uses, since these settings do not carry over automatically.
- Configuration as code: Keep the Colang and model settings in version control with review and tagged releases.
- Ownership model: Name who approves a rail change and who answers for a false positive reported by an application team.
- Staged rollout: Move one team at a time, starting with the team whose traffic is least sensitive.
The main decision is whether the platform team or each application team owns its rails, and that choice should be made before the first configuration is written.
In regulated environments the deployment location is often the first constraint. The NeMo Guardrails library and any detection models must run inside the approved network, and every model artifact must be sourced, stored and updated through a path the security team accepts. Evidence matters as much as function, so the migration plan has to show where the server runs, which detection models it loads and how changes to rails are approved and logged.
- Model provenance: Document where each detection model comes from, how it is copied into the network and who approves updates.
- Offline operation: Test the server with outbound network access blocked to confirm no step depends on an external call.
- Data handling: Confirm where prompts, verdicts and logs are stored, and for how long.
- Evidence pack: Keep configuration history, replay results and test records that an assessor can review.
Confirm with your security and compliance teams which deployment and evidence standards apply, since the controls depend on your own obligations and not on this page.
A team that already runs NeMo Guardrails or Guardrails AI in part of its stack starts with partial coverage and some existing configuration. The migration then becomes a consolidation: decide which rails the existing setup already covers, close the gaps left by Lakera's categories and avoid running two overlapping detection paths on the same traffic. Version differences matter here, because the current NeMo Guardrails release deprecates the LLMRails class in favor of Guardrails, so existing code may need a planned update.
- Coverage comparison: Map existing rails and validators against the Lakera categories still in use.
- Version review: Check the installed release against the 0.25 migration guide and plan any changes to deprecated classes.
- Duplicate path removal: Retire redundant checks once replay shows the consolidated rails produce equivalent verdicts.
- Shared test set: Reuse existing test prompts and add the recorded traffic from Lakera calls.
The key decision is whether to extend the existing NeMo or Guardrails AI setup or rebuild it, and the current code and test history should drive that choice.
Questions teams ask before moving off Lakera Guard
How much does it cost to migrate from Lakera Guard to NeMo Guardrails?
The software itself has no license fee, since NeMo Guardrails is Apache 2.0 licensed, so the cost is made up of other components. These are engineering time to map policies and build rails, compute for detection models (GPU or CPU, depending on the models you choose), a test environment for replaying traffic, red-team testing of the rails, and your own engineers' time for ongoing tuning. Some costs are one-time, such as the migration and the first evaluation. Others recur, such as hosting, model updates, and tuning as your traffic changes. Costs rise with the number of call sites, the number of policies, the size of the replay corpus and the evidence your compliance team requires. Ask any implementation partner for a quote built from a written scope that lists these components separately, and compare it with the current Lakera subscription or Enterprise license terms.
How long does a Lakera Guard to NeMo Guardrails migration take?
The duration depends on how many applications call Lakera, how many policies each one uses, how much recorded traffic you replay, and how much evidence reviewers need before enforcement changes. No fixed timeline applies to every environment, so the realistic way to find out is a written scope that lists the call sites, policies, replay volume and approval steps. Most of the time is usually spent on labeling traffic and tuning false positives rather than on writing configuration. Ask for a schedule with separate phases for mapping, shadow mode, tuning, approval and cutover, and confirm which phases depend on your own teams' availability.
What does our internal team need to provide for the migration?
Your team supplies the decisions and data that no outside party can make for you. Policy owners must define which prompt attacks, harmful content categories and data leakage rules matter, and what should block versus log. You need labeled traffic samples, including known attacks, normal business requests and edge cases, so that verdicts can be checked. Test users must exercise the application before enforcement changes, and approvers must sign off on thresholds, exceptions and cutover. Ask a provider to write down which of these roles belong to your staff so that work does not stall while waiting for them.
Can our own engineers migrate off Lakera Guard without outside help?
A capable team can usually do it alone when the scope is one application, a small number of policies and no formal evidence requirements. Such a project involves a Python environment on a supported version (NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13), a configuration folder, the guardrails server, and a shadow comparison against recorded traffic. Difficulty rises when several applications share policies, when you must produce evidence for a security review or a compliance assessment, or when you need to test the rails adversarially. DeployOpen plans, implements, tests and documents self-hosted platforms in your own infrastructure under a fixed-scope written agreement, and can also prepare evidence for compliance assessments, though auditors and certification bodies issue the formal reports.
Is NeMo Guardrails still maintained after NVIDIA's NeMo Microservices sunset?
The open-source library is still maintained, but the hosted microservice is not. NeMo Guardrails is licensed under Apache 2.0, and the current release is 0.25.0, published on 19 November 2026 to PyPI, following 0.24.1 on 16 September 2026. The NGC catalog page for the NeMo microservices container says NeMo microservices was sunset as of October 1, 2026, with no new releases and no support for that artifact. Plan to run the library or server image yourself, and do not build on the retired container. NVIDIA's archived documentation directs existing microservice users to their account team, and NVIDIA's NeMo Helix project documents Guardrails as an inference gateway plugin. Confirm the long-term direction with NVIDIA before committing to an architecture.
Will NeMo Guardrails detect prompt attacks as well as Lakera Guard?
Detection quality cannot be assumed to match, and it has to be measured on your own traffic. NeMo Guardrails includes self-check input and output moderation, jailbreak and injection detection, NVIDIA content safety and topic safety models, and fact-checking and hallucination detection, but coverage for your application depends on the models you deploy and how you tune them. Replay recorded requests through both systems in shadow mode, label the verdicts, and measure false positives and false negatives by category. Ask whether the rails you plan to use cover your prompt attack and data leakage policies, and add adversarial tests with a red-team tool before enforcement changes. Lakera's detection updates come from its vendor, so compare who maintains detection quality over time.
How DeployOpen scopes, runs and supports the migration
DeployOpen plans, implements, tests, documents and supports self-hosted open-source platforms inside your own infrastructure, so the move from Lakera Guard to a self-hosted NeMo Guardrails server is agreed in writing before work starts. The work covers the rails, the detection models, the side-by-side comparison on recorded traffic and the cutover, with evidence your security and compliance teams can review.
How we scope
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- The written scope lists which Lakera Guard policies map to input rails, output rails and other NeMo Guardrails rail types.
- We confirm the target environment, Python version, hosting model and which applications call the guardrail API.
How we build
- We deploy the NeMo Guardrails server in your infrastructure from a configuration folder, with access control and audit logging in place.
- We run Lakera Guard and NeMo Guardrails side by side on recorded traffic and document where their verdicts differ.
- We tune false positives against your application's legitimate inputs and red-team the rails before any enforcement switch.
How we hand over
- You receive configuration files, rail definitions, test sets, comparison results and runbooks for your own engineers.
- The cutover plan explains how enforcement moves to NeMo Guardrails without exposing the application to unchecked traffic.
- Documentation records controls and evidence so your compliance and security teams can prepare for their own assessments.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Upgrades track NeMo Guardrails releases, including the migration steps for deprecated classes in future versions.
- DeployOpen prepares evidence for compliance assessments but does not issue audit reports or certifications; independent auditors do.

