What moving from Bedrock Guardrails to NeMo Guardrails involves
A Bedrock Guardrails policy is already attached to live LLM traffic, so the move has to keep protection continuous while the policy is rebuilt on infrastructure you run. There is no one-to-one import. Each Bedrock guardrail, with its content filters, denied topics, word filters, sensitive information filters and contextual grounding checks, is recreated as NeMo Guardrails rails in a config.yml file, Colang flows where dialog control is needed, and optional Python actions for checks that no built-in rail covers. The effort is therefore mostly mapping each existing rule to a rail, calibrating thresholds against your own traffic, and running old and new controls in parallel until the results agree.
The target is the open-source library or a guardrails server built from it, not the NGC container. NeMo Guardrails is licensed under Apache 2.0, so the library itself carries no license fee, and NVIDIA's NeMo microservices were sunset on October 1, 2026, with no new releases of the container. Plan around the nemoguardrails package on PyPI, pin a version, and confirm the Python version it needs in your environment before scoping the build. Any commercial support, model access or NVIDIA-hosted components you rely on are separate decisions to confirm with NVIDIA, not something the license provides.
Start by inventorying every Bedrock guardrail version attached to each application, along with the model it wraps, the traffic it sees and the action it takes on a block. Ask your team to confirm which Bedrock features are in use, because the features without a direct equivalent, such as some sensitive data handling and grounding behavior, need explicit design decisions and sometimes a custom action or a different detector. Record the expected outcome for a sample of real prompts and responses before any rail is written, since those recorded decisions become the acceptance baseline for the parallel run that proves the new rails match or improve on the old ones.
Which Bedrock Guardrails features map to NeMo Guardrails rails
This table maps each Amazon Bedrock Guardrails feature to the NeMo Guardrails rail, model or Colang pattern that could replace it, and flags where no direct match exists. Read the third column first to see where custom actions or third-party detectors are needed. The main takeaway is that most features map only partially, so thresholds, detector coverage and blocked-message behavior must be checked against recorded traffic before cutover.
| Bedrock Guardrails feature | NeMo Guardrails rail or model | Direct equivalent | What to confirm |
|---|---|---|---|
| Content filters | Input and output rails using the NVIDIA content safety model or self-check moderation prompts | Partial | Category coverage and score cutoffs against your current filter strengths |
| Denied topics | Topic safety model or dialog rails with Colang topic flows and example utterances | Partial | Topic definitions catch the same user intent, including paraphrases and other languages |
| Word filters | Colang keyword flows or a custom action in an input or output rail | No | Exact-match, casing, spacing and multilingual handling, all built and tested by your team |
| Sensitive information (PII) masking | PII rails using Presidio, GLiNER-PII, Private AI or regex rails on prompts, responses and retrieved content | Partial | Entity types, masking format and detector recall on your own data |
| Contextual grounding checks | Retrieval rails with self-check fact-checking or hallucination detection | Partial | Grounding sources, scoring thresholds and behavior on answers that cite no source |
| Blocked messages and fallbacks | Colang bot responses defined per rail, topic and language | Partial | Each Bedrock blocked message is recreated, and refusals are logged for review |
| Managed policy versions | config.yml, Colang files and Python actions kept in version control and served by the guardrails server | No | Your own versioning, promotion, rollback and approval process for rail changes |
| Model and detector hosting | Detector models and the LLM called from infrastructure you control | No | GPU or CPU needs for each detector before sizing and availability planning |
Documented paths for importing and running the rebuilt policies
NeMo Guardrails gives you several documented ways to load, convert and run rebuilt policies, but none of them imports Bedrock Guardrails configurations. Every Bedrock rule must be translated by hand into config.yml, Colang and Python actions, then run through the path that fits your application and hosting model.
Convert Colang 1.0 files to 2.x
The nemoguardrails convert tool moves Colang 1.0 flows to Colang 2.x syntax. It is useful only if your rebuilt policies already use Colang 1.0, which is the default. NVIDIA states that converted configurations still need manual review, so budget review time for every converted flow, especially dialog rails that depend on intent matching. Bedrock rules do not enter this path directly.
Run the guardrails server
The server loads a configuration folder and exposes an HTTP API, so applications written in any language can call the same rails. A Dockerfile is provided to build a server image. Confirm how your platform team will mount the configuration folder, version it, and roll out changes without restarting every client. The server is the usual choice when several services need one policy set.
Call rails through the Python API
The Python API lets an application load a configuration and call rails in-process, which keeps the check next to the model call and avoids a network hop. It suits a single service that owns its prompts and actions. Confirm that the Python version of your runtime is 3.11, 3.12 or 3.13 before you choose this path, since NeMo Guardrails 0.25.0 requires one of them.
- Supported Python
- 3.11 to 3.13
Plan the LLMRails to Guardrails change
Version 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. Any code you write during the migration should use the new class, or it will need rework on the next upgrade. NVIDIA publishes a 0.25 migration guide that covers the rename, so have your developers read it before they write wrapper code around the rails.
Confirm the NeMo Helix successor path
NVIDIA has sunset the NeMo Guardrails microservice, and its archived documentation directs existing users to their NVIDIA account team. The NeMo Platform repository now points to NeMo Helix, which runs NeMo Guardrails as an inference gateway plugin. Treat this as a path to confirm with NVIDIA, not a drop-in replacement, and ask whether it fits your hosting, licensing and support needs before you build on it.
NeMo Helix guardrail docsHow the migration runs from inventory to decommission
The sequence moves each Bedrock guardrail into a tested NeMo Guardrails equivalent, proves the two behave alike on real traffic, and removes the Bedrock configuration only after a rollback path has been kept for a set retention period.
Confirm the Python environment first
Before any design work, confirm that the target hosts run Python 3.11, 3.12 or 3.13, the versions NeMo Guardrails 0.25.0 requires. The platform team checks this on the build agents, the test environment and the runtime images, and records the result in the migration plan. Done means a passing version check on every host that will load the library, with the exact interpreter version written down. Ask your own team to confirm this on their images, because a mismatch found late blocks the pilot.
Inventory every Bedrock guardrail and call site
List each guardrail attached to each Bedrock application, including its version, the content filters, denied topics, word filters, sensitive information filters and contextual grounding checks it contains, and the thresholds set for each. Then find every place the application calls it, whether through an ApplyGuardrail call or an inline guardrail on a model invocation. The owner of each application signs off on the list. Done means a single register that maps each guardrail to its applications, call paths and the business behavior it protects.
Map each control to a NeMo Guardrails rail
For every inventory line, decide which NeMo Guardrails rail replaces it: input or output rails for content and topic controls, retrieval rails for grounding, and custom actions where Bedrock has no direct equivalent. Mark each control as a direct match, a partial match or a gap, and record the reason. Gaps go to the security and compliance owners for a decision before the pilot starts. Done means a mapping table that each control owner has reviewed, with every gap assigned an owner.
Rebuild one application as a pilot
Choose one low-risk application and rebuild its guardrails as a NeMo Guardrails configuration with a config.yml file, any Colang files and any Python actions. Run it in a non-production environment and send it the same test prompts the Bedrock version handles. Done means the pilot answers the scripted cases in line with the mapping, and every deviation has been logged and either fixed or accepted by the control owner.
Record a sample of production traffic
Capture a representative sample of production requests and responses through the existing Bedrock path, with the data handling terms, access controls and retention rules approved by your privacy and security teams. Keep the records in your own environment and remove or mask personal data where the test does not need it. Done means a labeled sample that covers normal traffic, edge cases and known attack patterns, with the sampling method documented so reviewers can see what it does and does not represent.
Run both systems in parallel
Send the recorded requests and, where the architecture allows, live requests to both Bedrock and NeMo Guardrails, and store each verdict side by side with the request ID. Do not let the NeMo Guardrails verdict affect users during this phase. Done means a comparison report that lists agreements, disagreements by control and the examples behind each disagreement, reviewed by the control owners.
Calibrate thresholds and close the gaps
Work through the disagreements and adjust rail thresholds, prompts or Colang flows where the difference is a configuration issue, and record every change with its reason. Where a difference comes from the models themselves, document the accepted behavior rather than tuning it away silently. Rerun the sample after each change. Done means the agreed error profile is signed off by the owners of the affected applications and by security, with the final configuration version tagged.
Cut over with a rollback path and decommission later
Switch each application to NeMo Guardrails behind a feature flag or routing setting that can return traffic to Bedrock quickly, and monitor the new path against the agreed profile. Keep the Bedrock guardrails in place for the retention period your compliance team sets, then remove them and record the removal in the change log. Done means the rollback has been tested at least once, the retention period is documented, and the Bedrock configuration is removed with a closing record that links the evidence from the parallel run.
What drives the cost and duration of this move
This table separates the one-time rebuild work from the recurring costs of running self-hosted rails after a move off Amazon Bedrock Guardrails. Read each row as a driver: find the ones that match your guardrail estate, then use them to shape the written scope and the quote.
| Cost driver | What it changes | What to ask for in a quote |
|---|---|---|
| Applications and guardrail versions | Each application with its own guardrail version needs its own mapping, Colang or config.yml set, and test cases. Shared guardrails can be migrated once. | A per-application inventory with the guardrail versions in use and which ones are shared. |
| Grounding and PII masking policies | Grounding checks need retrieval rails and a fact-checking or hallucination model. PII masking needs a detector and tested masking behavior. Both take more validation than a plain word filter. | A count of policies using grounding or masking, and the detector chosen for each. |
| Denied topics needing dialog flows | Each denied topic becomes a topic control or dialog rule to design, write and test. Topics that depend on conversation context add more effort than single-message blocks. | The number of denied topics and how many need multi-turn handling. |
| Custom detectors or third-party moderation | Bedrock features without a direct equivalent need custom actions, prompts or an external moderation call. Each one adds design, integration and review work. | A list of features with no direct equivalent and the approach proposed for each. |
| Traffic volume for the parallel run | Recording and replaying live traffic through both systems adds storage, compute and comparison work. Higher volume means longer comparison windows and more reviewer time. | The expected request volume, the recording window, and who reviews the disagreements. |
| Hosting and GPU capacity | Self-hosted safety models need accelerator capacity sized to latency and concurrency targets. This is a recurring infrastructure cost that you own, and it changes with model choice. | A sizing estimate per model, the target latency and concurrency, and whether capacity is shared or dedicated. |
| Upgrades and model updates | NeMo Guardrails releases and model versions change over time. Recurring work covers regression testing, configuration review and redeploying the rails. | Whether the quote covers upgrades, retesting and a support period, and the recurring effort for each. |
| Security review and evidence | Your security team may require threat models, test results, change records and access logs before cutover. Scope rises with the number of reviews and the evidence format required. | The evidence list your reviewers need, the review stages, and the owner of each sign-off. |
How to compare both systems on recorded traffic before switching
Before you switch, run both systems on the same traffic and record every verdict. Capture request and response pairs at the point where your application calls Bedrock Guardrails, and store each pair with the Bedrock guardrail identifier and version, the source (input or output), and the timestamp. Then replay the same pairs through the NeMo Guardrails server, which loads its configuration from a folder and exposes an HTTP API, so the two sets of results line up row by row. For each pair, record the verdict per category: block, mask or allow, plus the matched topic, word filter, PII entity or grounding score. Compare the categories one at a time. A single overall pass rate hides the case where denied topics agree but PII masking does not, and PII masking is where most migrations break. Confirm the exact fields that Bedrock returns in its assessment output for your guardrail version before you write the comparison schema, since the mapping depends on them.
Recorded prompts often contain personal data, so the capture step is a privacy decision before it is an engineering one. Decide with your privacy and security teams which fields are stored, and whether raw prompts are kept at all or only hashes, redacted text, or the verdict metadata. Set a retention period for the replay corpus and a deletion step that runs when the comparison ends, and restrict read access to the people reviewing results. Check the data processing terms that apply to the Bedrock calls you already make, and confirm that the replay environment runs inside your own infrastructure so that the replayed traffic does not leave it. Keep the access log for the corpus itself, because reviewers will be asked who could read it.
Treat every disagreement as a labeled case for human review, not as a bug to fix by adjusting thresholds. Give each disagreeing pair a label such as Bedrock blocked and NeMo allowed, or NeMo masked a value that Bedrock left alone, along with the category and the rail that produced the verdict. Have a reviewer who understands the application decide which system was right, and record the reason. Only after that review should anyone change a threshold, a Colang flow, or a PII entity list, and each change should be rerun against the full labeled set so that a fix for one category does not quietly break another. The labeled set then becomes your acceptance evidence for the cutover and a regression suite for later upgrades of NeMo Guardrails.
What usually goes wrong and how to prevent it
Most failed Bedrock to NeMo Guardrails moves fail quietly rather than loudly. Settings disappear during translation, thresholds shift meaning, and gaps appear in formats nobody tested. Each card below names one risk and the check that catches it before cutover.
Unmapped Bedrock policy versions dropped
A Bedrock guardrail can carry several saved versions, and a migration script may read only the draft or the latest one. Any filter, denied topic or word list that exists only in the version you did not export will simply be missing in NeMo Guardrails. Before the build, export every version in use, list each policy item in a mapping table, and mark each one as mapped, replaced or deliberately dropped. Compare the rail count against that table during review.
Grounding thresholds that do not transfer
A grounding score from Bedrock and a fact-checking or hallucination verdict from a NeMo Guardrails rail are produced by different methods, so the same number does not mean the same thing. Copying a Bedrock threshold directly into a NeMo config can block too many correct answers or pass unsupported ones. Build a labeled set of grounded and ungrounded answers from your own traffic, then set thresholds from measured results on that set.
PII masking gaps in uncovered formats
PII detection is only as complete as the detector you chose. Formats such as account numbers, national identifiers in local layouts, or values split across chunks may pass through unmasked, even when the Bedrock configuration listed them. Write a test corpus that includes each entity type your Bedrock setup masked, plus the local formats your users actually submit, and confirm each one is masked in prompts, responses and retrieved content.
Converted Colang files that need review
If you use Colang, the nemoguardrails convert tool can move Colang 1.0 files toward 2.x, but NVIDIA states that converted configurations still need manual review. Flow names, intent matching and dialog paths can change meaning without raising an error. Read every converted flow against the behavior it replaces, and keep the Colang version pinned in config.yml so a later change does not alter behavior silently.
Colang 2 migration guideLLMRails deprecation during the build
NeMo Guardrails 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. Code written against LLMRails today will still run, but it will need a change before the upgrade that removes it. Pin the library version in your lock file, use Guardrails in new code, and run the 0.25 migration steps before you connect the application to the rails.
Latency from self-hosted models
Bedrock guardrail checks run as a managed service call, while self-hosted rails run classifiers and LLM calls on hardware you size. Several rails in sequence can add noticeable delay to every request, and the delay grows under load. Measure p95 latency for the full rail chain on recorded traffic at expected concurrency, and decide which checks run in parallel or only on the paths that need them.
Reliance on the sunset microservice
NVIDIA has retired the NeMo Guardrails microservice, with the container sunset as of October 1, 2026 and no new releases. Deployments that pull that container or follow its documentation are building on an unsupported artifact. Deploy the open-source library or server from the GitHub repository and PyPI package instead, and confirm the image and package sources in your deployment manifests before cutover.
NGC guardrails containerWhat buyers ask before moving from Bedrock Guardrails
How much effort does moving from Bedrock Guardrails to NeMo Guardrails take?
The effort depends mainly on how many Bedrock guardrail features you use and how many applications call them. A guardrail that only applies a content filter and a word list maps quickly to NeMo Guardrails input and output rails. Denied topics, PII masking and grounding checks take longer, because each needs its own rail design, a model or detector choice, and tests. Bedrock features without a direct equivalent, such as some managed policies, need a decision on whether to rebuild them as custom actions or drop them. Ask any partner to list each Bedrock policy in use, the calling applications, and the evaluation data you hold before agreeing on a scope. Effort rises with the number of tenants, languages and channels that share the same guardrail.
Can our own team migrate from Bedrock Guardrails without a partner?
Yes, if your team has Python engineers who can run a service, write Colang or Python actions, and build a test harness. NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, and it can run as a Python library or as a server built from the provided Dockerfile, so the core setup is within reach of a platform team. The harder parts are the safety models and detectors you will host, the evidence your security reviewers will ask for, and the side-by-side comparison on recorded traffic. Many organizations keep the build in-house and bring in a partner for the review or the cutover. Make that choice based on your team's capacity and on whether you have a reviewer who can judge rail behavior.
What do our engineers and security reviewers need to contribute?
Engineers need access to the application code that calls Bedrock Guardrails, the guardrail configurations and their version history, and a way to capture representative traffic under your privacy rules. They also need a place to run NeMo Guardrails, with secrets management for model endpoints and logging that does not store raw personal data unless approved. Security reviewers need to define the policies that matter to them, approve the rail outcomes for blocked, masked and grounded responses, and agree on the test cases that count as passing. They should also review the Colang files and any custom actions, since NVIDIA says converted Colang configurations still need manual review.
How long should we run Bedrock Guardrails and NeMo Guardrails in parallel?
Run both in parallel until the recorded traffic comparison shows agreed behavior across the policies you care about, and until your reviewers accept the evidence. The length depends on traffic volume, how often your policies change, how many languages and user groups you serve, and how many edge cases the replay surfaces. Low-volume, single-purpose assistants generally need less parallel time than high-volume, multi-tenant services. Ask a partner to define the exit criteria in writing, including the verdict agreement you require, the categories where differences are acceptable, and who signs off the cutover. No fixed duration should be assumed before those criteria exist.
Is NeMo Guardrails free under Apache 2.0, and what hosting costs remain?
The NeMo Guardrails library is licensed under Apache 2.0, so you can use, modify and deploy it without a license fee from NVIDIA for the library itself. Remaining costs include the compute and storage you run it on, the model endpoints for any self-hosted safety models, network and logging infrastructure, and the people who build, test and operate it. The NeMo Guardrails microservice was sunset as of October 1, 2026, according to NVIDIA's NGC catalog page, so plan on the library or on the successor platform NVIDIA points to. Confirm any NVIDIA AI Enterprise terms directly with NVIDIA, because they are separate from the open-source license.
What does DeployOpen need from us before quoting the migration?
DeployOpen needs a written description of the Bedrock guardrails in use, the applications and channels that call them, the languages and regions involved, and the hosting environment you want to use, such as your cloud account, data center or air-gapped network. It also helps to share sample policies, a sample of recorded traffic approved for testing, the compliance evidence your reviewers require, and the target date for cutover. With that, DeployOpen can write a fixed scope with deliverables and a timeline, which becomes the basis for the quote. Pricing is not published, so the quote follows from that written scope.
Which Bedrock Guardrails features are hardest to replace?
Grounding checks and PII masking usually need the most design work, because they depend on retrieval sources, detector accuracy and how masked output is handled downstream. Denied topics need clear topic definitions and dialog handling so the assistant stays on approved subjects. Content filters and word filters are usually the simplest to map. Confirm each feature against the NeMo Guardrails documentation for the version you plan to run, because capabilities change between releases. The NeMo Guardrails 0.25 migration guide also flags a deprecation of the LLMRails class that affects how you call the library.
How traffic flows during the parallel run
Each user request starts in the application, which sends a copy to the current Bedrock Guardrails path and to the self-hosted NeMo Guardrails server. Both verdicts are written to a comparison store, where disagreements are routed to a reviewer. The cutover switch decides which verdict is enforced, so check that the switch changes enforcement only and that both paths keep logging throughout the run.
Requests are mirrored to both guardrail paths, and a switch selects which verdict is enforced.
How DeployOpen scopes and delivers the migration
DeployOpen approaches the move from Amazon Bedrock Guardrails to self-hosted NeMo Guardrails as a written, fixed-scope engagement. We start by inventorying the Bedrock policies your applications depend on, then build and test the replacement rails inside infrastructure you control, and hand over the configuration with the evidence needed for your own review.
How we scope
- We inventory every Bedrock content filter, denied topic, word filter, PII setting and grounding check in use today.
- We map each policy to a NeMo Guardrails rail type and flag features without a direct equivalent for decision.
- We agree deliverables, environments, traffic sample size and acceptance criteria in writing before work starts.
How we build
- We build input, dialog, retrieval and output rails in config.yml and Colang, using Python 3.11, 3.12 or 3.13.
- We deploy the guardrails server in your environment and wire it to your application's model calls.
- We run the old Bedrock path and the new rails on recorded traffic and compare verdicts before any cutover.
How we hand over
- You receive the configuration, custom actions, deployment definitions and test results in your own repositories.
- We document each rail, its threshold and the Bedrock policy it replaces, so your reviewers can trace decisions.
- We walk your engineers through running, changing and rolling back the rails, and review the cutover with your team.
How we support
- Ongoing support, version upgrades and continuous testing are available as a retainer after handover.
- Upgrade planning covers NeMo Guardrails release changes, including the planned LLMRails to Guardrails deprecation in 0.25.0.
- Retesting after policy changes or model swaps is scoped separately, so you pay for the work you actually request.

